summaryrefslogtreecommitdiffstats
path: root/app/views/admin/mail_options.rhtml
blob: 3c95ebd7105248a0a3dafc4b53454493a1eebc87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div class="contextual">
<%= link_to l(:label_send_test_email), :action => 'test_email' %>
</div>

<h2><%=l(:field_mail_notification)%></h2>

<% form_tag({:action => 'mail_options'}, :id => 'mail-options-form') do %>

<fieldset class="box"><legend><%=l(:text_select_mail_notifications)%></legend>
<% @notifiables.each do |notifiable| %>
  <label><%= check_box_tag "notified_events[]", notifiable, Setting.notified_events.include?(notifiable) %>
  <%= notifiable.humanize %></label><br />
<% end %>
<p><%= check_all_links('mail-options-form') %></p>
</fieldset>

<fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend>
<%= text_area_tag 'emails_footer', Setting.emails_footer, :class => 'wiki-edit', :rows => 5 %>
</fieldset>

<%= submit_tag l(:button_save) %>
<% end %>