- model_class = Supplier
- 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.action-header
        th.action-header
    tbody
      - @suppliers.each do |supplier|
        tr
          td= link_to supplier.name, [:admin, supplier]
          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'

