diff --git a/scipost_django/ethics/templates/ethics/_hx_submission_ethics.html b/scipost_django/ethics/templates/ethics/_hx_submission_ethics.html index 7645e709d4811f996698464cdace89b37fc785d2..c5a4e2da4463cf0de4c48837920e8b7b5e37130c 100644 --- a/scipost_django/ethics/templates/ethics/_hx_submission_ethics.html +++ b/scipost_django/ethics/templates/ethics/_hx_submission_ethics.html @@ -1,47 +1,53 @@ <div class="row"> <div class="col"> + {% if clearance %} <div class="bg-white d-inline-flex p-2"> - <span class="text-success"> - {% include "bi/check-square-fill.html" %} - You are free of competing interests - </span> - <a class="text-danger ms-4" - hx-get="{% url 'ethics:_hx_submission_clearance_revoke' identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr %}" - hx-target="#submission-{{ submission.pk }}-appraisal" - >{% include "bi/trash-fill.html" %} <em>Revoke this declaration</em></a> + <span class="text-success"> + + {% include "bi/check-square-fill.html" %} + You are free of competing interests + </span> + <a class="text-danger ms-4" + hx-get="{% url 'ethics:_hx_submission_clearance_revoke' identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr %}" + hx-target="#submission-{{ submission.pk }}-appraisal"> + {% include "bi/trash-fill.html" %} + <em>Revoke this declaration</em></a> </div> {% else %} <div class="row border border-danger mb-0 p-2"> - <div class="mb-1"> - Do you have any competing interest (aka conflict of interest) - with regards to this Submission? - </div> - <div class="row mb-0"> - <div class="col"> - <a class="btn btn-sm btn-success text-white my-auto" - hx-get="{% url 'ethics:_hx_submission_clearance_assert' identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr %}" - hx-target="#submission-{{ submission.pk }}-appraisal" - hx-confirm="Confirm that you have no competing interest with regards to this Submission?" - > - I have no competing interest - </a> - </div> - <div class="col"> - <a class="btn btn-sm btn-danger text-white my-auto" - hx-get="{% url 'ethics:_hx_submission_competing_interest_form' identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr %}" - hx-target="#submission-{{ submission.pk }}-ethics" - > - I have a competing interest - </a> - </div> - </div> + + <div class="col-8 d-flex flex-column justify-content-between"> + <div> + Do you have any competing interest (as per the <a href="{% url 'scipost:EdCol_by-laws' %}"><span class="text-primary">By-laws</span></a> 3.5) with regards to this Submission? + If so, please kindly declare it! + </div> + <div class="text-muted">Keep in mind this includes co-authorship of any paper in the last 5 years.</div> + </div> + + <div class="col border-start border-secondary"> + <div class="row mb-0"> + <div class="col"> + <a class="btn btn-sm btn-primary text-white my-1 w-100" + hx-get="{% url 'ethics:_hx_submission_clearance_assert' identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr %}" + hx-target="#submission-{{ submission.pk }}-appraisal" + hx-confirm="Are you sure that you have carefully read the by-laws (3.5), that you know what consists a competing interest, and that you don't have any with regards to this Submission?">No competing interests</a> + + <div class="col"> + <a class="btn btn-sm btn-secondary my-1 w-100" + hx-get="{% url 'ethics:_hx_submission_competing_interest_form' identifier_w_vn_nr=submission.preprint.identifier_w_vn_nr %}" + hx-target="#submission-{{ submission.pk }}-ethics">Declare competing interest</a> + </div> + </div> + </div> + + + </div> </div> {% endif %} + </div> </div> <div id="submission-{{ submission.pk }}-competing-interest-form" - class="col-lg-12" -> -</div> + class="col-lg-12"></div>