Mercurial > hg > soundsoftware-site
annotate .svn/pristine/c1/c10e9a1142bb5d5518887fd1a88ba99ec4614876.svn-base @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +0100 |
parents | 038ba2d95de8 |
children |
rev | line source |
---|---|
Chris@1296 | 1 <p> |
Chris@1296 | 2 <%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted" %> |
Chris@1296 | 3 <%= select_tag( |
Chris@1296 | 4 'user[mail_notification]', |
Chris@1296 | 5 options_for_select( |
Chris@1296 | 6 user_mail_notification_options(@user), @user.mail_notification), |
Chris@1296 | 7 :onchange => 'if (this.value == "selected") {$("#notified-projects").show();} else {$("#notified-projects").hide();}' |
Chris@1296 | 8 ) %> |
Chris@1296 | 9 </p> |
Chris@1296 | 10 <%= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %> |
Chris@1296 | 11 <%= render_project_nested_lists(@user.projects) do |project| |
Chris@1296 | 12 content_tag('label', |
Chris@1296 | 13 check_box_tag( |
Chris@1296 | 14 'notified_project_ids[]', |
Chris@1296 | 15 project.id, |
Chris@1296 | 16 @user.notified_projects_ids.include?(project.id) |
Chris@1296 | 17 ) + ' ' + h(project.name) |
Chris@1296 | 18 ) |
Chris@1296 | 19 end %> |
Chris@1296 | 20 <p><em class="info"><%= l(:text_user_mail_option) %></em></p> |
Chris@1296 | 21 <% end %> |
Chris@1296 | 22 <p> |
Chris@1296 | 23 <label> |
Chris@1296 | 24 <%= l(:label_user_mail_no_self_notified) %> |
Chris@1296 | 25 <%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %> |
Chris@1296 | 26 </label> |
Chris@1296 | 27 </p> |