% add_decidim_page_title(t(".title")) %>
<%= t("template.name", scope: "decidim.models") %> | <%= t("questionnaire_template.fields.title", scope: "decidim.models") %> | <%= t("questionnaire_template.fields.questions", scope: "decidim.models") %> | <%= t("template.fields.created_at", scope: "decidim.models") %> | |
---|---|---|---|---|
<%= link_to translated_attribute(template.name), edit_questionnaire_template_path(template) %> | <%= link_to translated_attribute(template.templatable.title), edit_questionnaire_path(template) %> | <%= template.templatable.questions.count.to_i %> | <%= l template.created_at, format: :long %> | <% if allowed_to?(:update, :template, questionnaire_template: template) %> <%= icon_link_to "pencil-line", edit_questionnaire_template_path(template), t("actions.edit", scope: "decidim.admin"), class: "edit" %> <% end %> <% if allowed_to?(:copy, :template, questionnaire_template: template) %> <%= icon_link_to "file-copy-line", copy_questionnaire_template_path(template), t("actions.duplicate", scope: "decidim.admin"), method: :post %> <% end %> <% if allowed_to?(:destroy, :template, questionnaire_template: template) %> <%= icon_link_to "delete-bin-line", questionnaire_template_path(template), t("actions.destroy", scope: "decidim.admin"), method: :delete, data: { confirm: t(".confirm_delete") }, class: "action-icon--remove" %> <% end %> |