infra updates

This commit is contained in:
2020-03-05 11:36:49 -05:00
parent aec5364f2e
commit 840bac4d54
12 changed files with 47 additions and 49 deletions
+6 -7
View File
@@ -1,21 +1,20 @@
- model_class = Supplier
.page-header= title :index, model_class
- title :index, model_class
- if @suppliers.any?
table.table
thead
tr
th= model_class.human_attribute_name(:name)
th= model_class.human_attribute_name(:created_at)
th=t 'helpers.actions.title'
th.action-header
th.action-header
tbody
- @suppliers.each do |supplier|
tr
td= link_to supplier.name, [:admin, supplier]
td=l supplier.created_at, format: :short
td
= link_to t('helpers.links.edit'), [:edit, :admin, supplier], class: 'btn btn-mini'
'
= link_to t("helpers.links.destroy"), [:admin, supplier], method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-mini btn-danger'
td data-time=supplier.created_at.iso8601 data-time-format="dd D MMM HH:mm YYYY"
= edit_td [:admin, supplier]
= destroy_td [:admin, supplier]
- else
= no_content_given model_class
= link_to t("helpers.links.new"), new_admin_supplier_path, class: 'btn btn-primary'