gitlab-org--gitlab-foss/app/views/admin/groups/edit.html.haml
Dmitriy Zaporozhets d7a48443ce
alert-error to alert-danger
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-31 16:34:14 +02:00

31 lines
1.1 KiB
Text

%h3.page-title Edit Group
%hr
= form_for [:admin, @group] do |f|
- if @group.errors.any?
.alert.alert-danger
%span= @group.errors.full_messages.first
.form-group.group_name_holder
= f.label :name do
Group name
.col-sm-10
= f.text_field :name, placeholder: "Example Group", class: "input-lg"
.form-group.group-description-holder
= f.label :description, "Details"
.col-sm-10
= f.text_area :description, maxlength: 250, class: "input-lg js-gfm-input", rows: 4
.form-group.group_name_holder
= f.label :path do
%span.cred Group path
.col-sm-10
= f.text_field :path, placeholder: "example-group", class: "input-lg 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.
.form-actions
= f.submit 'Save changes', class: "btn btn-primary"
= link_to 'Cancel', admin_groups_path, class: "btn btn-cancel"