2008-07-04 22:55:45 +04:00
|
|
|
<% if @deliveries %>
|
2012-04-25 21:17:49 +04: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">
|
2009-12-19 23:07:09 +03:00
|
|
|
<p><%= setting_text_field :mail_from, :size => 60 %></p>
|
|
|
|
|
|
|
|
<p><%= setting_check_box :bcc_recipients %></p>
|
|
|
|
|
|
|
|
<p><%= setting_check_box :plain_text_mail %></p>
|
2010-09-28 22:36:50 +04:00
|
|
|
|
2011-01-16 18:36:42 +03:00
|
|
|
<p><%= setting_select(:default_notification_option, User.valid_notification_options.collect {|o| [l(o.last), o.first.to_s]}) %></p>
|
2010-09-28 22:36:50 +04:00
|
|
|
|
2008-01-06 23:24:26 +03:00
|
|
|
</div>
|
2007-12-02 16:52:16 +03:00
|
|
|
|
2010-09-29 01:09:06 +04:00
|
|
|
<fieldset class="box" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend>
|
|
|
|
<%= hidden_field_tag 'settings[notified_events][]', '' %>
|
|
|
|
<% @notifiables.each do |notifiable| %>
|
|
|
|
<%= notification_field notifiable %>
|
|
|
|
<br />
|
|
|
|
<% end %>
|
|
|
|
<p><%= check_all_links('notified_events') %></p>
|
2007-10-21 18:10:07 +04:00
|
|
|
</fieldset>
|
|
|
|
|
2010-11-02 22:00:36 +03:00
|
|
|
<fieldset class="box"><legend><%= l(:setting_emails_header) %></legend>
|
|
|
|
<%= setting_text_area :emails_header, :label => false, :class => 'wiki-edit', :rows => 5 %>
|
|
|
|
</fieldset>
|
|
|
|
|
2007-10-21 18:30:01 +04:00
|
|
|
<fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend>
|
2009-12-19 23:07:09 +03:00
|
|
|
<%= setting_text_area :emails_footer, :label => false, :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 %>
|