TinyMCE
This commit is contained in:
parent
ff091dc3e7
commit
1484d6cc6d
1582 changed files with 46295 additions and 15 deletions
|
|
@ -5,6 +5,9 @@
|
|||
<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" %}" />
|
||||
<script type="text/javascript" src="{% static "js/tiny_mce/tiny_mce.js" %}"></script>
|
||||
|
||||
|
||||
<script src="{% static 'js/jquery.js' %}"></script>
|
||||
{% 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 %}
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
<li><a href="{% url 'module-list' %}">Modules</a> </li>
|
||||
<li><a href="{% url 'periodes' %}">Périodes</a> </li>
|
||||
<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>
|
||||
|
|
|
|||
22
templates/cms/document_detail.html
Normal file
22
templates/cms/document_detail.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{% extends "./base_site.html" %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block coltype %}colMS{% endblock %}
|
||||
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div id="content-main">
|
||||
|
||||
<div style="margin:auto;width:50%;">
|
||||
<h1><b>{{object}}</b></h1>
|
||||
<p>{{object.texte|safe}}</p>
|
||||
</div>
|
||||
<div style="height: 600px;width: 400px;">
|
||||
<object data="media/media/EDS_Calendrier_2017.pdf" type="text/html" codetype="application/pdf" ></object>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
27
templates/cms/document_list.html
Normal file
27
templates/cms/document_list.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{% 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 documents</h1>
|
||||
<ol>
|
||||
{% for doc in object_list %}
|
||||
<li><a href="{% url 'document-detail' doc.id %}">{{doc}}</a></li>
|
||||
{% empty %}
|
||||
<li>Aucun document disponible</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue