Commit 2b6b6ee2 authored by Filipa Lacerda's avatar Filipa Lacerda

Adds row class as parent to col-* classes to match boostrap documentation

Matches for attribute in labels for radio buttons
parent 5a8eddc7
...@@ -3,30 +3,27 @@ ...@@ -3,30 +3,27 @@
%section.ldap-group-links %section.ldap-group-links
= form_for [group, LdapGroupLink.new], html: { class: 'form-horizontal' } do |f| = form_for [group, LdapGroupLink.new], html: { class: 'form-horizontal' } do |f|
.form-holder .form-holder
.form-group.clearfix .form-group.row
= f.label :cn, class: 'control-label' do = f.label :cn, class: 'control-label col-sm-2' do
LDAP Server LDAP Server
.col-sm-10 .col-sm-10
= f.select :provider, ldap_server_select_options, {}, class: 'form-control' = f.select :provider, ldap_server_select_options, {}, class: 'form-control'
.form-group.clearfix .form-group.row
= f.label :cn, class: 'control-label' do = f.label :cn, class: 'control-label col-sm-2' do
Sync method Sync method
.col-sm-2
.col-sm-10 .col-sm-10
.radio .radio
= label_tag :ldap_group do = label_tag :sync_method_group do
= radio_button_tag :sync_method, :group, true = radio_button_tag :sync_method, :group, true
.option-title LDAP Group cn
LDAP Group cn
.radio .radio
= label_tag :ldap_filter do = label_tag :sync_method_filter do
= radio_button_tag :sync_method, :filter = radio_button_tag :sync_method, :filter
.option-title LDAP user filter
LDAP user filter
.form-group.clearfix.cn-link .form-group.row.cn-link
= f.label :cn, class: 'control-label' do = f.label :cn, class: 'control-label col-sm-2' do
LDAP Group cn LDAP Group cn
.col-sm-10 .col-sm-10
= f.hidden_field :cn, placeholder: 'Ex. QA group', class: 'xxlarge ajax-ldap-groups-select input-mn-300' = f.hidden_field :cn, placeholder: 'Ex. QA group', class: 'xxlarge ajax-ldap-groups-select input-mn-300'
...@@ -35,8 +32,8 @@ ...@@ -35,8 +32,8 @@
%br %br
If you select an LDAP group you do not belong to you will lose ownership of #{group.name}. If you select an LDAP group you do not belong to you will lose ownership of #{group.name}.
.form-group.clearfix.filter-link .form-group.row.filter-link
= f.label :filter, class: 'control-label' do = f.label :filter, class: 'control-label col-sm-2' do
LDAP User filter LDAP User filter
.col-sm-10 .col-sm-10
= f.text_field :filter, placeholder: 'Ex. (&(objectCategory=person)(objectClass=developer))', class: 'form-control xxlarge input-mn-300' = f.text_field :filter, placeholder: 'Ex. (&(objectCategory=person)(objectClass=developer))', class: 'form-control xxlarge input-mn-300'
...@@ -46,8 +43,8 @@ ...@@ -46,8 +43,8 @@
%br %br
If you do not belong to this LDAP user filter you will lose ownership of #{group.name}. If you do not belong to this LDAP user filter you will lose ownership of #{group.name}.
.form-group.clearfix .form-group.row
= f.label :group_access, class: 'control-label' do = f.label :group_access, class: 'control-label col-sm-2' do
LDAP Access LDAP Access
.col-sm-10 .col-sm-10
= f.select :group_access, options_for_select(GroupMember.access_level_roles), {}, class: 'form-control' = f.select :group_access, options_for_select(GroupMember.access_level_roles), {}, class: 'form-control'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment