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

Version Path
decidim-results-0.6.8 app/views/decidim/results/admin/results/index.html.erb
decidim-0.6.8 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-results-0.6.7 app/views/decidim/results/admin/results/index.html.erb
decidim-0.6.7 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-results-0.6.6 app/views/decidim/results/admin/results/index.html.erb
decidim-0.6.6 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-results-0.6.5 app/views/decidim/results/admin/results/index.html.erb
decidim-0.6.5 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-results-0.6.4 app/views/decidim/results/admin/results/index.html.erb
decidim-0.6.4 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-results-0.6.3 app/views/decidim/results/admin/results/index.html.erb
decidim-0.6.3 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-results-0.6.2 app/views/decidim/results/admin/results/index.html.erb
decidim-0.6.2 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-results-0.6.1 app/views/decidim/results/admin/results/index.html.erb
decidim-0.6.1 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-results-0.6.0 app/views/decidim/results/admin/results/index.html.erb
decidim-0.6.0 decidim-results/app/views/decidim/results/admin/results/index.html.erb
decidim-results-0.5.1 app/views/decidim/results/admin/results/index.html.erb
decidim-0.5.1 decidim-results/app/views/decidim/results/admin/results/index.html.erb