Note the CSS could probably be improved to avoid duplication with other button style definitions. However, that's fine because we're going to change the style of the links soon. For the same reason, I haven't bothered to style every single link the way it was until now.
50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
<h2 class="inline-block"><%= t("admin.menu.system_emails") %></h2>
|
|
|
|
<table id="system_emails">
|
|
<thead>
|
|
<tr>
|
|
<th><%= t("admin.shared.title") %></th>
|
|
<th><%= t("admin.shared.description") %></th>
|
|
<th class="small-7"><%= t("admin.shared.actions") %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @system_emails.each do |system_email_title, system_email_actions| %>
|
|
<tr id="<%= system_email_title %>" class="system_email">
|
|
<td>
|
|
<%= t("admin.system_emails.#{system_email_title}.title") %>
|
|
</td>
|
|
<td>
|
|
<%= t("admin.system_emails.#{system_email_title}.description") %>
|
|
</td>
|
|
<td>
|
|
<%= render Admin::TableActionsComponent.new(actions: []) do |actions| %>
|
|
<% if system_email_actions.include?("view") %>
|
|
<%= actions.link_to t("admin.shared.view"),
|
|
admin_system_email_view_path(system_email_title),
|
|
class: "show-link" %>
|
|
<% end %>
|
|
|
|
<% if system_email_actions.include?("preview_pending") %>
|
|
<%= actions.link_to t("admin.system_emails.preview_pending.action"),
|
|
admin_system_email_preview_pending_path(system_email_title),
|
|
class: "preview-pending-link" %>
|
|
<%= actions.link_to t("admin.system_emails.preview_pending.send_pending"),
|
|
admin_system_email_send_pending_path(system_email_title),
|
|
class: "send-pending-link",
|
|
method: :put %>
|
|
<% end %>
|
|
|
|
<% if system_email_actions.include?("edit_info") %>
|
|
<p class="help-text">
|
|
<%= t("admin.system_emails.edit_info") %><br>
|
|
<code><%= "app/views/mailer/#{system_email_title}.html.erb" %></code>
|
|
</p>
|
|
<% end %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|