2008-07-04 22:55:45 +04:00
|
|
|
<% if @deliveries %>
|
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>
|
2009-09-13 21:14:35 +04:00
|
|
|
<%= hidden_field_tag 'settings[bcc_recipients]', 0 %>
|
2007-12-02 16:52:16 +03:00
|
|
|
<%= check_box_tag 'settings[bcc_recipients]', 1, Setting.bcc_recipients? %>
|
2009-09-13 21:14:35 +04:00
|
|
|
</p>
|
2008-10-16 03:50:33 +04:00
|
|
|
|
|
|
|
<p><label><%= l(:setting_plain_text_mail) %></label>
|
2009-09-13 21:14:35 +04:00
|
|
|
<%= hidden_field_tag 'settings[plain_text_mail]', 0 %>
|
2008-10-16 03:50:33 +04:00
|
|
|
<%= check_box_tag 'settings[plain_text_mail]', 1, Setting.plain_text_mail? %>
|
2009-09-13 21:14:35 +04:00
|
|
|
</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-10-24 19:24:35 +04:00
|
|
|
<%= l_or_humanize(notifiable, :prefix => 'label_') %></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 %>
|
2008-07-04 22:55:45 +04:00
|
|
|
<% else %>
|
|
|
|
<div class="nodata">
|
|
|
|
<%= simple_format(l(:text_email_delivery_not_configured)) %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|