End of week commit
This commit is contained in:
@@ -13,13 +13,16 @@ table.table
|
||||
- lists.each do |list|
|
||||
tr
|
||||
td= link_to list.state, [:suppliers, list]
|
||||
td=show_boolean list.needs_help
|
||||
td=show_boolean list.needs_payment
|
||||
td.boolean.needs_help
|
||||
span data-boolean=list.needs_help.to_s
|
||||
td.boolean.needs_payment
|
||||
span data-boolean=list.needs_payment.to_s
|
||||
td.timestamp data-time=list.closed_at.try(:utc).try(:iso8601)
|
||||
td= link_to_if list.table.present?, list.table_number, [:suppliers, list.table]
|
||||
td.currency= list.price.present? ? currency(list.price) : '...'
|
||||
td.timestamp data-time=list.created_at.utc.iso8601
|
||||
td.actions
|
||||
= link_to t('helpers.links.edit'), [:edit, :suppliers, list], class: 'btn btn-mini', data: {t: 'helpers.links.edit'}
|
||||
'
|
||||
= link_to t("helpers.links.destroy"), [:suppliers, list], method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-mini btn-danger', data: {t: 'helpers.links.destroy'}
|
||||
= link_to [:edit, :suppliers, list], class: 'table-edit' do
|
||||
span data-title="helpers.links.edit"
|
||||
= link_to [:suppliers, list], method: :delete, data: {confirm: are_you_sure? }, class: 'table-destroy' do
|
||||
span data-title="helpers.links.destroy"
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
div.page-header= title :index, List
|
||||
.well
|
||||
- content_for :head do
|
||||
= javascript_include_tag 'supplier/app/application'
|
||||
/div.page-header= title :index, List
|
||||
/.well
|
||||
- if @lists.any?
|
||||
= paginate @lists
|
||||
= render 'lists_table', lists: @lists
|
||||
|
||||
@@ -4,6 +4,11 @@ dl.dl-horizontal
|
||||
dd= l @list.created_at, format: :short
|
||||
dt= t('supplier.lists.show.users')
|
||||
dd= @list.users.map(&:supplier_name).join(', ')
|
||||
.display-row
|
||||
.display-label
|
||||
span data-t='attributes.list.created_at'
|
||||
.display-field
|
||||
span data-time=@list.created_at.iso8601
|
||||
.well
|
||||
table#list-table.table.list-table
|
||||
thead
|
||||
|
||||
Reference in New Issue
Block a user