_notifications.rhtml
40 lines
| 1.5 KiB
| text/html+ruby
|
RhtmlLexer
|
r1611 | <% if @deliveries %> | ||
|
r1033 | <% form_tag({:action => 'edit', :tab => 'notifications'}) do %> | ||
|
r330 | |||
|
r1033 | <div class="box tabular settings"> | ||
|
r931 | <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> | ||||
|
r1930 | |||
<p><label><%= l(:setting_plain_text_mail) %></label> | ||||
<%= check_box_tag 'settings[plain_text_mail]', 1, Setting.plain_text_mail? %> | ||||
<%= hidden_field_tag 'settings[plain_text_mail]', 0 %></p> | ||||
|
r1033 | </div> | ||
|
r931 | |||
|
r1414 | <fieldset class="box" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend> | ||
|
r717 | <% @notifiables.each do |notifiable| %> | ||
|
r931 | <label><%= check_box_tag 'settings[notified_events][]', notifiable, Setting.notified_events.include?(notifiable) %> | ||
|
r1941 | <%= l_or_humanize(notifiable, :prefix => 'label_') %></label><br /> | ||
|
r717 | <% end %> | ||
|
r1033 | <%= hidden_field_tag 'settings[notified_events][]', '' %> | ||
|
r1414 | <p><%= check_all_links('notified_events') %></p> | ||
|
r845 | </fieldset> | ||
|
r846 | <fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend> | ||
|
r931 | <%= text_area_tag 'settings[emails_footer]', Setting.emails_footer, :class => 'wiki-edit', :rows => 5 %> | ||
|
r717 | </fieldset> | ||
|
r1033 | <div style="float:right;"> | ||
<%= link_to l(:label_send_test_email), :controller => 'admin', :action => 'test_email' %> | ||||
</div> | ||||
|
r717 | <%= submit_tag l(:button_save) %> | ||
<% end %> | ||||
|
r1611 | <% else %> | ||
<div class="nodata"> | ||||
<%= simple_format(l(:text_email_delivery_not_configured)) %> | ||||
</div> | ||||
<% end %> | ||||