Commit 427a9e16 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

EE ui fixes after twbs3

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 1f359ece
......@@ -67,20 +67,20 @@
.title LDAP group settings
%div.form-holder
= form_for @group do |f|
.control-group
= f.label :ldap_cn do
.form-group.clearfix
= f.label :ldap_cn, class: 'control-label' do
LDAP Group cn
.controls
.col-sm-10
= f.hidden_field :ldap_cn, placeholder: "Ex. QA group", class: "xxlarge ajax-ldap-groups-select"
.help-block
Synchronize #{@group.name}'s members with this LDAP group.
%br
If you select an LDAP group you do not belong to you will lose ownership of #{@group.name}.
.control-group
= f.label :ldap_access do
.form-group.clearfix
= f.label :ldap_access, class: 'control-label' do
LDAP Access
.controls
.col-sm-10
= f.select :ldap_access, options_for_select(UsersGroup.group_access_roles, @group.ldap_access)
.help-block
Default, minimum permission level for LDAP group members of #{@group.name}.
......
......@@ -25,13 +25,15 @@
%h4
Can be shared with
%div
= form_tag project_group_links_path(@project), method: :post do
.control-group
= label_tag :group_id, 'Group'
.controls= select_tag :group_id, options_from_collection_for_select(@available_groups, :id, :name), class: 'chosen'
.control-group
= label_tag :group_access, 'Max access level'
.controls= select_tag :group_access, options_for_select(ProjectGroupLink.access_options, ProjectGroupLink.default_access), class: "span2"
= form_tag project_group_links_path(@project), method: :post, class: 'form-horizontal' do
.form-group
= label_tag :group_id, 'Group', class: 'control-label'
.col-sm-10
= select_tag :group_id, options_from_collection_for_select(@available_groups, :id, :name), class: 'select2'
.form-group
= label_tag :group_access, 'Max access level', class: 'control-label'
.col-sm-10
= select_tag :group_access, options_for_select(ProjectGroupLink.access_options, ProjectGroupLink.default_access), class: "form-control"
.form-actions
= submit_tag "Share", class: "btn btn-create"
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