Merge pull request #66 from HDinger/fix/23995-apply-multiple-columns-at-Admin-Roles-page

[23995] Apply multiple columns at Admin/Roles page
pull/6827/head
ulferts 8 years ago committed by GitHub
commit 0336207d41
  1. 22
      app/views/roles/_permissions.html.erb

@ -36,16 +36,18 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
(<%= check_all_links module_name %>)
</span>
</div>
<% perms_by_module[mod].each do |permission| %>
<div class="autoscroll">
<label class="floating form--label">
<%= check_box_tag 'role[permissions][]', permission.name, (role.permissions && role.permissions.include?(permission.name)) %>
<%= l_or_humanize(permission.name, prefix: 'permission_') %>
</label>
</div>
<% end %>
<div class="-columns-2">
<% perms_by_module[mod].each do |permission| %>
<div class="form--field autoscroll -trailing-label ">
<label class="form--label">
<%= l_or_humanize(permission.name, prefix: 'permission_') %>
</label>
<div class="form--field-container">
<%= styled_check_box_tag 'role[permissions][]', permission.name, (role.permissions && role.permissions.include?(permission.name)) %>
</div>
</div>
<% end %>
</div>
</fieldset>
<% end %>

Loading…
Cancel
Save