From 6eb41f784940caa3331830ccd5f92f58c1f7929b Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Wed, 13 Nov 2019 14:06:05 +0000 Subject: [PATCH] Ensure that saving and submitting the report form send different value --- .../templates/application_projects/report_form.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hypha/apply/projects/templates/application_projects/report_form.html b/hypha/apply/projects/templates/application_projects/report_form.html index d161b86d5..13bea5019 100644 --- a/hypha/apply/projects/templates/application_projects/report_form.html +++ b/hypha/apply/projects/templates/application_projects/report_form.html @@ -40,7 +40,8 @@ {% endif %} {% endfor %} - <input type="submit" id="submit-report-form" class="is-hidden" /> + <input type="submit" id="submit-report-form-submit" name="submit" class="is-hidden" /> + <input type="submit" id="submit-report-form-save" name="save" class="is-hidden" /> <input data-fancybox data-src="#save-report" class="button button--submit button--top-space button--white" type="button" value="Save" /> <input data-fancybox data-src="#submit-report" class="button button--primary" type="button" value="Submit" /> @@ -52,7 +53,7 @@ </div> <div class="modal__buttons"> <button data-fancybox-close class="button button--submit button--white">Cancel</button> - <label class="button button--submit button--top-space button--primary" for="submit-report-form" tabindex="0">Save</label> + <label class="button button--submit button--top-space button--primary" for="submit-report-form-save" tabindex="0">Save</label> </div> </div> @@ -62,7 +63,7 @@ <p>Are you sure you want to submit your report?</p> <div class="modal__buttons"> <button data-fancybox-close class="button button--submit button--white">Cancel</button> - <label class="button button--submit button--top-space button--primary" for="submit-report-form" tabindex="0">Submit</label> + <label class="button button--submit button--top-space button--primary" for="submit-report-form-submit" tabindex="0">Submit</label> </div> </div> </form> -- GitLab