gitlabhq/app/views/teams/edit.html.haml

23 lines
726 B
Plaintext
Raw Normal View History

%h3.page_title= "Edit Team #{@team.name}"
2013-01-19 18:32:09 +01:00
%hr
= form_for @team, url: teams_path do |f|
- if @team.errors.any?
2013-01-19 18:32:09 +01:00
.alert-message.block-message.error
%span= @team.errors.full_messages.first
2013-01-19 18:32:09 +01:00
.clearfix
= f.label :name do
Team name is
.input
= f.text_field :name, placeholder: "Ex. OpenSource", class: "xxlarge left"
.clearfix
= f.label :path do
Team path is
.input
= f.text_field :path, placeholder: "opensource", class: "xxlarge left"
.clearfix
.input.span3.center
2013-01-29 21:18:19 +01:00
= f.submit 'Save team changes', class: "btn btn-primary"
2013-01-19 18:32:09 +01:00
.input.span3.center
2013-01-29 21:18:19 +01:00
= link_to 'Delete team', team_path(@team), method: :delete, confirm: "You are shure?", class: "btn btn-remove"