68 lines
2.4 KiB
HTML
68 lines
2.4 KiB
HTML
{% extends 'dav_submission/base.html' %}
|
|
{% load i18n %}
|
|
{% load bootstrap3 %}
|
|
|
|
{% block page-container %}
|
|
<h3 class="top-most">Einreichungen</h3>
|
|
<div>
|
|
<table id="objects_table" class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans 'Titel' %}</th>
|
|
<th>{% trans 'Absender' %}</th>
|
|
<th>{% trans 'Datum' %}</th>
|
|
</tr>
|
|
<tr>
|
|
<th><input type="text" placeholder="{% trans 'Filter' %}" /></th>
|
|
<th><input type="text" placeholder="{% trans 'Filter' %}" /></th>
|
|
<th><input type="text" placeholder="{% trans 'Filter' %}" /></th>
|
|
</tr>
|
|
<tbody>
|
|
{% for object in object_list %}
|
|
<tr>
|
|
<td>
|
|
<a href="{% url 'dav_submission:download' object.pk %}"
|
|
class="btn btn-xs btn-primary"
|
|
title="Download">{% bootstrap_icon 'download-alt' %}</a>
|
|
|
|
{{ object.title }}
|
|
</td>
|
|
<td>
|
|
{{ object.name }} (<a href="mailto:{{ object.email_address }}">{{ object.email_address }}</a>)
|
|
</td>
|
|
<td data-order="{{ object.timestamp|date:'U' }}">
|
|
{{ object.timestamp|date:'l, d. F Y H:i:s e' }}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<script type="text/javascript">
|
|
$(document).ready( function () {
|
|
var table = $("#objects_table").DataTable( {
|
|
orderCellsTop: true,
|
|
order: [[2, "asc"]],
|
|
paging: false,
|
|
language: {
|
|
search: "{% trans 'Filter' %}:",
|
|
info: "{% trans 'Zeige _TOTAL_ Einträge' %}",
|
|
infoFiltered: "{% trans 'aus insgesamt _MAX_ Einträgen' %}",
|
|
infoEmpty: "{% trans 'Zeige 0 Einträge' %}",
|
|
infoPostFix: ".",
|
|
emptyTable: "{% trans 'Keine Daten vorhanden.' %}",
|
|
zeroRecords: "{% trans 'Keine passenden Einträge.' %}",
|
|
|
|
}
|
|
} );
|
|
$("#objects_table thead input").on( "keyup change", function() {
|
|
table
|
|
.column( $(this).parent().index() )
|
|
.search( this.value )
|
|
.draw();
|
|
} );
|
|
$("#objects_table_filter").hide();
|
|
} );
|
|
</script>
|
|
</div>
|
|
{% endblock page-container %}
|