summaryrefslogtreecommitdiffstats
path: root/app/views/principal_memberships
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-02 20:16:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-02 20:16:59 +0000
commitea2df369dca1d96dca16b8a684ef8928586ebd26 (patch)
treef7065b7258dd6dc082458e1ab6140a25af7ab78b /app/views/principal_memberships
parent72115ec093e301f496c6759b17e71afdc9ad328d (diff)
downloadredmine-ea2df369dca1d96dca16b8a684ef8928586ebd26.tar.gz
redmine-ea2df369dca1d96dca16b8a684ef8928586ebd26.zip
Adds (un)check all buttons to select all projects (#11702).
git-svn-id: http://svn.redmine.org/redmine/trunk@13537 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/principal_memberships')
-rw-r--r--app/views/principal_memberships/_new_form.html.erb10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/principal_memberships/_new_form.html.erb b/app/views/principal_memberships/_new_form.html.erb
index bdd7df64c..2a0d50dbc 100644
--- a/app/views/principal_memberships/_new_form.html.erb
+++ b/app/views/principal_memberships/_new_form.html.erb
@@ -1,5 +1,5 @@
<fieldset class="box">
- <legend><%= l(:label_project_plural) %></legend>
+ <legend><%= l(:label_project_plural) %> <%= toggle_checkboxes_link('.projects-selection input:enabled') %></legend>
<div style="max-height:300px; overflow:auto;">
<div class="projects-selection">
<%= render_project_nested_lists(@projects) do |p| %>
@@ -12,11 +12,13 @@
</fieldset>
<fieldset class="box">
- <legend><%= l(:label_role_plural) %></legend>
+ <legend><%= l(:label_role_plural) %> <%= toggle_checkboxes_link('.roles-selection input') %></legend>
+ <div class="roles-selection">
<% @roles.each do |role| %>
- <label class="inline">
+ <label>
<%= check_box_tag 'membership[role_ids][]', role.id, false, :id => nil %>
- <%=h role %>
+ <%= role %>
</label>
<% end %>
+ </div>
</fieldset>