Allow group path renaming. Dont show project transfer if no permissions. More danger messages :)

This commit is contained in:
Dmitriy Zaporozhets 2012-12-14 06:14:05 +03:00
parent a8fbda945e
commit 44209861e8
4 changed files with 46 additions and 23 deletions

View file

@ -1,9 +1,5 @@
%h3.page_title Rename Group
%hr
.alert
Renaming group can have unintended side effects.
%br
Renaming group will rename directory for all related projects
= form_for [:admin, @group] do |f|
- if @group.errors.any?
.alert-message.block-message.error
@ -14,6 +10,19 @@
.input
= f.text_field :name, placeholder: "Example Group", class: "xxlarge"
.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.
.form-actions
= f.submit 'Rename group', class: "btn save-btn"
= f.submit 'Rename group', class: "btn danger"
= link_to 'Cancel', admin_groups_path, class: "btn cancel-btn"