From 8f465136c3a7d6a0da7f1e2c9582078347539c05 Mon Sep 17 00:00:00 2001 From: CactusPuppy Date: Sat, 6 Mar 2021 22:56:01 -0800 Subject: [PATCH] Add buttons for submission text template reset --- app/views/proposals/_proposal_form.html.haml | 1 + app/views/proposals/new.html.haml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/views/proposals/_proposal_form.html.haml b/app/views/proposals/_proposal_form.html.haml index 5b4e7079..010eea9e 100644 --- a/app/views/proposals/_proposal_form.html.haml +++ b/app/views/proposals/_proposal_form.html.haml @@ -50,6 +50,7 @@ = f.input :submission_text, input_html: { rows: 5, data: { provide: 'markdown' }, placeholder: '' }, hint: markdown_hint('Only conference organizers will read this.') + %button.btn.btn-primary.primary-button{ type: 'button', id: 'sub_text_reset', data: { confirm: 'Do you really want to reset your submission text to the provided template?' } } Reset to Template %p You have used diff --git a/app/views/proposals/new.html.haml b/app/views/proposals/new.html.haml index bdd16e11..e6aaa355 100644 --- a/app/views/proposals/new.html.haml +++ b/app/views/proposals/new.html.haml @@ -63,6 +63,7 @@ = f.input :submission_text, input_html: { rows: 5, data: { provide: 'markdown' } }, hint: markdown_hint + %button.btn.btn-primary.primary-button{ type: 'button', id: 'sub_text_reset', data: { confirm: 'Do you really want to reset your submission text to the provided template?' } } Reset to Template %p You have used