Mercurial > hg > soundsoftware-site
annotate .svn/pristine/07/07f4ae691a86068505e5dcb35963f143e7c54566.svn-base @ 1519:afce8026aaeb redmine-2.4-integration
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:34:53 +0100 |
parents | 261b3d9a4903 |
children |
rev | line source |
---|---|
Chris@1464 | 1 <p> |
Chris@1464 | 2 <%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted" %> |
Chris@1464 | 3 <%= select_tag( |
Chris@1464 | 4 'user[mail_notification]', |
Chris@1464 | 5 options_for_select( |
Chris@1464 | 6 user_mail_notification_options(@user), @user.mail_notification), |
Chris@1464 | 7 :onchange => 'if (this.value == "selected") {$("#notified-projects").show();} else {$("#notified-projects").hide();}' |
Chris@1464 | 8 ) %> |
Chris@1464 | 9 </p> |
Chris@1464 | 10 <%= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %> |
Chris@1464 | 11 <%= render_project_nested_lists(@user.projects) do |project| |
Chris@1464 | 12 content_tag('label', |
Chris@1464 | 13 check_box_tag( |
Chris@1464 | 14 'user[notified_project_ids][]', |
Chris@1464 | 15 project.id, |
Chris@1464 | 16 @user.notified_projects_ids.include?(project.id), |
Chris@1464 | 17 :id => nil |
Chris@1464 | 18 ) + ' ' + h(project.name) |
Chris@1464 | 19 ) |
Chris@1464 | 20 end %> |
Chris@1464 | 21 <%= hidden_field_tag 'user[notified_project_ids][]', '' %> |
Chris@1464 | 22 <p><em class="info"><%= l(:text_user_mail_option) %></em></p> |
Chris@1464 | 23 <% end %> |
Chris@1464 | 24 |
Chris@1464 | 25 <%= fields_for :pref, @user.pref do |pref_fields| %> |
Chris@1464 | 26 <p> |
Chris@1464 | 27 <%= pref_fields.check_box :no_self_notified %> |
Chris@1464 | 28 <label for="pref_no_self_notified"><%= l(:label_user_mail_no_self_notified) %></label> |
Chris@1464 | 29 </p> |
Chris@1464 | 30 <% end %> |