app/views/manage/questionnaires/edit.html.haml in hackathon_manager-0.6.6 vs app/views/manage/questionnaires/edit.html.haml in hackathon_manager-0.7.0
- old
+ new
@@ -1,12 +1,6 @@
-%section.section.manage
- %h1.section-title= title "Editing Questionnaire"
+= render "layouts/manage/page_title", title: "Edit Questionnaire", subtitle: @questionnaire.full_name do
+ .btn-group
+ = link_to 'Cancel', manage_questionnaire_path(@questionnaire), class: 'btn btn-sm btn-outline-secondary'
+ = link_to 'Delete', manage_questionnaire_path(@questionnaire), method: :delete, data: { confirm: "Are you sure? The questionnaire and account for \"#{@questionnaire.full_name}\" will be permanently erased. This action is irreversible." }, class: 'btn btn-sm btn-outline-secondary'
- = render 'form'
-
- .form-container
- .center
- = link_to 'Back', manage_questionnaires_path
- \|
- = link_to 'Delete', manage_questionnaire_path(@questionnaire), method: :delete, data: { confirm: "Are you sure? The questionnaire and account for \"#{@questionnaire.full_name}\" will be permanently erased. This action is irreversible." }
- \|
- = link_to 'Show', manage_questionnaire_path(@questionnaire)
+= render 'form'