diff --git a/ippisite/ippidb/templates/compound_list.html b/ippisite/ippidb/templates/compound_list.html index 50321929f0251b19a9946d413a874cdf7b1ebd4e..21abc5ec12c60c82a8a5759a6b6621caf7fbcb8e 100644 --- a/ippisite/ippidb/templates/compound_list.html +++ b/ippisite/ippidb/templates/compound_list.html @@ -33,10 +33,10 @@ <main class="col-12" role="main"> <form> <div class="row"> - {% include "multiselection_button.html" with label="PPI" %} - {% include "multiselection_button.html" with label="Disease" %} - {% include "multiselection_button.html" with label="Organism" %} - {% include "multiselection_button.html" with label="Bound complex" %} + {% include "multiselection_button.html" with label="PPI" param_name="ppi" %} + {% include "multiselection_button.html" with label="Disease" param_name="disease" %} + {% include "multiselection_button.html" with label="Organism" param_name="taxonomy" %} + {% include "multiselection_button.html" with label="Bound complex" param_name="boundcomplex" %} </div> <div class="row"> <span class="col-md-6"><span>{{ count }} compounds</span> diff --git a/ippisite/ippidb/templates/multiselection_modal.html b/ippisite/ippidb/templates/multiselection_modal.html index 283e97413cdf33951c51df3af505d725c181dcf3..12c5685d242dcceefc2fe72fea3cff0961da3da9 100644 --- a/ippisite/ippidb/templates/multiselection_modal.html +++ b/ippisite/ippidb/templates/multiselection_modal.html @@ -1,4 +1,4 @@ -<div class="modal fade" id="modal-{{ label }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> +<div class="modal fade" id="modal-{{ param_name }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> @@ -40,7 +40,7 @@ </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> - <button type="button" class="btn btn-primary" onclick="$('#modal-{{ label }}').modal('hide'); changeSelection('{{ param_name }}');">Apply</button> + <button type="button" class="btn btn-primary" onclick="$('#modal-{{ param_name }}').modal('hide'); changeSelection('{{ param_name }}');">Apply</button> </div> </div> </div>