From ab84f52200ae42e7d6a8bb25e7960188ef616233 Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Thu, 5 May 2022 14:47:28 +0200 Subject: [PATCH] Disable link-out to CADD/SPANR for multi-case form Related-Issue: #478 Closes: #478 Projected-Results-Impact: none --- HISTORY.rst | 4 ++ variants/templates/variants/_filter_form.html | 70 ++++++++++--------- 2 files changed, 40 insertions(+), 34 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index d483578f1..2edef3101 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -14,6 +14,8 @@ End-User Summary Includes instructions on how to apply patch to get ``20210728b``. - Removing problematic username modification behaviour on login page (#459). - Displaying login page text from settings again (#458). +- Suppress "submit to CADD" and "submit to SPANR" buttons for multi-case form (#478). + This has not been implemented so far. Full Change List ================ @@ -23,6 +25,8 @@ Full Change List Includes instructions on how to apply patch to get ``20210728b``. - Removing problematic username modification behaviour on login page (#459). - Displaying login page text from settings again (#458). +- Suppress "submit to CADD" and "submit to SPANR" buttons for multi-case form (#478). + This has not been implemented so far. ------ v1.2.0 diff --git a/variants/templates/variants/_filter_form.html b/variants/templates/variants/_filter_form.html index d3dc8056e..836192ecc 100644 --- a/variants/templates/variants/_filter_form.html +++ b/variants/templates/variants/_filter_form.html @@ -154,46 +154,48 @@ Download as File - {% if allow_md_submission %} - {% if form.case.release == "GRCh37" %} - - {% else %} - + {% if not case_count %}{# not for multi-case queries #} + {% if allow_md_submission %} + {% if form.case.release == "GRCh37" %} + + {% else %} + + {% endif %} {% endif %} - {% endif %} - {% if cadd_submission_enabled %} - - {% endif %} - {% if spanr_submission_enabled %} - {% if form.case.release == "GRCh37" %} - - {% else %} - {% endif %} + {% if spanr_submission_enabled %} + {% if form.case.release == "GRCh37" %} + + {% else %} + + {% endif %} + {% endif %} {% endif %}