compound_list.html 2.83 KB
Newer Older
1
{% extends "admin-session.html" %}
2
{% load customtags %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
3
    
4
{% block title %}compounds list{% endblock %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
5
6

{% block content %}
7
8
9
10
11
<div id="mainnav">
    <nav class="secondary-nav">
        <div class="inner-wrap">
            <ul>
              <li>
12
                    <a href="/compound/">View Content</a>
13
14
                </li>
                <li>
15
                    <a href="/admin-session/add/IdForm">Add New Content</a>
16
17
                </li>
                <li>
18
                    <a href="/admin-session/update">Update Content</a>
19
20
21
22
23
24
25
26
27
28
29
30
31
                </li>
            </ul>
        </div>
    </nav>
</div>
<div class="inner-wrap">
    <nav class="breadcrumb" role="navigation">
        <div id="breadcrumb-label" class="breadcrumb-label">You are here</div>
        <div aria-labelledby="breadcrumb-label">
          {% block breadcrumb %} {{block.super}}> <a href="/compound/">View content</a>{% endblock %} 
        </div>
    </nav>
</div>
Hervé  MENAGER's avatar
Hervé MENAGER committed
32
33
34
35
36

<div class="container-fluid">
<div class="row flex-xl-nowrap">
  <div class="col-12 col-md-3 col-xl-2 bd-sidebar">
<form>
37
38
39
40
  {% include "multiselection_list_menu.html" with label="PPI" selected_list=selected_ppis unselected_list=ppis param_name="ppi" all_param_name="ppis_all" all_param_value=ppis_all %}
  {% include "multiselection_list_menu.html" with label="Disease" selected_list=selected_diseases unselected_list=diseases param_name="disease" all_param_name="diseases_all" all_param_value=diseases_all %}
  {% include "multiselection_list_menu.html" with label="Organism" selected_list=selected_taxonomies unselected_list=taxonomies param_name="taxonomy" all_param_name="taxonomies_all" all_param_value=taxonomies_all %}
  {% include "multiselection_list_menu.html" with label="Bound complex" selected_list=selected_boundcomplexes unselected_list=boundcomplexes param_name="boundcomplex" all_param_name="boundcomplexes_all" all_param_value=boundcomplexes_all %}
Hervé  MENAGER's avatar
Hervé MENAGER committed
41
42
</form>
</div>
43
<main class="col-12 col-md-9 col-xl-10 pl-md-5 bd-content" role="main">
Hervé  MENAGER's avatar
Hervé MENAGER committed
44
45
46
47
48
{% if compounds %}
    {% for compound in compounds %}
        {% include "compound_abstract.html" with compound=compound %}
    {% endfor %}
{% else %}
49
    <p>Nothing found there!</p>
Hervé  MENAGER's avatar
Hervé MENAGER committed
50
51
52
53
54
55
56
57
58
{% endif %}					
                    </main>
</div>
</div>

<nav>
  <ul class="pagination justify-content-end">
    {% if compounds.has_previous %}
    <li class="page-item">
59
     <a class="page-link" href="?{% url_replace request 'page' compounds.previous_page_number  %}" tabindex="-1">Previous</a>
Hervé  MENAGER's avatar
Hervé MENAGER committed
60
61
62
63
64
65
66
67
68
    </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">
69
     <a class="page-link" href="?{% url_replace request 'page' compounds.next_page_number  %}" tabindex="-1">Next</a>
Hervé  MENAGER's avatar
Hervé MENAGER committed
70
71
72
73
74
    </li>
    {% endif %}
  </ul>
</nav>
{% endblock %}