diff --git a/submissions/templates/submissions/submit_report_ack.html b/submissions/templates/submissions/submit_report_ack.html deleted file mode 100644 index 8e5b948e98fd58a108b0f265fa2b21ab02ce8ed1..0000000000000000000000000000000000000000 --- a/submissions/templates/submissions/submit_report_ack.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends 'scipost/base.html' %} - -{% block pagetitle %}: submit report (ack){% endblock pagetitle %} - -{% block bodysup %} - -<section> - {% if errormessage %} - <p>{{ errormessage }}</p> - {% else %} - <h1>Thank you for your Report.</h1> - {% endif %} -</section> - -{% endblock bodysup %} diff --git a/submissions/templates/submissions/vet_submitted_reports.html b/submissions/templates/submissions/vet_submitted_reports.html index d8fe13476f55abced58e18b00decfd07cbd72976..eb2278ad82292a53d9b7195ae33dc9ff30fc68c2 100644 --- a/submissions/templates/submissions/vet_submitted_reports.html +++ b/submissions/templates/submissions/vet_submitted_reports.html @@ -8,18 +8,15 @@ <script> $(document).ready(function(){ - - $('#refusal').hide(); - $('[name="action_option"]').on('change', function() { - if ($('#id_action_option_1').is(':checked')) { + if ($('[name="action_option"][value="refuse"]').is(':checked')) { $('#refusal').show(); } else { $('#refusal').hide(); } - }); - }); + }).trigger('change'); +}); </script> {% endblock headsup %} @@ -36,6 +33,7 @@ $(document).ready(function(){ <div class="col-12"> {% if not report_to_vet %} <h1>There are no Reports for you to vet.</h1> + <p>Go back to my <a href="{% url 'scipost:personal_page' %}">personal page</a>.</p> {% else %} <h1 class="highlight">SciPost Report to vet:</h1> @@ -52,8 +50,9 @@ $(document).ready(function(){ <hr class="small"> <h2>Please vet this Report:</h2> - <form action="{% url 'submissions:vet_submitted_report_ack' report_id=report_to_vet.id %}" method="post"> + <form action="{% url 'submissions:vet_submitted_reports' %}" method="post"> {% csrf_token %} + {{ form.report }} {{ form.action_option|bootstrap }} <div class="col-md-6" id="refusal"> {{ form.refusal_reason|bootstrap }}