Commit 2984716870a26b704a04e4ac4e72bfbc05750f73

Authored by Andrey Kumanyaev
Committed by Dmitriy Zaporozhets
1 parent 845f1465

Admin rename team page is fixed

Showing 1 changed file with 1 additions and 6 deletions   Show diff stats
app/views/admin/teams/edit.html.haml
1 %h3.page_title Rename Team 1 %h3.page_title Rename Team
2 %hr 2 %hr
3 -= form_for [:admin, @team] do |f| 3 += form_for @team, url: admin_team_path(@team), method: :put do |f|
4 - if @team.errors.any? 4 - if @team.errors.any?
5 .alert-message.block-message.error 5 .alert-message.block-message.error
6 %span= @team.errors.full_messages.first 6 %span= @team.errors.full_messages.first
@@ -10,18 +10,13 @@ @@ -10,18 +10,13 @@
10 .input 10 .input
11 = f.text_field :name, placeholder: "Example Team", class: "xxlarge" 11 = f.text_field :name, placeholder: "Example Team", class: "xxlarge"
12 12
13 -  
14 -  
15 .clearfix.team_name_holder 13 .clearfix.team_name_holder
16 = f.label :path do 14 = f.label :path do
17 %span.cred Team path is 15 %span.cred Team path is
18 .input 16 .input
19 = f.text_field :path, placeholder: "example-team", class: "xxlarge danger" 17 = f.text_field :path, placeholder: "example-team", class: "xxlarge danger"
20 %ul.cred 18 %ul.cred
21 - %li Changing team path can have unintended side effects.  
22 - %li Renaming team path will rename directory for all related projects  
23 %li It will change web url for access team and team projects. 19 %li It will change web url for access team and team projects.
24 - %li It will change the git path to repositories under this team.  
25 20
26 .form-actions 21 .form-actions
27 = f.submit 'Rename team', class: "btn danger" 22 = f.submit 'Rename team', class: "btn danger"