Added label tags on role form permission checkboxes.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@806 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
69c2965051
commit
df8945177a
|
@ -13,10 +13,10 @@
|
||||||
<% perms_by_module.keys.sort.each do |mod| %>
|
<% perms_by_module.keys.sort.each do |mod| %>
|
||||||
<fieldset><legend><%= mod.blank? ? l(:label_project) : mod.humanize %></legend>
|
<fieldset><legend><%= mod.blank? ? l(:label_project) : mod.humanize %></legend>
|
||||||
<% perms_by_module[mod].each do |permission| %>
|
<% perms_by_module[mod].each do |permission| %>
|
||||||
<div style="width:220px;float:left;">
|
<label class="floating">
|
||||||
<%= check_box_tag 'role[permissions][]', permission.name, (@role.permissions.include? permission.name) %>
|
<%= check_box_tag 'role[permissions][]', permission.name, (@role.permissions.include? permission.name) %>
|
||||||
<%= permission.name.to_s.humanize %>
|
<%= permission.name.to_s.humanize %>
|
||||||
</div>
|
</label>
|
||||||
<% end %>
|
<% end %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -125,6 +125,13 @@ width: 175px; /*width of labels. Should be smaller than left column to create so
|
||||||
margin*/
|
margin*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tabular label.floating{
|
||||||
|
font-weight: normal;
|
||||||
|
margin-left: 0px;
|
||||||
|
text-align: left;
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
#settings .tabular p{ padding-left: 300px; }
|
#settings .tabular p{ padding-left: 300px; }
|
||||||
#settings .tabular label{ margin-left: -300px; width: 295px; }
|
#settings .tabular label{ margin-left: -300px; width: 295px; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue