mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-25 12:36:27 +10:00
103 lines
4.2 KiB
Plaintext
103 lines
4.2 KiB
Plaintext
.row
|
|
.col-md-2
|
|
%ul.nav.nav-pills.nav-stacked.nav-stacked-menu
|
|
%li.active
|
|
= link_to '#tab-edit', 'data-toggle' => 'tab' do
|
|
%i.icon-edit
|
|
Edit Group
|
|
%li
|
|
= link_to '#tab-projects', 'data-toggle' => 'tab' do
|
|
%i.icon-folder-close
|
|
Projects
|
|
%li
|
|
= link_to 'LDAP', '#tab-ldap', 'data-toggle' => 'tab'
|
|
%li
|
|
= link_to 'Remove', '#tab-remove', 'data-toggle' => 'tab'
|
|
|
|
.col-md-10
|
|
.tab-content
|
|
.tab-pane.active#tab-edit
|
|
.ui-box
|
|
.title
|
|
%strong= @group.name
|
|
group settings:
|
|
%div.form-holder
|
|
= form_for @group, html: { class: "form-horizontal" } do |f|
|
|
- if @group.errors.any?
|
|
.alert.alert-danger
|
|
%span= @group.errors.full_messages.first
|
|
.form-group
|
|
= f.label :name, class: 'control-label' do
|
|
Group name
|
|
.col-sm-10
|
|
= f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control left"
|
|
|
|
.form-group.group-description-holder
|
|
= f.label :description, "Details", class: 'control-label'
|
|
.col-sm-10
|
|
= f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4
|
|
|
|
.form-actions
|
|
= f.submit 'Save group', class: "btn btn-save"
|
|
|
|
.tab-pane#tab-projects
|
|
.ui-box
|
|
.title
|
|
%strong= @group.name
|
|
projects:
|
|
- if can? current_user, :manage_group, @group
|
|
%span.pull-right
|
|
= link_to new_project_path(namespace_id: @group.id), class: "btn btn-tiny" do
|
|
%i.icon-plus
|
|
New Project
|
|
%ul.well-list
|
|
- @group.projects.each do |project|
|
|
%li
|
|
= visibility_level_icon(project.visibility_level)
|
|
= link_to project.name_with_namespace, project
|
|
.pull-right
|
|
= link_to 'Members', project_team_index_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
|
|
= link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
|
|
= link_to 'Remove', project, data: { confirm: remove_project_message(project)}, method: :delete, class: "btn btn-small btn-remove"
|
|
- if @group.projects.blank?
|
|
%p.nothing_here_message This group has no projects yet
|
|
|
|
.tab-pane#tab-ldap
|
|
.ui-box
|
|
.title LDAP group settings
|
|
%div.form-holder
|
|
= form_for @group do |f|
|
|
.form-group.clearfix
|
|
= f.label :ldap_cn, class: 'control-label' do
|
|
LDAP Group cn
|
|
.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}.
|
|
|
|
.form-group.clearfix
|
|
= f.label :ldap_access, class: 'control-label' do
|
|
LDAP Access
|
|
.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}.
|
|
%br
|
|
You can manage permission levels for individual group members in the Members tab.
|
|
|
|
.form-actions
|
|
= f.submit 'Save group', class: "btn btn-save"
|
|
|
|
.tab-pane#tab-remove
|
|
.ui-box.ui-box-danger
|
|
.title Remove group
|
|
.body
|
|
%p
|
|
Removing group will cause all child projects and resources to be removed.
|
|
%p
|
|
%strong Removed group can not be restored!
|
|
|
|
= link_to 'Remove Group', @group, data: {confirm: 'Removed group can not be restored! Are you sure?'}, method: :delete, class: "btn btn-remove"
|