Skip to content
Snippets Groups Projects
Commit af936c05 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

correct modal multiselect naming strategy

use param_name instead of label


Former-commit-id: bb1f2d4772884ce184abdb0b0539300aa7674c06
parent e32a17a6
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
<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>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment