Files
mozo-backend/app/views/admin/suppliers/index.html.slim
T
2015-02-25 12:54:07 +01:00

23 lines
833 B
Plaintext

- model_class = Supplier
.page-header= 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'
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'
- else
= no_content_given model_class
= link_to t("helpers.links.new"), new_admin_supplier_path, class: 'btn btn-primary'