mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 22:42:17 +00:00
45 lines
1.5 KiB
HTML
45 lines
1.5 KiB
HTML
{% extends 'base.html' %}
|
|
{% load paginator from filters %}
|
|
|
|
{% block title %}Event Archive{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<h2>Event Archive</h2>
|
|
|
|
<div class="col-sm-12 col-md-6 pagination">
|
|
<form class="form-inline">
|
|
<div class="form-group">
|
|
<label for="start">Start</label>
|
|
<input type="date" name="start" id="start" value="{{ request.GET.start }}" placeholder="Start" class="form-control" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="end">End</label>
|
|
<input type="date" name="end" id="end" value="{% if request.GET.end %}{{ request.GET.end }}{% else %}{% now "Y-m-d" %}{% endif %}" placeholder="End" class="form-control" />
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="submit" class="btn btn-primary" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
{% if is_paginated %}
|
|
<div class="col-md-6 text-right">
|
|
{% paginator %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<div class="row">
|
|
{% with latest as events %}
|
|
{% include 'RIGS/event_table.html' %}
|
|
{% endwith %}
|
|
</div>
|
|
|
|
{% if is_paginated %}
|
|
<div class="row">
|
|
<div class="text-right">
|
|
{% paginator %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %} |