Sha256: 290a1b404e1a7ae43b5a26ac47ae26fe46a0d429a6e4644971006f9540e8055d

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 KB

Contents

<%= stylesheet_link_tag "decidim/direct_verifications/authorizations" %>

<div class="card">
  <div class="card-divider">
    <h2 class="card-title">
      <%= t(".title") %>
      <%= link_to t("admin.index.stats", scope: "decidim.direct_verifications.verification"), stats_path, class: "button tiny button--title" %>
      <%= link_to t(".new_import"), direct_verifications_path, class: "button tiny button--title" %>
    </h2>
  </div>
  <div class="card-section">
    <div class="table-scroll">
      <table class="table-list">
        <thead>
          <tr>
            <th><%= t(".name") %></th>
            <th><%= t(".metadata") %></th>
            <th><%= t(".user_name") %></th>
            <th><%= t(".created_at") %></th>
            <th>&nbsp;</th>
          </tr>
        </thead>
        <tbody>
          <% @authorizations.each do |authorization| %>
            <tr data-authorization-id="<%= authorization.id %>">
              <td><%= authorization.name %></td>
              <td class="metadata">
                <span class="code"><%= authorization.metadata %></span>
              </td>
              <td><%= authorization.user.name %></td>
              <td><%= authorization.created_at %></td>

              <td class="table-list__actions">
                <%= icon_link_to "circle-x", authorization_path(authorization), t("actions.destroy", scope: "decidim.admin"), class: "action-icon--remove", method: :delete, data: { confirm: t("actions.confirm_destroy", scope: "decidim.admin") } %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
      <%= paginate @authorizations, theme: "decidim" %>
    </div>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-direct_verifications-1.0.2 app/views/decidim/direct_verifications/verification/admin/authorizations/index.html.erb