diff options
author | Go MAEDA <maeda@farend.jp> | 2019-02-08 09:34:35 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-02-08 09:34:35 +0000 |
commit | da53b969afcfd3bd778af1d110526c11bc3e0213 (patch) | |
tree | 055d8a6edd0fd97176ebccdd93ec3fbd08083bcf | |
parent | 8cf95006bfda3c7e4972a52b93d8ddf5ac1b5700 (diff) | |
download | redmine-da53b969afcfd3bd778af1d110526c11bc3e0213.tar.gz redmine-da53b969afcfd3bd778af1d110526c11bc3e0213.zip |
Add a check/uncheck all button to search (#10264).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17852 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/search/index.html.erb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb index c1ee25ce7..526568130 100644 --- a/app/views/search/index.html.erb +++ b/app/views/search/index.html.erb @@ -11,11 +11,14 @@ <label><%= check_box_tag 'titles_only', 1, @titles_only %> <%= l(:label_search_titles_only) %></label> </p> -<p id="search-types"> -<% @object_types.each do |t| %> -<label><%= check_box_tag t, 1, @scope.include?(t) %> <%= link_to type_label(t), "#" %></label> -<% end %> -</p> +<fieldset class="box"> + <legend><%= toggle_checkboxes_link('p#search-types input') %></legend> + <p id="search-types"> + <% @object_types.each do |t| %> + <label><%= check_box_tag t, 1, @scope.include?(t) %> <%= link_to type_label(t), "#" %></label> + <% end %> + </p> +</fieldset> <fieldset class="collapsible collapsed"> <legend onclick="toggleFieldset(this);"><%= l(:label_options) %></legend> |