]> source.dussan.org Git - redmine.git/commitdiff
Added label tags on role form permission checkboxes.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 5 Oct 2007 20:06:53 +0000 (20:06 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 5 Oct 2007 20:06:53 +0000 (20:06 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@806 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/roles/_form.rhtml
public/stylesheets/application.css

index 8dab8129a069d6840e28abfa1268fa3747ffe997..b77cbacdff8e8c395c2f2009b947f54fdb125022 100644 (file)
 <% perms_by_module.keys.sort.each do |mod| %>
     <fieldset><legend><%= mod.blank? ? l(:label_project) : mod.humanize %></legend>
     <% 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) %>
         <%= permission.name.to_s.humanize %>
-        </div>
+        </label>
     <% end %>
     </fieldset>
 <% end %>
index a1e1cca2280fa9bfe506c390712644c1711b61b6..854f29c634c9a9d5cc330ea1a95e46cc34596e4f 100644 (file)
@@ -125,6 +125,13 @@ width: 175px; /*width of labels. Should be smaller than left column to create so
 margin*/
 }
 
+.tabular label.floating{
+font-weight: normal;
+margin-left: 0px;
+text-align: left;
+width: 200px;
+}
+
 #settings .tabular p{ padding-left: 300px; }
 #settings .tabular label{ margin-left: -300px; width: 295px; }