From bebd95f0556380e439bb37c8bd3465f07c6c15da Mon Sep 17 00:00:00 2001
From: Fredrik Jonsson <frjo@xdeb.org>
Date: Thu, 26 Mar 2020 15:26:18 +0100
Subject: [PATCH] Move button to top.

---
 .../src/javascript/apply/submission-form-copy.js          | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

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 a7cfb46ff..242659764 100644
--- a/hypha/static_src/src/javascript/apply/submission-form-copy.js
+++ b/hypha/static_src/src/javascript/apply/submission-form-copy.js
@@ -36,8 +36,12 @@
 
     // Allow users to copy all questions to the clipboard.
     if (document.queryCommandSupported && document.queryCommandSupported('copy')) {
-        var $button = $('<button/>').text('Copy questions to clipboard').addClass('link link--button js-clipboard-button');
-        $('.application-form').append($button);
+        var $button = $('<button/>')
+            .text('Copy questions to clipboard')
+            .addClass('link link--button js-clipboard-button')
+            .css({'display': 'block', 'margin-left': 'auto'})
+            .attr('title', 'Copies all the questions to the clipboard in plain text.');
+        $('.application-form').before($button);
 
         $('.js-clipboard-button').on('click', function (e) {
             e.preventDefault();
-- 
GitLab