Sha256: 53e70fffdcde0d573e945da8649b920e79809927009e1446302b57a8f3a618e6

Contents?: true

Size: 819 Bytes

Versions: 3

Compression:

Stored size: 819 Bytes

Contents

%form{:"accept-charset" => "UTF-8", :action => "/projects/edit/#{project.name}", :method => "POST"}
  = csrf_tag
  %input{:type => 'hidden', :name => "_method", :value => "put"}
  .field
    %input{:id => "name", :name => "project[name]", :placeholder => "name", :value => project.name, :type => "text"}
  .field
    %input{:id => "repo", :name => "project[repo_url]", :placeholder => "repository url", :value => project.repo_url, :type => "text"}
  .field
    %input{:class => "button", :type => "submit", :value => "update project"}

.delete-project
  %form{:"accept-charset" => "UTF-8", :action => "/projects/delete/#{project.name}", :method => "POST"}
    = csrf_tag
    %input{:type => 'hidden', :name => "_method", :value => "delete"}
    %input{:class => "button", :type => "submit", :value => "delete project"}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deep_thought-0.2.1 lib/deep_thought/views/projects/edit.haml
deep_thought-0.1.1 lib/deep_thought/views/projects/edit.haml
deep_thought-0.1.0 lib/deep_thought/views/projects/edit.haml