瀏覽代碼

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
tags/4.1.0
Go MAEDA 5 年之前
父節點
當前提交
da53b969af
共有 1 個檔案被更改,包括 8 行新增5 行删除
  1. 8
    5
      app/views/search/index.html.erb

+ 8
- 5
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>

Loading…
取消
儲存