ref: master
app/views/users/send_mail.html.erb
<%= _('Send e-mail to users') %>
<%= error_messages_for :mailing %> <%= form_for :mailing do |f| %><%= label_tag(_("Recipients: "), nil, { class: "formlabel" }) %> <%= labelled_radio_button(_('All Users'), :send_to, "all", true, { id: "send_to_all" }) %> <%= labelled_radio_button(_('Only Admins'), :send_to, "admins" , false, { id: "send_to_admins" }) %><%= labelled_form_field(_('Subject:'), f.text_field(:subject)) %> <%= labelled_form_field(_('Body:'), f.text_area(:body, :class => current_editor)) %> <%= submit_button(:send, _('Send')) %> <%= button :cancel, _('Cancel e-mail'), :controller => 'users' %> <% end %> <%= javascript_include_tag "send_email.js" %>
<%= labelled_check_box(_('Environment Admins'), 'recipients[env_admins]', true, false, { disabled: true, id: "env_admins" }) %> <%= labelled_check_box(_('Profile Admins'), 'recipients[profile_admins]', true, false, { disabled: true, id: "profile_admins" }) %>