Upload document

This commit is contained in:
alazo 2017-04-19 18:49:49 +02:00
parent 30550d3066
commit 9f0e515f4e
12 changed files with 341 additions and 90 deletions

View file

@ -26,7 +26,6 @@
<!-- <li><a href="{% url 'evaluation' %}">Evaluation</a>&nbsp;&nbsp;</li> -->
<li><a href="{% url 'document-list' %}">Documents</a>&nbsp;&nbsp;</li>
<!-- <li><a href="{% url 'pdf-view' %}">Calendrier</a>&nbsp;&nbsp;</li>-->
{% if has_permission %}
<li><a href="#">Calendrier</a>&nbsp;&nbsp;</li>
{% endif %}

View file

@ -16,14 +16,26 @@
{% for doc in object_list %}
{% if doc.published %}
<li><a href="{% url 'document-detail' doc.id %}">{{doc}}</a></li>
<li><a href="{% url 'document-detail' doc.id %}">{{doc}}</a></li>
{% else %}
<li>{{doc}}&nbsp;&nbsp;(en travail)</li>
{% endif %}
{% empty %}
<li>Aucun document disponible</li>
{% endfor %}
{% for fic in upload %}
{% if fic.published %}
<li><a href="{% url 'upload-detail' fic.id %}">{{fic.titre}}</a></li>
{% else %}
<li>{{fic}}&nbsp;&nbsp;(en travail)</li>
{% endif %}
{% endfor %}
</ol>

View file

@ -0,0 +1,16 @@
{% extends "./base_site.html" %}
{% load i18n static %}
{% block coltype %}colMS{% endblock %}
{% block content %}
<div id="content-main">
<iframe src="{{fichier}}" width="1200" height="800" align="middle"></iframe>
</div>
{% endblock %}