2006-07-29 11:32:58 +02:00
|
|
|
<h2><%=l(:field_mail_notification)%></h2>
|
2006-06-28 20:11:03 +02:00
|
|
|
|
2007-01-26 20:56:25 +01:00
|
|
|
<% form_tag ({:action => 'mail_options'}, :id => 'mail_options_form') do %>
|
2006-07-30 12:47:02 +02:00
|
|
|
|
2006-09-03 12:25:21 +02:00
|
|
|
<div class="box">
|
|
|
|
<p><%=l(:text_select_mail_notifications)%></p>
|
|
|
|
|
2006-07-30 12:47:02 +02:00
|
|
|
<% actions = @actions.group_by {|p| p.group_id } %>
|
|
|
|
<% actions.keys.sort.each do |group_id| %>
|
|
|
|
<fieldset style="margin-top: 6px;"><legend><strong><%= l(Permission::GROUPS[group_id]) %></strong></legend>
|
|
|
|
<% actions[group_id].each do |p| %>
|
|
|
|
<div style="width:170px;float:left;"><%= check_box_tag "action_ids[]", p.id, p.mail_enabled? %>
|
|
|
|
<%= l(p.description.to_sym) %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2007-03-06 23:46:58 +01:00
|
|
|
<div class="clear"></div>
|
2006-07-30 12:47:02 +02:00
|
|
|
</fieldset>
|
2006-06-28 20:11:03 +02:00
|
|
|
<% end %>
|
2006-07-30 12:47:02 +02:00
|
|
|
|
2006-06-28 20:11:03 +02:00
|
|
|
<br />
|
2006-09-03 12:25:21 +02:00
|
|
|
<p><%= check_all_links 'mail_options_form' %></p>
|
|
|
|
</div>
|
|
|
|
|
2006-07-29 11:32:58 +02:00
|
|
|
<%= submit_tag l(:button_save) %>
|
2007-01-26 20:56:25 +01:00
|
|
|
<% end %>
|