edit.html.haml 879 字节
Newer Older
1
%h3.page_title= "Edit Team #{@team.name}"
2
%hr
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
.row
  .span7
    = form_for @team, url: team_path(@team) do |f|
      - if @team.errors.any?
        .alert.alert-error
          %span= @team.errors.full_messages.first
      .clearfix
        = f.label :name do
          Team name is
        .input
          = f.text_field :name, placeholder: "Ex. OpenSource", class: "xlarge left"

      .clearfix
        = f.label :path do
          Team path is
        .input
          = f.text_field :path, placeholder: "opensource", class: "xlarge left"
      .form-actions
        = f.submit 'Save team changes', class: "btn btn-save"
  .span5
    .ui-box
      %h5.title Remove team
      .padded.bgred
        %p
          Removed team can not be restored!
        = link_to 'Remove team', team_path(@team), method: :delete, confirm: "You are sure?", class: "btn btn-remove btn-small"
29