Sha256: 0800e02c2c0873cd41d695ecf4336650eaf650c5568514e53be0a8d095282956

Contents?: true

Size: 1.89 KB

Versions: 3

Compression:

Stored size: 1.89 KB

Contents

<div class="card">
  <div class="card-divider">
    <h2 class="card-title">
      <%= t "decidim.admin.titles.participatory_process_groups" %>
      <%= link_to t("actions.new", scope: "decidim.admin", name: t("models.participatory_process_group.name", scope: "decidim.admin")), ["new", "participatory_process_group"], class: "button tiny button--title new" if can? :create, Decidim::ParticipatoryProcessGroup %>
    </h2>
  </div>
  <div class="card-section">
    <div class="table-scroll">
      <table class="table-list">
        <thead>
          <tr>
            <th><%= t("models.participatory_process_group.fields.name", scope: "decidim.admin") %></th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <% collection.each do |group| %>
            <tr>
              <td>
                <% if can? :update, group %>
                  <%= link_to translated_attribute(group.name), ["edit", group] %><br />
                <% else %>
                  <%= translated_attribute(group.name) %>
                <% end %>
              </td>
              <td class="table-list__actions">
                <% if can? :update, group %>
                  <%= icon_link_to "pencil", ["edit", group], t("actions.edit", scope: "decidim.admin"), class: "action-icon--edit" %>
                <% end %>

                <%= icon_link_to "eye", decidim_participatory_processes.participatory_process_group_path(group), t("actions.preview", scope: "decidim.admin"), class: "action-icon--preview" %>

                <% if can? :destroy, group %>
                  <%= icon_link_to "circle-x", group, t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
                <% end %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  </div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.11.2 app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb
decidim-participatory_processes-0.11.1 app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb
decidim-participatory_processes-0.11.0.pre1 app/views/decidim/participatory_processes/admin/participatory_process_groups/index.html.erb