|
1 | | -<%= render 'posts/markdown_script' %> |
2 | | - |
3 | | -<div class="notice is-danger"> |
4 | | - <p> |
5 | | - <i class="fas fa-exclamation-triangle"></i> Please be careful, as this tool sends a lot of emails. |
6 | | - </p> |
7 | | -</div> |
8 | | - |
9 | | -<h1><%= t 'admin.tools.email_all' %></h1> |
10 | | -<p><%= t 'admin.email_all_blurb' %></p> |
11 | | - |
12 | | -<%= form_with url: send_all_email_path do |f| %> |
13 | | - <div class="form-group"> |
14 | | - <%= f.label :subject, t('g.subject').capitalize, class: 'form-element' %> |
15 | | - <%= f.text_field :subject, class: 'form-element', required: true %> |
16 | | - </div> |
17 | | - |
18 | | - <%= render 'shared/body_field', f: f, field_name: :body_markdown, field_label: t('g.body').capitalize, post: nil %> |
19 | | - |
20 | | - <div class="post-preview"></div> |
21 | | - |
22 | | - <%= f.submit t('g.send').capitalize, class: 'button is-filled', |
23 | | - onclick: "return confirm('Are you sure you want to send this email to all users?')" %> |
24 | | -<% end %> |
| 1 | +<%= render 'posts/markdown_script' %> |
| 2 | + |
| 3 | +<div class="notice is-danger"> |
| 4 | + <p> |
| 5 | + <i class="fas fa-exclamation-triangle"></i> Please be careful, as this tool sends a lot of emails. |
| 6 | + </p> |
| 7 | +</div> |
| 8 | + |
| 9 | +<h1><%= t 'admin.tools.email_all' %></h1> |
| 10 | +<p><%= t 'admin.email_all_blurb' %></p> |
| 11 | + |
| 12 | +<%= form_with url: send_all_email_path do |f| %> |
| 13 | + <div class="form-group"> |
| 14 | + <%= f.label :subject, t('g.subject').capitalize, class: 'form-element' %> |
| 15 | + <%= f.text_field :subject, class: 'form-element', required: true %> |
| 16 | + </div> |
| 17 | + |
| 18 | + <%= render 'shared/body_field', f: f, field_name: :body_markdown, field_label: t('g.body').capitalize, post: nil %> |
| 19 | + |
| 20 | + <div class="post-preview"></div> |
| 21 | + |
| 22 | + <%= f.submit t('g.send').capitalize, class: 'button is-filled', |
| 23 | + onclick: "return confirm('Are you sure you want to send this email to all users?')" %> |
| 24 | +<% end %> |
0 commit comments