You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_notifications.rhtml 1.2KB

123456789101112131415161718192021222324252627282930
  1. <% form_tag({:action => 'edit', :tab => 'notifications'}) do %>
  2. <div class="box tabular settings">
  3. <p><label><%= l(:setting_mail_from) %></label>
  4. <%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %></p>
  5. <p><label><%= l(:setting_bcc_recipients) %></label>
  6. <%= check_box_tag 'settings[bcc_recipients]', 1, Setting.bcc_recipients? %>
  7. <%= hidden_field_tag 'settings[bcc_recipients]', 0 %></p>
  8. </div>
  9. <fieldset class="box" id="notified_events"><legend><%=l(:text_select_mail_notifications)%></legend>
  10. <% @notifiables.each do |notifiable| %>
  11. <label><%= check_box_tag 'settings[notified_events][]', notifiable, Setting.notified_events.include?(notifiable) %>
  12. <%= l_or_humanize(notifiable) %></label><br />
  13. <% end %>
  14. <%= hidden_field_tag 'settings[notified_events][]', '' %>
  15. <p><%= check_all_links('notified_events') %></p>
  16. </fieldset>
  17. <fieldset class="box"><legend><%= l(:setting_emails_footer) %></legend>
  18. <%= text_area_tag 'settings[emails_footer]', Setting.emails_footer, :class => 'wiki-edit', :rows => 5 %>
  19. </fieldset>
  20. <div style="float:right;">
  21. <%= link_to l(:label_send_test_email), :controller => 'admin', :action => 'test_email' %>
  22. </div>
  23. <%= submit_tag l(:button_save) %>
  24. <% end %>