From 4e723794aa4facd048d541a78a7a0777b3b6948d Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson <frjo@xdeb.org> Date: Tue, 2 Jun 2020 15:04:20 +0200 Subject: [PATCH] Makeing draft button second and submit first. --- hypha/apply/funds/templates/funds/application_base.html | 2 +- hypha/static_src/src/javascript/apply/submission-form-copy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hypha/apply/funds/templates/funds/application_base.html b/hypha/apply/funds/templates/funds/application_base.html index ec322b3c1..32b43e12a 100644 --- a/hypha/apply/funds/templates/funds/application_base.html +++ b/hypha/apply/funds/templates/funds/application_base.html @@ -53,8 +53,8 @@ {% endif %} {% endif %} {% endfor %} - <button class="link link--button-tertiary" type="submit" name="draft" value="Save Draft" formnovalidate>Save Draft</button> <button class="link link--button-secondary" type="submit" disabled>Submit for review</button> + <button class="link link--button-tertiary" type="submit" name="draft" value="Save Draft" formnovalidate>Save Draft</button> </form> <p class="wrapper--error message-no-js js-hidden">You must have Javascript enabled to use this form.</p> {% endif %} diff --git a/hypha/static_src/src/javascript/apply/submission-form-copy.js b/hypha/static_src/src/javascript/apply/submission-form-copy.js index c18fce9c4..a824fa4a4 100644 --- a/hypha/static_src/src/javascript/apply/submission-form-copy.js +++ b/hypha/static_src/src/javascript/apply/submission-form-copy.js @@ -81,7 +81,7 @@ .attr('title', 'Copies all the questions and user input to the clipboard in plain text.'); var $application_form = $('.application-form'); $button.clone().css({'display': 'block', 'margin-left': 'auto'}).insertBefore($application_form); - $button.insertAfter($application_form.find('.link--button-secondary').last()); + $button.css({'margin-left': '20px'}).insertAfter($application_form.find('button').last()); $('.js-clipboard-button').on('click', function (e) { e.preventDefault(); -- GitLab