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

add number of chiral centers in compounds list table view

cf #43


Former-commit-id: f19a9cd22835967ed5d1b216a4fc7393929a6aa6
parent 15174077
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
{% 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" %}
{% include "compound_t_colhead.html" with col_id="nb_chiral_centers" col_name="Number of chiral centerrs" %}
<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>
......@@ -63,6 +64,9 @@
{% if "families" in fields %}
<th scope="col">{% for family in compound.families %}{{ family.name }}{% if not forloop.last %}, {% endif %}{% endfor %}</th>
{% endif %}
{% if "nb_chiral_centers" in fields %}
<th scope="col">{{ compound.nb_chiral_centers }}</th>
{% endif %}
</tr>
{% endfor %}
</tbody>
......@@ -118,6 +122,9 @@
<div class="row">
<label><input type="checkbox" name="field" value="families" class="mr-1" {% if 'families' in fields %}checked="checked"{% endif %} />PPI families</label>
</div>
<div class="row">
<label><input type="checkbox" name="field" value="nb_chiral_centers" class="mr-1" {% if 'nb_chiral_centers' in fields %}checked="checked"{% endif %} />Number of chiral centers</label>
</div>
</div>
<div class="modal-footer">
<script>
......
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