Files
mozo-backend/app/views/admin/svg_elements/index.html.slim
T
2015-03-04 20:48:24 +01:00

20 lines
741 B
Plaintext

- model_class = SvgElement
- title :index, model_class
- if @svg_elements.any?
table.table
thead
tr
th= model_class.human_attribute_name(:name)
th=t 'helpers.actions.title'
tbody
- @svg_elements.each do |svg_element|
tr
td= link_to svg_element.name, [:admin, svg_element]
td
= link_to t('helpers.links.edit'), [:edit, :admin, svg_element], class: 'table-edit-button'
'
= link_to t("helpers.links.destroy"), [:admin, svg_element], method: :delete, data: {confirm: are_you_sure? }, class: 'table-destroy-button'
- else
= no_content_given model_class
= link_to t("helpers.links.new"), new_admin_svg_element_path, class: 'record-new-button'