compound_list.html 2.03 KB
Newer Older
Hervé  MENAGER's avatar
Hervé MENAGER committed
1
{% extends "base.html" %}
2
{% load customtags %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
3
4
5
6
7
8
9
10
11
    
{% block title %}compound{% endblock %}

{% block content %}

<div class="container-fluid">
<div class="row flex-xl-nowrap">
  <div class="col-12 col-md-3 col-xl-2 bd-sidebar">
<form>
12
  <fieldset class="form-group row border border-info m-2">
13
    <div class="bg-info col-12"><legend>PPI</legend></div>
14
    {% for ppi in selected_ppis  %}
15
16
17
18
19
20
21
    <div class="form-check col-12">
      <label class="form-check-label">
        <input class="form-check-input text-right" type="checkbox" checked value="{{ ppi.id }}" onchange="this.form.submit()" name="ppi" style="width: auto; margin-right: inherit!;">
        {{ ppi.name }}
      </label>
    </div>
    {% endfor %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
22
    {% for ppi in ppis|slice:":5"  %}
23
    <div class="form-check col-12">
Hervé  MENAGER's avatar
Hervé MENAGER committed
24
      <label class="form-check-label">
25
        <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
26
27
28
        {{ ppi.name }}
      </label>
    </div>
29
30
    {% endfor %}
  </fieldset>
Hervé  MENAGER's avatar
Hervé MENAGER committed
31
32
</form>
</div>
33
<main class="col-12 col-md-9 col-xl-10 pl-md-5 bd-content" role="main">
Hervé  MENAGER's avatar
Hervé MENAGER committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{% 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">
49
     <a class="page-link" href="?{% url_replace request 'page' compounds.previous_page_number  %}" tabindex="-1">Previous</a>
Hervé  MENAGER's avatar
Hervé MENAGER committed
50
51
52
53
54
55
56
57
58
    </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">
59
     <a class="page-link" href="?{% url_replace request 'page' compounds.next_page_number  %}" tabindex="-1">Next</a>
Hervé  MENAGER's avatar
Hervé MENAGER committed
60
61
62
63
64
    </li>
    {% endif %}
  </ul>
</nav>
{% endblock %}