2006-07-29 13:32:58 +04:00
|
|
|
<h2><%=l(:field_mail_notification)%></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<%= start_form_tag ({}, :id => 'mail_options_form')%>
|
2006-07-30 14:47:02 +04:00
|
|
|
|
2006-09-03 14:25:21 +04:00
|
|
|
<div class="box">
|
|
|
|
<p><%=l(:text_select_mail_notifications)%></p>
|
|
|
|
|
2006-07-30 14:47:02 +04: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 %>
|
|
|
|
</fieldset>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% end %>
|
2006-07-30 14:47:02 +04:00
|
|
|
|
2006-06-28 22:11:03 +04:00
|
|
|
<br />
|
2006-09-03 14:25:21 +04:00
|
|
|
<p><%= check_all_links 'mail_options_form' %></p>
|
|
|
|
</div>
|
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= submit_tag l(:button_save) %>
|
2006-09-03 14:25:21 +04:00
|
|
|
<%= end_form_tag %>
|