mail_options.rhtml

Chris Grant, 2008-02-03 10:48

Download (765 Bytes)

 
1
<h2><%=l(:field_mail_notification)%></h2>
2

    
3
<% form_tag ({:action => 'mail_options'}, :id => 'mail_options_form') do %>
4

    
5
<div class="box">
6
<p><%=l(:text_select_mail_notifications)%></p>
7

    
8
<% actions = @actions.group_by {|p| p.group_id } %>
9
<% actions.keys.sort.each do |group_id| %>
10
<fieldset style="margin-top: 6px;"><legend><strong><%= l(Permission::GROUPS[group_id]) %></strong></legend>
11
<% actions[group_id].each do |p| %>
12
  <div style="width:170px;float:left;"><%= check_box_tag "action_ids[]", p.id, p.mail_enabled? %>
13
  <%= l(p.description.to_sym) %>
14
  </div>
15
<% end %>
16
<div style="clear: both;"></div>
17
</fieldset>
18
<% end %>
19

    
20
<br />
21
<p><%= check_all_links 'mail_options_form' %></p>
22
</div>
23

    
24
<%= submit_tag l(:button_save) %>
25
<% end %>