Skip to content

Commit

Permalink
refactor index table body content
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed Apr 4, 2024
1 parent ed399c4 commit 6e8844a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="card">
<div class="card-divider">
<h2 class="card-title">Access code groups</h2>
<a class="button tiny button--title new-access" href="#"><%= t("decidim.admin.code_group.index.new_access_code_group_button") %></a>
<a class="button tiny button--title new-access" href="<%= new_code_group_path %>" ><%= t("decidim.admin.code_group.index.new_access_code_group_button") %></a>
</div>
<div class="card-section">
<div class="table-scroll">
Expand All @@ -20,10 +20,10 @@
<% groups.each do |group| %>
<tr>
<td><%= translated_attribute(group.title) %></td>
<td><%= translated_attribute(l(group.expires_at, format: :decidim_short)) %></td>
<td><%= translated_attribute(group.active) %></td>
<td><%= translated_attribute(group.tokens.count) %></td>
<td><%= translated_attribute(group.max_reuses) %></td>
<td><%= l(group.expires_at, format: :decidim_short) %></td>
<td><%= t("booleans.#{group.active}") %></td>
<td><%= group.tokens.count %></td>
<td><%= group.max_reuses %></td>
<td class="table-list__actions">
<%= icon "data-transfer-download", class: "action-icon--edit" %>
<%= icon "pencil", class: "action-icon--edit" %>
Expand Down
Empty file.

0 comments on commit 6e8844a

Please sign in to comment.