Upload document
This commit is contained in:
parent
30550d3066
commit
9f0e515f4e
12 changed files with 341 additions and 90 deletions
|
|
@ -26,7 +26,6 @@
|
|||
<!-- <li><a href="{% url 'evaluation' %}">Evaluation</a> </li> -->
|
||||
|
||||
<li><a href="{% url 'document-list' %}">Documents</a> </li>
|
||||
<!-- <li><a href="{% url 'pdf-view' %}">Calendrier</a> </li>-->
|
||||
{% if has_permission %}
|
||||
<li><a href="#">Calendrier</a> </li>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -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}} (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}} (en travail)</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
||||
|
||||
</ol>
|
||||
|
||||
|
||||
|
|
|
|||
16
templates/cms/upload_detail.html
Normal file
16
templates/cms/upload_detail.html
Normal 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 %}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue