To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / settings / _notifications.html.erb @ 1298:4f746d8966dd

History | View | Annotate | Download (1.33 KB)

1
<% if @deliveries %>
2
<%= form_tag({:action => 'edit', :tab => 'notifications'}) do %>
3

    
4
<div class="box tabular settings">
5
<p><%= setting_text_field :mail_from, :size => 60 %></p>
6

    
7
<p><%= setting_check_box :bcc_recipients %></p>
8

    
9
<p><%= setting_check_box :plain_text_mail %></p>
10

    
11
<p><%= setting_select(:default_notification_option, User.valid_notification_options.collect {|o| [l(o.last), o.first.to_s]}) %></p>
12

    
13
</div>
14

    
15
<fieldset class="box" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend>
16
<%= hidden_field_tag 'settings[notified_events][]', '' %>
17
<% @notifiables.each do |notifiable| %>
18
<%= notification_field notifiable %>
19
<br />
20
<% end %>
21
<p><%= check_all_links('notified_events') %></p>
22
</fieldset>
23

    
24
<fieldset class="box"><legend><%= l(:setting_emails_header) %></legend>
25
<%= setting_text_area :emails_header, :label => false, :class => 'wiki-edit', :rows => 5 %>
26
</fieldset>
27

    
28
<fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend>
29
<%= setting_text_area :emails_footer, :label => false, :class => 'wiki-edit', :rows => 5 %>
30
</fieldset>
31

    
32
<div style="float:right;">
33
<%= link_to l(:label_send_test_email), :controller => 'admin', :action => 'test_email' %>
34
</div>
35

    
36
<%= submit_tag l(:button_save) %>
37
<% end %>
38
<% else %>
39
<div class="nodata">
40
<%= simple_format(l(:text_email_delivery_not_configured)) %>
41
</div>
42
<% end %>