dav_submission: added email notification, zip-download and permission

check.
This commit is contained in:
2019-11-06 13:25:06 +01:00
parent bcacb033df
commit 6f999e419d
6 changed files with 95 additions and 15 deletions

View File

@@ -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.

View File

@@ -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>&nbsp;</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>&nbsp;</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>
&nbsp;
{{ 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 %}