End of week commit

This commit is contained in:
2014-04-18 20:38:13 +02:00
parent 2a5331471c
commit 821f59b761
42 changed files with 304 additions and 91 deletions
@@ -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"
+4 -2
View File
@@ -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
+5
View File
@@ -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