<%=l(:field_mail_notification)%>

<%= start_form_tag ({}, :id => 'mail_options_form')%>

<%=l(:text_select_mail_notifications)%>

<% actions = @actions.group_by {|p| p.group_id } %> <% actions.keys.sort.each do |group_id| %>
<%= l(Permission::GROUPS[group_id]) %> <% actions[group_id].each do |p| %>
<%= check_box_tag "action_ids[]", p.id, p.mail_enabled? %> <%= l(p.description.to_sym) %>
<% end %>
<% end %>

<%= check_all_links 'mail_options_form' %>

<%= submit_tag l(:button_save) %> <%= end_form_tag %>