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

add PPI families to table in compounds list

cf #48


Former-commit-id: b7d69398315e74616ed0b19d027b320c9751ab3b
parent cb6ae1cf
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,11 @@
{% if selected_ppis or selected_diseases or selected_taxonomies or selected_boundcomplexes or molecular_weight != molecular_weight_max or a_log_p != a_log_p_max or nb_donor_h != nb_donor_h_max or pubs != pubs_min %}
<span>
&nbsp;-&nbsp;filters:&nbsp;
{% if selected_families %}
{% for selected in selected_families %}
{% include "selected_badge.html" with param_name="family" selected=selected %}
{% endfor %}
{% endif %}
{% if selected_ppis %}
{% for selected in selected_ppis %}
{% include "selected_badge.html" with param_name="ppi" selected=selected %}
......
......@@ -14,6 +14,7 @@
{% include "compound_t_colhead.html" with col_id="tpsa" col_name="TPSA (Å2)" %}
{% include "compound_t_colhead.html" with col_id="nb_rotatable_bonds" col_name="number of rotatable bonds" %}
{% include "compound_t_colhead.html" with col_id="nb_aromatic_sssr" col_name="number of aromatic SSSR" %}
{% include "compound_t_colhead.html" with col_id="families" col_name="PPI families" %}
<button type="button" class="btn btn-primary float-right" style="width: inherit!important" data-toggle="modal" data-target="#selectColumns">
<i class="fa fa-columns" title="customize columns"></i>
</button>
......@@ -59,6 +60,9 @@
{% if "nb_aromatic_sssr" in fields %}
<th scope="col">{{ compound.nb_aromatic_sssr }}</th>
{% endif %}
{% if "families" in fields %}
<th scope="col">{% for family in compound.families %}{{ family.name }}{% if not forloop.last %}, {% endif %}{% endfor %}</th>
{% endif %}
</tr>
{% endfor %}
</tbody>
......
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