2013-01-22 23:20:27 +01:00
|
|
|
%h3.page_title= "Edit Team #{@team.name}"
|
2013-01-19 18:32:09 +01:00
|
|
|
%hr
|
2013-02-01 18:07:54 +01:00
|
|
|
= form_for @team, url: team_path(@team) do |f|
|
2013-01-22 23:20:27 +01:00
|
|
|
- if @team.errors.any?
|
2013-01-30 15:53:18 +01:00
|
|
|
.alert.alert-error
|
2013-01-22 23:20:27 +01:00
|
|
|
%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"
|
2013-02-01 18:04:11 +01:00
|
|
|
.form-actions
|
|
|
|
= f.submit 'Save team changes', class: "btn btn-primary"
|
|
|
|
= link_to 'Delete team', team_path(@team), method: :delete, confirm: "You are shure?", class: "btn btn-remove pull-right"
|