dav_submission: added email notification, zip-download and permission
check.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
Hallo Mein-DAV-Team,
|
||||
|
||||
jemand hat einen neuen Beitrag eingereicht:
|
||||
|
||||
Absender: {{ metadata.name }} <{{ metadata.email_address }}>
|
||||
Gruppe: {{ metadata.group }}
|
||||
Datum: {{ metadata.date }} {{ metadata.time }}
|
||||
Titel: {{ metadata.title }}
|
||||
Beschreibung:
|
||||
{{ metadata.description }}
|
||||
|
||||
Ihr könnt den Beitrag unter
|
||||
https://mein-dav.alpenverein-karlsruhe.de/download
|
||||
herunterladen.
|
||||
@@ -2,7 +2,7 @@
|
||||
{% load i18n %}
|
||||
{% load bootstrap3 %}
|
||||
|
||||
{% block page-container %}
|
||||
{% block page-container-fluid %}
|
||||
<h3 class="top-most">Einreichungen</h3>
|
||||
<div>
|
||||
<table id="objects_table" class="table table-striped">
|
||||
@@ -11,20 +11,18 @@
|
||||
<th>{% trans 'Titel' %}</th>
|
||||
<th>{% trans 'Absender' %}</th>
|
||||
<th>{% trans 'Datum' %}</th>
|
||||
<th> </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>
|
||||
<th> </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>
|
||||
@@ -33,6 +31,11 @@
|
||||
<td data-order="{{ object.timestamp|date:'U' }}">
|
||||
{{ object.timestamp|date:'l, d. F Y H:i:s e' }}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{% url 'dav_submission:download' object.pk %}"
|
||||
class="btn btn-xs btn-primary"
|
||||
title="Download">{% bootstrap_icon 'download-alt' %}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
@@ -64,4 +67,4 @@
|
||||
} );
|
||||
</script>
|
||||
</div>
|
||||
{% endblock page-container %}
|
||||
{% endblock page-container-fluid %}
|
||||
|
||||
Reference in New Issue
Block a user