Project

General

Profile

« Previous | Next » 

Revision 43a5b181

Added by Frédéric Péters over 12 years ago

dossiers: add pagination to listings (#2094)

View differences:

calebasse/dossiers/templates/dossiers/quotations.html
73 73
    </tbody>
74 74
  </table>
75 75

  
76
{% if request.GET %}
77
<div class="pagination">
78
    <span class="step-links">
79
        {% if patient_records.has_previous %}
80
            <a href="?{{ query }}&page={{ patient_records.previous_page_number }}">««</a>
81
        {% endif %}
82

  
83
        <span class="current">
84
            page {{ patient_records.number }} de {{ patient_records.paginator.num_pages }}
85
        </span>
86

  
87
        {% if patient_records.has_next %}
88
            <a href="?{{ query }}&page={{ patient_records.next_page_number }}">»»</a>
89
        {% endif %}
90
    </span>
91
</div>
92
{% endif %}
93

  
94

  
95

  
76 96
  {% if not request.GET %}
77 97
  <div class="big-msg-info">
78 98
    Utilisez le formulaire de recherche sur la gauche de l'écran pour afficher

Also available in: Unified diff