Admin teams section added
This commit is contained in:
parent
8a86fe7bb0
commit
82499a4cbf
10 changed files with 603 additions and 0 deletions
28
app/views/admin/teams/edit.html.haml
Normal file
28
app/views/admin/teams/edit.html.haml
Normal file
|
@ -0,0 +1,28 @@
|
|||
%h3.page_title Rename Team
|
||||
%hr
|
||||
= form_for [:admin, @team] do |f|
|
||||
- if @team.errors.any?
|
||||
.alert-message.block-message.error
|
||||
%span= @team.errors.full_messages.first
|
||||
.clearfix.team_name_holder
|
||||
= f.label :name do
|
||||
Team name is
|
||||
.input
|
||||
= f.text_field :name, placeholder: "Example Team", class: "xxlarge"
|
||||
|
||||
|
||||
|
||||
.clearfix.team_name_holder
|
||||
= f.label :path do
|
||||
%span.cred Team path is
|
||||
.input
|
||||
= f.text_field :path, placeholder: "example-team", class: "xxlarge danger"
|
||||
%ul.cred
|
||||
%li Changing team path can have unintended side effects.
|
||||
%li Renaming team path will rename directory for all related projects
|
||||
%li It will change web url for access team and team projects.
|
||||
%li It will change the git path to repositories under this team.
|
||||
|
||||
.form-actions
|
||||
= f.submit 'Rename team', class: "btn danger"
|
||||
= link_to 'Cancel', admin_teams_path, class: "btn cancel-btn"
|
Loading…
Add table
Add a link
Reference in a new issue