Sha256: 058797622a1493abb3d0cd974a7d8a07e14293d9189123fdf9399aed8e0a8a19
Contents?: true
Size: 1.76 KB
Versions: 24
Compression:
Stored size: 1.76 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", resource_locator(result).path, 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
24 entries across 24 versions & 2 rubygems