<%=l(:field_mail_notification)%>

<%=l(:text_select_mail_notifications)%>

<%= start_form_tag ({}, :id => 'mail_options_form')%> <% 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 %>

<%=l(:button_check_all)%> | <%=l(:button_uncheck_all)%>

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