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'
        Qsupplier.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'
        Qsupplier.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'
