Vision des events différenciée
This commit is contained in:
parent
20dc665fec
commit
ed2fafe61a
8 changed files with 28 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
<td width="20%" align="left">
|
||||
<< <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> >>
|
||||
</td>
|
||||
|
|
10
templates/calendrier/update.html
Normal file
10
templates/calendrier/update.html
Normal 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 %}
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue