diff --git a/app/views/problems/edit.html.haml b/app/views/problems/edit.html.haml --- a/app/views/problems/edit.html.haml +++ b/app/views/problems/edit.html.haml @@ -1,14 +1,6 @@ -.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'} +%h1 Editing Problem + += render 'form', problem: @problem +.row.my-3 + .col-md-4 + = link_to 'Back', problems_path, class: 'btn btn-secondary'