Sha256: aadc41f7dd6a0796ececd3b271beecb081d4a291bd93533d4b94576aea1455c8
Contents?: true
Size: 1.31 KB
Versions: 6
Compression:
Stored size: 1.31 KB
Contents
<% content_for :title do %> <h2><%= t "decidim.admin.titles.participatory_processes" %></h2> <% end %> <div class="actions title"> <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process.name", scope: "decidim.admin")), ['new', 'participatory_process'], class: 'new' %> </div> <table class="stack"> <thead> <tr> <th><%= t("models.participatory_process.fields.title", scope: "decidim.admin") %></th> <th><%= t("models.participatory_process.fields.created_at", scope: "decidim.admin") %></th> <th class="actions"><%= t("actions.title", scope: "decidim.admin") %></th> </tr> </thead> <tbody> <% @participatory_processes.each do |process| %> <tr> <td> <%= link_to translated_attribute(process.title), process %><br /> </td> <td> <%= l process.created_at, format: :short %> </td> <td class="actions"> <%= link_to_if policy(process).edit?, t("actions.edit", scope: "decidim.admin"), ['edit', process] %> <%= link_to_if policy(process).destroy?, t("actions.destroy", scope: "decidim.admin"), process, method: :delete, class: "small alert button", data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %> </td> </tr> <% end %> </tbody> </table>
Version data entries
6 entries across 6 versions & 2 rubygems