diff --git a/app/views/problems/edit.html.haml b/app/views/problems/edit.html.haml new file mode 100644 --- /dev/null +++ b/app/views/problems/edit.html.haml @@ -0,0 +1,14 @@ +.container-fluid + = form_for @problem,url:{action: 'update'},html: {multipart: true} do + .row + .col-md-6 + %h1 Editing problem + = render :partial => 'form' + .row + .col-md-4 + = submit_tag 'Edit', class: 'btn btn-primary btn-block' + .col-md-4 + = link_to 'Show', {:action => 'show', :id => @problem}, class: 'btn btn-default btn-block' + .col-md-4 + = link_to 'Back', problems_path, class: 'btn btn-default btn-block' +.div{style: 'height: 5em'}