Show email notification options in a project tree
This commit is contained in:
parent
b1671e46f0
commit
5f3c6b87e4
@ -4,8 +4,9 @@
|
|||||||
:onchange => 'if (this.value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %>
|
:onchange => 'if (this.value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %>
|
||||||
</p>
|
</p>
|
||||||
<% content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
|
<% content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
|
||||||
<p><% @user.projects.each do |project| %>
|
<p><% project_tree(@user.projects.each) do |project,level| %>
|
||||||
<label><%= check_box_tag 'notified_project_ids[]', project.id, @user.notified_projects_ids.include?(project.id) %> <%=h project.name %></label><br />
|
<% name_prefix = (level > 0 ? (' ' * 2 * level + '» ') : '') %>
|
||||||
|
<label><%= check_box_tag 'notified_project_ids[]', project.id, @user.notified_projects_ids.include?(project.id) %> <%= name_prefix + h(project.name) %></label><br />
|
||||||
<% end %></p>
|
<% end %></p>
|
||||||
<p><em><%= l(:text_user_mail_option) %></em></p>
|
<p><em><%= l(:text_user_mail_option) %></em></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user