Files
gitlabhq/app/views/admin/groups/edit.html.haml
T
2013-08-12 13:47:02 +03:00

46 lines
1.4 KiB
Plaintext

%h3.page-title Edit Group
%hr
= form_for [:admin, @group] do |f|
- if @group.errors.any?
.alert.alert-error
%span= @group.errors.full_messages.first
.control-group.group_name_holder
= f.label :name do
Group name is
.controls
= f.text_field :name, placeholder: "Example Group", class: "input-xxlarge"
.control-group.group-description-holder
= f.label :description, "Details"
.controls
= f.text_area :description, maxlength: 250, class: "input-xxlarge js-gfm-input", rows: 4
.control-group.group_name_holder
= f.label :path do
%span.cred Group path is
.controls
= f.text_field :path, placeholder: "example-group", class: "input-xxlarge danger"
%ul.cred
%li Changing group path can have unintended side effects.
%li Renaming group path will rename directory for all related projects
%li It will change web url for access group and group projects.
%li It will change the git path to repositories under this group.
%hr
.clearfix
= f.label :ldap_cn do
LDAP Group cn
.input
= f.text_field :ldap_cn, class: "xxlarge left"
.clearfix
= f.label :ldap_access do
LDAP Access
.input
= f.select :ldap_access, options_for_select(UsersGroup.group_access_roles, @group.ldap_access)
.form-actions
= f.submit 'Save changes', class: "btn btn-primary"
= link_to 'Cancel', admin_groups_path, class: "btn btn-cancel"