2008-01-06 23:24:26 +03:00
|
|
|
<% form_tag({:action => 'edit', :tab => 'notifications'}) do %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2008-01-06 23:24:26 +03:00
|
|
|
<div class="box tabular settings">
|
2007-12-02 16:52:16 +03:00
|
|
|
<p><label><%= l(:setting_mail_from) %></label>
|
|
|
|
<%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>
|
|
|
|
|
|
|
|
<p><label><%= l(:setting_bcc_recipients) %></label>
|
|
|
|
<%= check_box_tag 'settings[bcc_recipients]', 1, Setting.bcc_recipients? %>
|
|
|
|
<%= hidden_field_tag 'settings[bcc_recipients]', 0 %></p>
|
2008-01-06 23:24:26 +03:00
|
|
|
</div>
|
2007-12-02 16:52:16 +03:00
|
|
|
|
2008-05-14 21:23:40 +04:00
|
|
|
<fieldset class="box" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend>
|
2007-09-14 19:30:46 +04:00
|
|
|
<% @notifiables.each do |notifiable| %>
|
2007-12-02 16:52:16 +03:00
|
|
|
<label><%= check_box_tag 'settings[notified_events][]', notifiable, Setting.notified_events.include?(notifiable) %>
|
2008-02-13 01:43:37 +03:00
|
|
|
<%= l_or_humanize(notifiable) %></label><br />
|
2007-09-14 19:30:46 +04:00
|
|
|
<% end %>
|
2008-01-06 23:24:26 +03:00
|
|
|
<%= hidden_field_tag 'settings[notified_events][]', '' %>
|
2008-05-14 21:23:40 +04:00
|
|
|
<p><%= check_all_links('notified_events') %></p>
|
2007-10-21 18:10:07 +04:00
|
|
|
</fieldset>
|
|
|
|
|
2007-10-21 18:30:01 +04:00
|
|
|
<fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend>
|
2007-12-02 16:52:16 +03:00
|
|
|
<%= text_area_tag 'settings[emails_footer]', Setting.emails_footer, :class => 'wiki-edit', :rows => 5 %>
|
2007-09-14 19:30:46 +04:00
|
|
|
</fieldset>
|
|
|
|
|
2008-01-06 23:24:26 +03:00
|
|
|
<div style="float:right;">
|
|
|
|
<%= link_to l(:label_send_test_email), :controller => 'admin', :action => 'test_email' %>
|
|
|
|
</div>
|
|
|
|
|
2007-09-14 19:30:46 +04:00
|
|
|
<%= submit_tag l(:button_save) %>
|
|
|
|
<% end %>
|