further modal refactor
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
modal-dialog action="close"
|
||||
h3.flush--top= title
|
||||
p==body
|
||||
hr
|
||||
button{action "close"}= t 'modal.info.close'
|
||||
@@ -1,24 +0,0 @@
|
||||
modal-dialog action="close"
|
||||
.modal-header
|
||||
h3.flush--top=t 'section.add_tables.modal.title'
|
||||
hr
|
||||
.modal-body
|
||||
p=t 'section.add_tables.modal.body_header'
|
||||
form.form-horizontal
|
||||
.control-group
|
||||
.form-row
|
||||
.form-label
|
||||
label for='add-tables-number-start'
|
||||
=t 'section.add_tables.modal.number_start'
|
||||
.form-field
|
||||
App.NumberField valueBinding="number_start"
|
||||
.form-row
|
||||
.form-label
|
||||
label for='add-tables-number-end'
|
||||
=t 'section.add_tables.modal.number_end'
|
||||
.form-field
|
||||
App.NumberField valueBinding="number_end"
|
||||
.modal-footer
|
||||
hr
|
||||
button.confirm-cancel{action "close"}=t 'section.add_tables.modal.close_button'
|
||||
button.confirm-ok.right{action "addTables"}=t 'section.add_tables.modal.add_button'
|
||||
@@ -1,58 +0,0 @@
|
||||
modal-dialog action="close"
|
||||
.modal-header
|
||||
h3.flush--top=t 'section.arrange_tables.modal.title'
|
||||
hr
|
||||
.modal-body
|
||||
.modal-alert== alert_message
|
||||
p=t 'section.arrange_tables.modal.body_header'
|
||||
.arrange-type-buttons
|
||||
if isDistributed
|
||||
span.arrange-tables-current-type.distributed=t 'section.arrange_tables.modal.distributed.title'
|
||||
else
|
||||
button.arrange-tables-type-button.distributed{action "makeDistributed"}=t 'section.arrange_tables.modal.distributed.title'
|
||||
if isByRow
|
||||
span.arrange-tables-current-type.by_row=t 'section.arrange_tables.modal.by_row.title'
|
||||
else
|
||||
button.arrange-tables-type-button.by_row{action "makeByRow"}=t 'section.arrange_tables.modal.by_row.title'
|
||||
if isByColumn
|
||||
span.arrange-tables-current-type.by_column=t 'section.arrange_tables.modal.by_column.title'
|
||||
else
|
||||
button.arrange-tables-type-button.by_column{action "makeByColumn"}=t 'section.arrange_tables.modal.by_column.title'
|
||||
.arrange-content
|
||||
if isDistributed
|
||||
==t 'section.arrange_tables.modal.distributed.explanation'
|
||||
if isByRow
|
||||
==t 'section.arrange_tables.modal.by_row.before_field'
|
||||
App.NumberField valueBinding="row_count"
|
||||
==t 'section.arrange_tables.modal.by_row.after_field'
|
||||
if isByColumn
|
||||
==t 'section.arrange_tables.modal.by_column.before_field'
|
||||
App.NumberField valueBinding="column_count"
|
||||
==t 'section.arrange_tables.modal.by_column.after_field'
|
||||
.modal-footer
|
||||
hr
|
||||
button.confirm-cancel{action "close"}=t 'section.arrange_tables.modal.close_button'
|
||||
button.confirm-ok.right{action "arrangeTables"}=t 'section.arrange_tables.modal.arrange_button'
|
||||
|
||||
|
||||
/form.form-horizontal
|
||||
.control-group
|
||||
label.control-label for='arrange-tables-distributed' data-t='section.arrange_tables.modal.distributed' = t('supplier.section.arrange_tables.modal.distributed')
|
||||
.controls
|
||||
input#arrange-tables-distributed type="radio" name="arrange-table-option" checked=true value="distributed"
|
||||
.control-group
|
||||
label.control-label for='arrange-tables-by_row' data-t='section.arrange_tables.modal.by_row' = t('supplier.section.arrange_tables.modal.by_row')
|
||||
.controls
|
||||
input#arrange-tables-by_row type="radio" name="arrange-table-option" value="by_row"
|
||||
label for="arrange-tables-by-row-count" data-t='section.arrange_tables.modal.by_row_count' = t('supplier.section.arrange_tables.modal.by_row_count')
|
||||
input.input-mini#arrange-tables-by-row-count type="text" value=0
|
||||
'
|
||||
span data-t='models.plural.table'
|
||||
.control-group
|
||||
label.control-label for='arrange-tables-by_column' data-t='section.arrange_tables.modal.by_column' = t('supplier.section.arrange_tables.modal.by_column')
|
||||
.controls
|
||||
input#arrange-tables-by_column type="radio" name="arrange-table-option" value="by_column"
|
||||
label for="arrange-tables-by-column-count" data-t='section.arrange_tables.modal.by_column_count' = t('supplier.section.arrange_tables.modal.by_column_count')
|
||||
input.input-mini#arrange-tables-by-column-count type="text" value=0
|
||||
'
|
||||
span data-t='models.plural.table'
|
||||
@@ -0,0 +1,18 @@
|
||||
p=t 'section.add_tables.modal.body_header'
|
||||
form.form-horizontal
|
||||
.control-group
|
||||
.form-row
|
||||
.form-label
|
||||
label for='add-tables-number-start'
|
||||
=t 'section.add_tables.modal.number_start'
|
||||
.form-field
|
||||
App.NumberField valueBinding="number_start"
|
||||
.form-row
|
||||
.form-label
|
||||
label for='add-tables-number-end'
|
||||
=t 'section.add_tables.modal.number_end'
|
||||
.form-field
|
||||
App.NumberField valueBinding="number_end"
|
||||
hr
|
||||
button.confirm-cancel{action "close"}=t 'section.add_tables.modal.close_button'
|
||||
button.confirm-ok.right{action "addTables"}=t 'section.add_tables.modal.add_button'
|
||||
@@ -0,0 +1,52 @@
|
||||
.modal-alert== alert_message
|
||||
p=t 'section.arrange_tables.modal.body_header'
|
||||
.arrange-type-buttons
|
||||
if isDistributed
|
||||
span.arrange-tables-current-type.distributed=t 'section.arrange_tables.modal.distributed.title'
|
||||
else
|
||||
button.arrange-tables-type-button.distributed{action "makeDistributed"}=t 'section.arrange_tables.modal.distributed.title'
|
||||
if isByRow
|
||||
span.arrange-tables-current-type.by_row=t 'section.arrange_tables.modal.by_row.title'
|
||||
else
|
||||
button.arrange-tables-type-button.by_row{action "makeByRow"}=t 'section.arrange_tables.modal.by_row.title'
|
||||
if isByColumn
|
||||
span.arrange-tables-current-type.by_column=t 'section.arrange_tables.modal.by_column.title'
|
||||
else
|
||||
button.arrange-tables-type-button.by_column{action "makeByColumn"}=t 'section.arrange_tables.modal.by_column.title'
|
||||
.arrange-content
|
||||
if isDistributed
|
||||
==t 'section.arrange_tables.modal.distributed.explanation'
|
||||
if isByRow
|
||||
==t 'section.arrange_tables.modal.by_row.before_field'
|
||||
App.NumberField valueBinding="row_count"
|
||||
==t 'section.arrange_tables.modal.by_row.after_field'
|
||||
if isByColumn
|
||||
==t 'section.arrange_tables.modal.by_column.before_field'
|
||||
App.NumberField valueBinding="column_count"
|
||||
==t 'section.arrange_tables.modal.by_column.after_field'
|
||||
hr
|
||||
button.confirm-cancel{action "close"}=t 'section.arrange_tables.modal.close_button'
|
||||
button.confirm-ok.right{action "arrangeTables"}=t 'section.arrange_tables.modal.arrange_button'
|
||||
|
||||
|
||||
/form.form-horizontal
|
||||
.control-group
|
||||
label.control-label for='arrange-tables-distributed' data-t='section.arrange_tables.modal.distributed' = t('supplier.section.arrange_tables.modal.distributed')
|
||||
.controls
|
||||
input#arrange-tables-distributed type="radio" name="arrange-table-option" checked=true value="distributed"
|
||||
.control-group
|
||||
label.control-label for='arrange-tables-by_row' data-t='section.arrange_tables.modal.by_row' = t('supplier.section.arrange_tables.modal.by_row')
|
||||
.controls
|
||||
input#arrange-tables-by_row type="radio" name="arrange-table-option" value="by_row"
|
||||
label for="arrange-tables-by-row-count" data-t='section.arrange_tables.modal.by_row_count' = t('supplier.section.arrange_tables.modal.by_row_count')
|
||||
input.input-mini#arrange-tables-by-row-count type="text" value=0
|
||||
'
|
||||
span data-t='models.plural.table'
|
||||
.control-group
|
||||
label.control-label for='arrange-tables-by_column' data-t='section.arrange_tables.modal.by_column' = t('supplier.section.arrange_tables.modal.by_column')
|
||||
.controls
|
||||
input#arrange-tables-by_column type="radio" name="arrange-table-option" value="by_column"
|
||||
label for="arrange-tables-by-column-count" data-t='section.arrange_tables.modal.by_column_count' = t('supplier.section.arrange_tables.modal.by_column_count')
|
||||
input.input-mini#arrange-tables-by-column-count type="text" value=0
|
||||
'
|
||||
span data-t='models.plural.table'
|
||||
Reference in New Issue
Block a user