2013-07-13 01:45:48 -04:00
|
|
|
%h3.page-title Edit Group
|
2012-12-03 13:14:05 -05:00
|
|
|
%hr
|
|
|
|
= form_for [:admin, @group] do |f|
|
|
|
|
- if @group.errors.any?
|
2013-01-30 09:53:18 -05:00
|
|
|
.alert.alert-error
|
2012-12-03 13:14:05 -05:00
|
|
|
%span= @group.errors.full_messages.first
|
|
|
|
.clearfix.group_name_holder
|
|
|
|
= f.label :name do
|
|
|
|
Group name is
|
|
|
|
.input
|
|
|
|
= f.text_field :name, placeholder: "Example Group", class: "xxlarge"
|
|
|
|
|
2013-02-28 09:35:27 -05:00
|
|
|
.clearfix.group-description-holder
|
2013-02-07 05:42:52 -05:00
|
|
|
= f.label :description, "Details"
|
|
|
|
.input
|
|
|
|
= f.text_area :description, maxlength: 250, class: "xxlarge js-gfm-input", rows: 4
|
2012-12-13 22:14:05 -05:00
|
|
|
|
|
|
|
.clearfix.group_name_holder
|
|
|
|
= f.label :path do
|
|
|
|
%span.cred Group path is
|
|
|
|
.input
|
|
|
|
= f.text_field :path, placeholder: "example-group", class: "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.
|
|
|
|
|
2012-12-03 13:14:05 -05:00
|
|
|
.form-actions
|
2013-04-18 10:28:09 -04:00
|
|
|
= f.submit 'Save changes', class: "btn btn-primary"
|
2013-01-29 15:18:19 -05:00
|
|
|
= link_to 'Cancel', admin_groups_path, class: "btn btn-cancel"
|