Add section elements
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
- model_class = SvgElement
|
||||
div.page-header= 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'
|
||||
Reference in New Issue
Block a user