end of day commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
- model_class = Section
|
||||
.page-header= title :index, model_class
|
||||
- if @sections.any?
|
||||
table.table.table-striped
|
||||
thead
|
||||
tr
|
||||
th= model_class.human_attribute_name(:title)
|
||||
th= model_class.human_attribute_name(:path)
|
||||
th= Supplier.model_name.human
|
||||
th= model_class.human_attribute_name(:created_at)
|
||||
th=t 'helpers.actions'
|
||||
tbody
|
||||
- @sections.each do |section|
|
||||
tr
|
||||
td= link_to section.title, section
|
||||
td= section.path
|
||||
td= link_to_if section.supplier.present?, section.supplier.try(:name), section.supplier
|
||||
td=l section.created_at, format: :short
|
||||
td
|
||||
= link_to t('helpers.links.edit'), [:edit, section], class: 'btn btn-mini'
|
||||
'
|
||||
= link_to t("helpers.links.destroy"), section, 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_section_path, class: 'btn btn-primary'
|
||||
|
||||
Reference in New Issue
Block a user