compound_list.html 1.64 KB
Newer Older
Hervé  MENAGER's avatar
Hervé MENAGER committed
1
2
3
4
5
6
7
8
9
10
11
12
{% extends "base.html" %}

    
{% block title %}compound{% endblock %}

{% block content %}

{% include "kekule_display.html" %}
<div class="container-fluid">
<div class="row flex-xl-nowrap">
  <div class="col-12 col-md-3 col-xl-2 bd-sidebar">
<form>
13
  <fieldset class="form-group row border border-info m-2">
14
    <div class="bg-info col-12"><legend>PPI</legend></div>
Hervé  MENAGER's avatar
Hervé MENAGER committed
15
    {% for ppi in ppis|slice:":5"  %}
16
    <div class="form-check col-12">
Hervé  MENAGER's avatar
Hervé MENAGER committed
17
      <label class="form-check-label">
18
        <input class="form-check-input text-right" type="checkbox" value="{{ ppi.id }}" onchange="this.form.submit()" name="ppi" style="width: auto; margin-right: inherit!;">
Hervé  MENAGER's avatar
Hervé MENAGER committed
19
20
21
        {{ ppi.name }}
      </label>
    </div>
22
23
    {% endfor %}
  </fieldset>
Hervé  MENAGER's avatar
Hervé MENAGER committed
24
25
</form>
</div>
26
<main class="col-12 col-md-9 col-xl-10 pl-md-5 bd-content" role="main">
Hervé  MENAGER's avatar
Hervé MENAGER committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% if compounds %}
    {% for compound in compounds %}
        {% include "compound_abstract.html" with compound=compound %}
    {% endfor %}
{% else %}
    <p>No bibliographies available.</p>
{% endif %}					
                    </main>
</div>
</div>

<nav>
  <ul class="pagination justify-content-end">
    {% if compounds.has_previous %}
    <li class="page-item">
     <a class="page-link" href="?page={{ compounds.previous_page_number }}" tabindex="-1">Previous</a>
    </li>
    {% endif %}

    <li class="page-item disabled">
     <span class="page-link">Page {{ compounds.number }} of {{ compounds.paginator.num_pages }}.</span>
    </li>

    {% if compounds.has_next %}
    <li class="page-item">
     <a class="page-link" href="?page={{ compounds.next_page_number }}" tabindex="-1">Next</a>
    </li>
    {% endif %}
  </ul>
</nav>
{% endblock %}