项目

一般

简介

Bug #125 » fix_tick_position_in_membership_modals.patch

Redmine Admin, 2021-12-22 14:21

查看差别:

app/helpers/application_helper.rb
1256 1256
    link_to_function '',
1257 1257
      "toggleCheckboxesBySelector('#{selector}')",
1258 1258
      :title => "#{l(:button_check_all)} / #{l(:button_uncheck_all)}",
1259
      :class => 'toggle-checkboxes'
1259
      :class => 'icon icon-checked'
1260 1260
  end
1261 1261

  
1262 1262
  def progress_bar(pcts, options={})
app/views/members/_new_form.html.erb
7 7
  </div>
8 8
</fieldset>
9 9
<fieldset class="box">
10
  <legend><%= l(:label_role_plural) %> <%= toggle_checkboxes_link('.roles-selection input') %></legend>
10
  <legend><%= toggle_checkboxes_link('.roles-selection input') %> <%= l(:label_role_plural) %></legend>
11 11
  <div class="roles-selection">
12 12
    <% User.current.managed_roles(@project).each do |role| %>
13 13
      <label><%= check_box_tag 'membership[role_ids][]', role.id, false, :id => nil %> <%= role %></label>
app/views/principal_memberships/_new_form.html.erb
1 1
<fieldset class="box">
2
  <legend><%= l(:label_project_plural) %> <%= toggle_checkboxes_link('.projects-selection input:enabled') %></legend>
2
  <legend><%= toggle_checkboxes_link('.projects-selection input:enabled') %> <%= l(:label_project_plural) %></legend>
3 3
  <div class="objects-selection">
4 4
    <div class="projects-selection">
5 5
    <%= render_project_nested_lists(@projects) do |p| %>
......
12 12
</fieldset>
13 13

  
14 14
<fieldset class="box">
15
  <legend><%= l(:label_role_plural) %> <%= toggle_checkboxes_link('.roles-selection input') %></legend>
15
  <legend><%= toggle_checkboxes_link('.roles-selection input') %><%= l(:label_role_plural) %></legend>
16 16
  <div class="roles-selection">
17 17
  <% @roles.each do |role| %>
18 18
    <label>
public/stylesheets/application.css
140 140

  
141 141
a#toggle-completed-versions {color:#999;}
142 142

  
143
a.toggle-checkboxes { margin-left: 5px; padding-left: 12px; background: url(../images/toggle_check.png) no-repeat 0% 50%; }
144

  
145 143
/***** Dropdown *****/
146 144
.drdn {position:relative;}
147 145
.drdn-trigger {
    (1-1/1)