43 lines
1.8 KiB
Plaintext
43 lines
1.8 KiB
Plaintext
- model_class = Supplier
|
|
div.page-header= title :index, model_class
|
|
- if @suppliers.any?
|
|
table.table.table-striped
|
|
thead
|
|
tr
|
|
th= model_class.human_attribute_name(:email)
|
|
th= model_class.human_attribute_name(:encrypted_password)
|
|
th= model_class.human_attribute_name(:remember_created_at)
|
|
th= model_class.human_attribute_name(:reset_password_token)
|
|
th= model_class.human_attribute_name(:reset_password_sent_at)
|
|
th= model_class.human_attribute_name(:sign_in_count)
|
|
th= model_class.human_attribute_name(:current_sign_in_at)
|
|
th= model_class.human_attribute_name(:last_sign_in_at)
|
|
th= model_class.human_attribute_name(:current_sign_in_ip)
|
|
th= model_class.human_attribute_name(:last_sign_in_ip)
|
|
th= model_class.human_attribute_name(:name)
|
|
th= model_class.human_attribute_name(:created_at)
|
|
th=t 'helpers.actions'
|
|
tbody
|
|
- @suppliers.each do |supplier|
|
|
tr
|
|
td= link_to supplier.email, supplier
|
|
td= supplier.encrypted_password
|
|
td= supplier.remember_created_at
|
|
td= supplier.reset_password_token
|
|
td= supplier.reset_password_sent_at
|
|
td= supplier.sign_in_count
|
|
td= supplier.current_sign_in_at
|
|
td= supplier.last_sign_in_at
|
|
td= supplier.current_sign_in_ip
|
|
td= supplier.last_sign_in_ip
|
|
td= supplier.name
|
|
td=l supplier.created_at, format: :short
|
|
td
|
|
= link_to t('helpers.links.edit'), [:edit, supplier], class: 'btn btn-mini'
|
|
'
|
|
= link_to t("helpers.links.destroy"), 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_supplier_path, class: 'btn btn-primary'
|
|
|