_notifications.rhtml
42 lines
| 1.3 KiB
| text/html+ruby
|
RhtmlLexer
|
r1611 | <% if @deliveries %> | ||
|
r1033 | <% form_tag({:action => 'edit', :tab => 'notifications'}) do %> | ||
|
r330 | |||
|
r1033 | <div class="box tabular settings"> | ||
|
r3084 | <p><%= setting_text_field :mail_from, :size => 60 %></p> | ||
<p><%= setting_check_box :bcc_recipients %></p> | ||||
<p><%= setting_check_box :plain_text_mail %></p> | ||||
|
r4105 | |||
|
r4610 | <p><%= setting_select(:default_notification_option, User.valid_notification_options.collect {|o| [l(o.last), o.first.to_s]}) %></p> | ||
|
r4105 | |||
|
r1033 | </div> | ||
|
r931 | |||
|
r4108 | <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> | ||||
|
r845 | </fieldset> | ||
|
r4248 | <fieldset class="box"><legend><%= l(:setting_emails_header) %></legend> | ||
<%= setting_text_area :emails_header, :label => false, :class => 'wiki-edit', :rows => 5 %> | ||||
</fieldset> | ||||
|
r846 | <fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend> | ||
|
r3084 | <%= setting_text_area :emails_footer, :label => false, :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 %> | ||||