Adds button to send pending proposal notifications
This commit is contained in:
@@ -31,7 +31,7 @@ class Admin::SystemEmailsController < Admin::BaseController
|
||||
end
|
||||
|
||||
def send_pending
|
||||
Notification.send_pending
|
||||
Notification.delay.send_pending
|
||||
|
||||
flash[:notice] = t("admin.system_emails.preview_pending.send_pending_notification")
|
||||
redirect_to admin_system_emails_path
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<tr>
|
||||
<th><%= t("admin.shared.title") %></th>
|
||||
<th><%= t("admin.shared.description") %></th>
|
||||
<th class="small-5 text-right"><%= t("admin.shared.actions") %></th>
|
||||
<th class="small-7 text-right"><%= t("admin.shared.actions") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -27,6 +27,10 @@
|
||||
admin_system_email_preview_pending_path(system_email_title),
|
||||
class: "button" %>
|
||||
<% end %>
|
||||
<%= link_to t("admin.system_emails.preview_pending.send_pending"),
|
||||
admin_system_email_send_pending_path(system_email_title),
|
||||
class: "button",
|
||||
method: :put %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user