Some minor style improvements
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
Qsupplier.App.ModalSectionArrangeTablesController = Ember.ObjectController.extend
|
||||
arrange_type: 'distributed'
|
||||
arrange_type: 'distributed' # can be distributed, by_row or by_column
|
||||
by_row_count: 0
|
||||
by_column_count: 0
|
||||
isDistributed: (->@get('arrange_type') is 'distributed').property('arrange_type')
|
||||
|
||||
@@ -21,23 +21,13 @@ modal-dialog action="close"
|
||||
if isDistributed
|
||||
span.explanation
|
||||
if isByRow
|
||||
.form-row
|
||||
.form-label
|
||||
label for="arrange-tables-by-row-count"
|
||||
= t 'section.arrange_tables.modal.by_row_count'
|
||||
.form-field
|
||||
Qsupplier.App.NumberField valueBinding="by_row_count"
|
||||
/input.input-mini#arrange-tables-by-row-count type="text" value=0
|
||||
=t 'models.plural.table'
|
||||
= t 'section.arrange_tables.modal.by_row_count'
|
||||
Qsupplier.App.NumberField valueBinding="by_row_count"
|
||||
=t 'models.plural.table'
|
||||
if isByColumn
|
||||
.form-row
|
||||
.form-label
|
||||
label for="arrange-tables-by-column-count"
|
||||
= t 'section.arrange_tables.modal.by_column_count'
|
||||
.form-field
|
||||
Qsupplier.App.NumberField valueBinding="by_column_count"
|
||||
/input.input-mini#arrange-tables-by-row-count type="text" value=0
|
||||
=t 'models.plural.table'
|
||||
= t 'section.arrange_tables.modal.by_column_count'
|
||||
Qsupplier.App.NumberField valueBinding="by_column_count"
|
||||
=t 'models.plural.table'
|
||||
.modal-footer
|
||||
hr
|
||||
button.confirm-cancel{action "close"}=t 'section.arrange_tables.modal.close_button'
|
||||
|
||||
Reference in New Issue
Block a user