First commit
This commit is contained in:
commit
dc05952f76
46 changed files with 1752 additions and 0 deletions
89
templates/cms/base.html
Normal file
89
templates/cms/base.html
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
{% load i18n static %}<!DOCTYPE html>
|
||||
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
|
||||
<html lang="{{ LANGUAGE_CODE|default:"fr" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
|
||||
<head>
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{% static "admin/css/base.css" %}" />
|
||||
<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />
|
||||
|
||||
{% block extrastyle %}<link rel="stylesheet" type="text/css" href="{% static "css/main.css" %}" />{% endblock %}
|
||||
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{% endif %}
|
||||
{% block extrahead %}{% endblock %}
|
||||
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
|
||||
</head>
|
||||
{% load i18n %}
|
||||
|
||||
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}dashboard{% endblock %}"
|
||||
data-admin-utc-offset="{% now "Z" %}">
|
||||
|
||||
<!-- Container -->
|
||||
<div id="container">
|
||||
|
||||
{% if not is_popup %}
|
||||
<!-- Header -->
|
||||
<div id="header">
|
||||
<div id="branding">
|
||||
{% block branding %}{% endblock %}
|
||||
</div>
|
||||
{% block usertools %}
|
||||
{% if has_permission %}
|
||||
<div id="user-tools">
|
||||
{% block welcome-msg %}
|
||||
{% trans 'Welcome,' %}
|
||||
<strong>{% firstof user.get_short_name user.get_username %}</strong>.
|
||||
{% endblock %}
|
||||
{% block userlinks %}
|
||||
{% if site_url %}
|
||||
<a href="{{ site_url }}">{% trans 'View site' %}</a> /
|
||||
{% endif %}
|
||||
{% if user.is_active and user.is_staff %}
|
||||
{% url 'django-admindocs-docroot' as docsroot %}
|
||||
{% if docsroot %}
|
||||
<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if user.has_usable_password %}
|
||||
<a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
|
||||
{% endif %}
|
||||
<a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
{% block nav-global %}{% endblock %}
|
||||
</div>
|
||||
<!-- END Header -->
|
||||
{% block breadcrumbs %}
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
|
||||
{% block messages %}
|
||||
{% if messages %}
|
||||
<ul class="messagelist">{% for message in messages %}
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message|capfirst }}</li>
|
||||
{% endfor %}</ul>
|
||||
{% endif %}
|
||||
{% endblock messages %}
|
||||
|
||||
<!-- Content -->
|
||||
<div id="content">
|
||||
{% block pretitle %}{% endblock %}
|
||||
{% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
|
||||
{% block content %}
|
||||
{% block object-tools %}{% endblock %}
|
||||
{{ content }}
|
||||
{% endblock %}
|
||||
{% block sidebar %}{% endblock %}
|
||||
<br class="clear" />
|
||||
</div>
|
||||
<!-- END Content -->
|
||||
|
||||
{% block footer %}<div id="footer"></div>{% endblock %}
|
||||
</div>
|
||||
<!-- END Container -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
21
templates/cms/base_site.html
Normal file
21
templates/cms/base_site.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{% extends "./base.html" %}
|
||||
|
||||
{% block title %}EDS{% endblock %}
|
||||
|
||||
{% block branding %}<h1 id="site-name"><a href="{% url 'admin:index' %}">Formation EDS</a></h1>{% endblock %}
|
||||
{% block usertools %}<div id="user-tools"><a href="{% url 'admin:index' %}">Admin</a></div>{% endblock %}
|
||||
{% block nav-global %}{% endblock %}
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="{% url 'home' %}">Accueil</a> </li>
|
||||
<li><a href="{% url 'domaine-list' %}">Domaines</a> </li>
|
||||
<li><a href="{% url 'processus-list' %}">Processus</a> </li>
|
||||
<li><a href="{% url 'module-list' %}">Modules</a> </li>
|
||||
<li><a href="#">Calendrier</a> </li>
|
||||
{% if has_permission %}
|
||||
<li><a href="#">Calendrier</a> </li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endblock %}
|
||||
29
templates/cms/documents.html
Normal file
29
templates/cms/documents.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />
|
||||
<link rel="stylesheet" type="text/css" href="{% static "css/main.css" %}" />{% endblock %}
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ block.super }} dashboard{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url 'home' %}">Accueil</a>
|
||||
<a href="{% url 'document' %}">Document</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
<h1>Documents utiles</h1>
|
||||
<ul>
|
||||
<li><a href=""
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
26
templates/cms/domaine_detail.html
Normal file
26
templates/cms/domaine_detail.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
<h1>Domaine: {{object.code}} - {{object.libelle}}</h1>
|
||||
{% for p in object.processus_set.all %}
|
||||
<div class="processus"><h2>Processus: {{ p.url|safe }}</h2></div>
|
||||
{% for m in p.module_set.all %}
|
||||
<div class="module">Module: <a href="/module/{{m.id}}">{{ m }}</a></div>
|
||||
<div class="competence">Compétences visées</div>
|
||||
{% for c in m.competences.all %}
|
||||
<div class="competence">{{ c }}</div>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
31
templates/cms/domaine_list.html
Normal file
31
templates/cms/domaine_list.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
|
||||
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ block.super }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
<h1>Liste des domaines</h1>
|
||||
<table border="0">
|
||||
{% for d in object_list %}
|
||||
<tr><td colspan="3">{{d}}</td></td></tr>
|
||||
{% for p in d.processus_set.all %}
|
||||
<tr><th width="10px"> </th><td colspan="2"><a href=" {% url 'processus-detail' p.id %}">{{p}}</a></td></tr>
|
||||
{% for m in p.module_set.all %}
|
||||
<tr><th colspan="2" width="45px"> <td><a href=" {% url 'module-detail' m.id %}">{{m}}</a></td></tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
103
templates/cms/index.html
Normal file
103
templates/cms/index.html
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
|
||||
<table id="plan">
|
||||
<tr>
|
||||
<th width="300px">Domaines</th>
|
||||
<th width="600px">Processus</th>
|
||||
<th width="180px" style="text-align:center;">Sem1</th>
|
||||
<th width="180px" style="text-align:center;">Sem2</th>
|
||||
<th width="180px" style="text-align:center;">Sem3</th>
|
||||
<th width="180px" style="text-align:center;">Sem4</th>
|
||||
<th width="180px" style="text-align:center;">Sem5</th>
|
||||
<th width="180px" style="text-align:center;">Sem6</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td rowspan="4" class="l1 d">{{D1.url|safe}}</td>
|
||||
<td rowspan="2" class="l1 p">{{P01.url|safe}}</td>
|
||||
<td class="l1 m">{{M01.url_code|safe}}</td><td> </td><td> </td><td> </td><td> </td><td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td class="l1 m" >{{M02.url_code|safe}}</td><td> </td><td> </td><td> </td><td> </td><td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2" class="l1 p">{{P02.url|safe}}</td>
|
||||
<td></td><td class="l1 m">{{M03.url_code|safe}}</td><td> </td><td> </td><td> </td><td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td></td><td class="l1 m">{{M04.url_code|safe}}</td><td> </td><td> </td><td> </td><td> </td>
|
||||
</tr>
|
||||
<!-- Ligne 2 -->
|
||||
<tr>
|
||||
<td rowspan="3" class="l2 d">{{D2.url|safe}}</td>
|
||||
<td class="l2 p">{{P03.url|safe}}</td>
|
||||
<td class="l2 m">{{M05.url_code|safe}}</td><td> </td><td class="l2 m">{{M06.url_code|safe}}</td><td> </td><td> </td><td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2" class="l2 p">{{P04.url|safe}}</td>
|
||||
<td></td><td> </td><td> </td><td> </td><td class="l2 m">{{M07.url_code|safe}}</td><td class="l2 m">{{M09.url_code|safe}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td></td><td> </td><td> </td><td> </td><td class="l2 m">{{M08.url_code|safe}}</td><td> </td>
|
||||
</tr>
|
||||
|
||||
<!-- Ligne 3 -->
|
||||
<tr>
|
||||
<td rowspan="2" class="l3 d">{{D3.url|safe}}</td>
|
||||
<td class="l3 p">{{P05.url|safe}}</td>
|
||||
<td > </td><td> </td><td colspan="2" class="l3 m">{{M10.url_code|safe}}</td><td class="l3 m">{{M12.url_code|safe}}</td><td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="l3 p">{{P06.url|safe}}</td>
|
||||
<td > </td><td> </td><td colspan="2" class="l3 m">{{M11.url_code|safe}}</td><td> </td><td> </td>
|
||||
</tr>
|
||||
<!-- Ligne 4 -->
|
||||
<tr>
|
||||
<td class="l4 d">{{D4.url|safe}}</td>
|
||||
<td class="l4 p">{{P07.url|safe}}</td>
|
||||
<td > </td><td> </td><td class="l4 m">{{M13.url_code|safe}}</td><td> </td><td> </td><td class="l4 m">{{M14.url_code|safe}}</td>
|
||||
</tr>
|
||||
|
||||
<!-- Ligne 5 -->
|
||||
<tr>
|
||||
<td class="l5 d">{{D5.url|safe}}</td>
|
||||
<td class="l5 p">{{P08.url|safe}}</td>
|
||||
<td colspan="6" class="l5 m">{{M15.url_code|safe}}</td>
|
||||
</tr>
|
||||
|
||||
<!-- Ligne 6 -->
|
||||
<tr>
|
||||
<td class="l6 d">{{D6.url|safe}}</td>
|
||||
<td class="l6 p">{{P09.url|safe}}</td>
|
||||
<td colspan="2" class="l6 m">{{M16_1a.url_code|safe}} - {{M16_1b.url_code|safe}} - {{M16_1c.url_code|safe}}</td>
|
||||
<td colspan="2" class="l6 m">{{M16_2a.url_code|safe}} - {{M16_2b.url_code|safe}} - {{M16_2c.url_code|safe}}</td>
|
||||
<td colspan="2" class="l6 m">{{M16_3a.url_code|safe}} - {{M16_3b.url_code|safe}} - {{M16_3c.url_code|safe}}</td>
|
||||
</tr>
|
||||
<!-- Ligne 7 -->
|
||||
<tr>
|
||||
<td class="l7 d">{{D7.url|safe}}</td>
|
||||
<td class="l7 p">{{P10.url|safe}}</td>
|
||||
<td colspan="2" class="l7 m">{{M17_1.url_code|safe}}</td><td colspan="2" class="l7 m">{{M17_2.url_code|safe}}</td><td colspan="2" class="l7 m">{{M17_3.url_code|safe}}</td>
|
||||
</tr>
|
||||
|
||||
<!-- Ligne 8 -->
|
||||
<tr>
|
||||
<td class="l8 d">{{D8.url|safe}}</td>
|
||||
<td class="l8 p">{{P11.url|safe}}</td>
|
||||
<td colspan="6" class="l8 m">{{MACC.url_code|safe}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
38
templates/cms/module_detail.html
Normal file
38
templates/cms/module_detail.html
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
<h1>{{object}}</h1>
|
||||
<table>
|
||||
<tr><th>Domaine</th><td>{{object.processus.domaine.url|safe}}</td></tr>
|
||||
<tr><th>Processus</th><td>{{object.processus.url|safe}}</td></tr>
|
||||
<tr><th>Situation emblématique</th><td>{{object.situation}}</td></tr>
|
||||
<tr><th>Compétences visées</th><td><p>L'éducateur social, l'éducatrice sociale</p>
|
||||
{% for c in object.competences.all %}- {{c.libelle}} ({{c.code}})<br />{% endfor %}</td></tr>
|
||||
<tr><th>Ressources</th><td>{% for c in object.ressource_set.all %}- {{c}}<br />{% endfor %}</td></tr>
|
||||
<tr><th>Objectifs</th><td>{% for c in object.objectif_set.all %}- {{c}}<br />{% endfor %}</td></tr>
|
||||
<tr><th>Contenu</th><td>{{object.contenu}}</td></tr>
|
||||
<tr><th>Evaluation</th><td>{{object.evaluation}}</td></tr>
|
||||
<tr><th>Type</th><td>{{object.type}}</td></tr>
|
||||
<tr><th>Semestre</th><td>{{object.semestre}}</td></tr>
|
||||
{% if object.periode_presentiel > 0 %}
|
||||
<tr><th>Présentiel</th><td>{{object.periode_presentiel}} heures</td></tr>
|
||||
{% endif %}
|
||||
{% if object.pratique_prof > 0 %}
|
||||
<tr><th>Pratique prof.</th><td>{{object.pratique_prof}} heures</td></tr>
|
||||
{% endif %}
|
||||
{% if object.travail_perso > 0 %}
|
||||
<tr><th>Travail perso.</th><td>{{object.travail_perso}} heures</td></tr>
|
||||
{% endif %}
|
||||
<tr><th>Responsable</th><td>{{object.processus.domaine.responsable}} ({{object.processus.domaine.responsable.email}})</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
25
templates/cms/module_list.html
Normal file
25
templates/cms/module_list.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
|
||||
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ block.super }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
<h1>Liste des modules</h1>
|
||||
<table>
|
||||
{% for m in object_list %}
|
||||
<tr><th>{{m.code}}</th><td><a href=" {% url 'module-detail' m.id %}">{{m.nom}}</a></td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
48
templates/cms/periodes.html
Normal file
48
templates/cms/periodes.html
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />
|
||||
<link rel="stylesheet" type="text/css" href="{% static "css/main.css" %}" />{% endblock %}
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ block.super }} dashboard{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
<h1>Périodes de formation</h1>
|
||||
<table>
|
||||
<tr><th>Semestre 1</th><th text-align="right">{{tot1.sem1__sum}}h.</th></tr>
|
||||
{% for s in sem1 %}
|
||||
<tr><td>{{s}}</td><td>{{s.sem1}} h.</td></tr>
|
||||
{% endfor %}
|
||||
<tr><th>Semestre 2</th><th text-align="right">{{tot2.sem2__sum}}h.</th></tr>
|
||||
{% for s in sem2 %}
|
||||
<tr><td>{{s}}</td><td>{{s.sem2}} h.</td></tr>
|
||||
{% endfor %}
|
||||
<tr><th>Semestre 3</th><th text-align="right">{{tot3.sem3__sum}}h.</th></tr>
|
||||
{% for s in sem3 %}
|
||||
<tr><td>{{s}}</td><td>{{s.sem3}} h.</td></tr>
|
||||
{% endfor %}
|
||||
<tr><th>Semestre 4</th><th text-align="right">{{tot4.sem4__sum}}h.</th></tr>
|
||||
{% for s in sem4 %}
|
||||
<tr><td>{{s}}</td><td>{{s.sem4}} h.</td></tr>
|
||||
{% endfor %}
|
||||
<tr><th>Semestre 5</th><th text-align="right">{{tot5.sem5__sum}}h.</th></tr>
|
||||
{% for s in sem5 %}
|
||||
<tr><td>{{s}}</td><td>{{s.sem5}} h.</td></tr>
|
||||
{% endfor %}
|
||||
<tr><th>Semestre 6</th><th text-align="right">{{tot6.sem6__sum}}h.</th></tr>
|
||||
{% for s in sem6 %}
|
||||
<tr><td>{{s}}</td><td>{{s.sem6}} h.</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{{tot.tot__sum}}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
30
templates/cms/processus_detail.html
Normal file
30
templates/cms/processus_detail.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ block.super }} dashboard{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
<h1>{{object}}</h1>
|
||||
<table>
|
||||
<tr><th>Description</th><td>{{object.description}}</td></tr>
|
||||
<tr><th>Compétences visées</th><td><p>L'éducateur social, l'éducatrice sociale</p>
|
||||
{% for m in object.module_set.all %}{% for c in m.competences.all %}
|
||||
- {{c.libelle}} ({{c.code}})<br />{% endfor %}{% endfor %}</td></tr>
|
||||
<tr><th>Domaine</th><td>{{object.domaine.url|safe}}</td></tr>
|
||||
<tr><th>Responsable</th><td>{{object.domaine.responsable}} ({{object.domaine.responsable.email}})</td></tr>
|
||||
<tr><th>Modules concernés</th><td>{% for m in object.module_set.all %}{{m.url|safe}}</br>{% endfor %}</td></tr>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
28
templates/cms/processus_list.html
Normal file
28
templates/cms/processus_list.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
|
||||
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ block.super }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
<h1>Liste des processus</h1>
|
||||
<table>
|
||||
{% for p in object_list %}
|
||||
<tr><th>{{p.code}}</th><td><a href=" {% url 'processus-detail' p.id %}">{{p.libelle}}</a></td></tr>
|
||||
{% for m in p.module_set.all %}
|
||||
<tr><th> </th><td><a href=" {% url 'module-detail' m.id %}">{{m}}</a></td></tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
49
templates/cms/upload.html
Normal file
49
templates/cms/upload.html
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />
|
||||
<link rel="stylesheet" type="text/css" href="{% static "css/main.css" %}" />{% endblock %}
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
{% block bodyclass %}{{ block.super }} dashboard{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<div class="breadcrumbs">
|
||||
<a href="{% url 'home' %}">Accueil</a>
|
||||
<a href="{% url 'upload' %}">Document</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
<h1>Enregistrements de documents</h1>
|
||||
{% if documents %}
|
||||
<ul class="liste-verticale">
|
||||
{% for document in documents %}
|
||||
<li><a href="download/{{ document.docfile.name }}">{{document.docfile.name}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>No documents.</p>
|
||||
{% endif %}
|
||||
<!-- Upload form. Note enctype attribute! -->
|
||||
<div class="clear-booth">
|
||||
<form action="{% url 'upload' %}" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
<p>{{ form.non_field_errors }}</p>
|
||||
<p>{{ form.docfile.label_tag }} {{ form.docfile.help_text }}</p>
|
||||
<p>
|
||||
{{ form.docfile.errors }}
|
||||
{{ form.docfile }}
|
||||
</p>
|
||||
|
||||
<p><input type="submit" value="Upload" /></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue