Sha256: bd028dd1a66ef4143f4f689a7818fbd7d1fff16a98a49ad9f736fe1a6dfe5f72

Contents?: true

Size: 1.23 KB

Versions: 7

Compression:

Stored size: 1.23 KB

Contents

<h2><%= t(".title") %></h2>

<div class="actions title">
  <%= link_to t("actions.new", scope: "decidim.results", name: t("models.result.name", scope: "decidim.results.admin")), new_result_path, class: 'new' if can? :manage, current_feature %>
</div>

<table class="stack">
  <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>
          <%= link_to translated_attribute(result.title), decidim_results.result_path(id: result, feature_id: current_feature, participatory_process_id: current_participatory_process), target: :blank %><br />
        </td>
        <td class="actions">
          <%= link_to t("actions.edit", scope: "decidim.results"), edit_result_path(result) if can? :update, current_feature %>
          <%= link_to t("actions.destroy", scope: "decidim.results"), result_path(result), method: :delete, class: "small alert button", data: { confirm: t("actions.confirm_destroy", scope: "decidim.results") } if can? :destroy, current_feature %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
decidim-results-0.0.6 app/views/decidim/results/admin/results/index.html.erb
decidim-0.0.6 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-results-0.0.5 app/views/decidim/results/admin/results/index.html.erb
decidim-0.0.5 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-0.0.4 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-results-0.0.3 app/views/decidim/results/admin/results/index.html.erb
decidim-0.0.3 decidim-results/app/views/decidim/results/admin/results/index.html.erb