Vision des events différenciée

This commit is contained in:
R1kM 2015-04-17 18:38:44 +02:00
parent 20dc665fec
commit ed2fafe61a
8 changed files with 28 additions and 1 deletions

View file

@ -16,7 +16,7 @@
<td width="20%" align="left">
&lt;&lt; <a href="/calendar/{{PreviousYear}}/{{PreviousMonth}}/">{{PreviousMonthName|frenchmonth}} {{PreviousYear}}</a>
</td>
<td width="20%" align="center"><a href="/calendar">Today</a></td>
<td width="20%" align="center"><a href="/calendar">Aujourd'hui</a></td>
<td width="20%" align="right">
<a href="/calendar/{{NextYear}}/{{NextMonth}}/">{{NextMonthName|frenchmonth}} {{NextYear}}</a> &gt;&gt;
</td>

View file

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block titre %}Modification{% endblock %}
{% block content %}
<form action="" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Enregistrer" />
</form>
{% endblock %}

View file

@ -3,6 +3,9 @@
{% block titre %}{{ nom }}{% endblock %}
{% block content %}
{% if user.profile.is_chef %}
<p><a href="/calendar/edition/{{ev.id}}">Modifier l'événement</a></p>
{% endif %}
<p>{{ nom }}</p>
<p>{{ev.date}}</p>
<p>{{ev.debut }}