Sha256: 11e4870e2c56d3955c5dbb8d1abb396333f30025de1808ad4331313ddd6286e8
Contents?: true
Size: 1.85 KB
Versions: 22
Compression:
Stored size: 1.85 KB
Contents
<div class="card"> <div class="card-divider"> <h2 class="card-title"> <%= t(".title") %> <%= link_to t("actions.new", scope: "decidim.results", name: t("models.result.name", scope: "decidim.results.admin")), new_result_path, class: 'button tiny button--title' if can? :manage, current_feature %> </h2> </div> <div class="card-section"> <div class="table-scroll"> <table class="table-list"> <thead> <tr> <th><%= t("models.result.fields.title", scope: "decidim.results") %></th> <th class="actions"><%= t("actions.title", scope: "decidim.results") %></th> </tr> </thead> <tbody> <% results.each do |result| %> <tr data-id="<%= result.id %>"> <td> <%= translated_attribute(result.title) %><br /> </td> <td class="table-list__actions"> <%= icon_link_to "eye", decidim_results.result_path(id: result, feature_id: current_feature, participatory_process_id: current_participatory_process), t("actions.preview", scope: "decidim.results"), class: "action-icon--preview", target: :blank %> <% if can? :update, current_feature %> <%= icon_link_to "pencil", edit_result_path(result), t("actions.edit", scope: "decidim.results"), class: "action-icon--edit" %> <% end %> <% if can? :destroy, current_feature %> <%= icon_link_to "circle-x", result_path(result), t("actions.destroy", scope: "decidim.results"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.results") } %> <% end %> </td> </tr> <% end %> </tbody> </table> <%= paginate results, theme: "decidim" %> </div> </div> </div>
Version data entries
22 entries across 22 versions & 2 rubygems