add file uploads to post
This commit is contained in:
@@ -79,9 +79,9 @@
|
||||
</div>
|
||||
<div class="cell medium-4">
|
||||
<a href="{% url 'posts.show' next %}">Nächster Artikel <span class="nav fa fa-chevron-right fa-1x"></span></a><br>
|
||||
<hr>
|
||||
|
||||
{% if request.user.is_authenticated %}
|
||||
<hr>
|
||||
|
||||
{% if post.has_agenda %}
|
||||
<a href="{{ ep_agenda_link }}">Agenda</a><br>
|
||||
@@ -101,10 +101,10 @@
|
||||
<a href="{% url 'admin:posts_fetmeeting_change' post.id %}">Bearbeiten</a>
|
||||
{% endif %}
|
||||
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
{% if post.event_start %}
|
||||
<hr>
|
||||
Start: {{ post.event_start|date:"d. F Y" }} {{ post.event_start|time:"H:i" }}<br>
|
||||
{% endif %}
|
||||
{% if post.event_end %}
|
||||
@@ -114,6 +114,21 @@
|
||||
{% if post.event_start %}
|
||||
{% include 'posts/partials/_date_box.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% if files %}
|
||||
<hr>
|
||||
Dokumente:
|
||||
|
||||
<ul>
|
||||
{% for file in files %}
|
||||
<li><a href="{{file.file_field.url}}" target="_blank">{{file.title}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% endif %}
|
||||
|
||||
<hr>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user