Fixed {% url " syntax
This commit is contained in:
parent
6a9fb9a6b5
commit
ef74c84095
18 changed files with 30 additions and 30 deletions
|
@ -95,7 +95,7 @@ var django = {
|
|||
{% if success %}
|
||||
<p class="success">Votre inscription a été mise à jour avec succès !</p>
|
||||
{% endif %}
|
||||
<form id="bda_form" method="post" action="{% url bda-tirage-inscription %}">
|
||||
<form id="bda_form" method="post" action="{% url 'bda-tirage-inscription' %}">
|
||||
{% csrf_token %}
|
||||
{% include "inscription-formset.html" %}
|
||||
<input type="button" class="btn-addmore" value="Ajouter un autre vœu" id="add_more">
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
{% block realcontent %}
|
||||
<h1><strong>Spectacles</strong></h1>
|
||||
<ul>
|
||||
<li><a href="{% url bda-unpaid %}">Pas payé</a></li>
|
||||
<li><a href="{% url 'bda-unpaid' %}">Pas payé</a></li>
|
||||
{% for spectacle in object_list %}
|
||||
<li><a href="{% url bda-spectacle spectacle.id %}">{{ spectacle }}</a></li>
|
||||
<li><a href="{% url 'bda-spectacle' spectacle.id %}">{{ spectacle }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -95,7 +95,7 @@ var django = {
|
|||
{% if success %}
|
||||
<p class="success">Votre inscription a été mise à jour avec succès !</p>
|
||||
{% endif %}
|
||||
<form id="bda_form" method="post" action="{% url bda-tirage-inscription %}">
|
||||
<form id="bda_form" method="post" action="{% url 'bda-tirage-inscription' %}">
|
||||
{% csrf_token %}
|
||||
{% include "inscription-formset.html" %}
|
||||
<input type="button" class="btn-addmore" value="Ajouter un autre vœu" id="add_more">
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
{% block realcontent %}
|
||||
<h1><strong>Spectacles</strong></h1>
|
||||
<ul>
|
||||
<li><a href="{% url bda2-unpaid %}">Pas payé</a></li>
|
||||
<li><a href="{% url 'bda2-unpaid' %}">Pas payé</a></li>
|
||||
{% for spectacle in object_list %}
|
||||
<li><a href="{% url bda2-spectacle spectacle.id %}">{{ spectacle }}</a></li>
|
||||
<li><a href="{% url 'bda2-spectacle' spectacle.id %}">{{ spectacle }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
{% if members %}
|
||||
<li class="autocomplete-header">Membres du COF</li>
|
||||
{% for member in members %}{% if forloop.counter < 5 %}
|
||||
<li class="autocomplete-value"><a href="{% url user-registration member.user.username %}">{{ member.user|highlight_user:q }}</a></li>
|
||||
<li class="autocomplete-value"><a href="{% url 'user-registration' member.user.username %}">{{ member.user|highlight_user:q }}</a></li>
|
||||
{% elif forloop.counter == 5 %}<li class="autocomplete-more">...</a>{% endif %}{% endfor %}
|
||||
{% endif %}
|
||||
{% if users %}
|
||||
<li class="autocomplete-header">Utilisateurs de GestioCOF</li>
|
||||
{% for user in users %}{% if forloop.counter < 5 %}
|
||||
<li class="autocomplete-value"><a href="{% url user-registration user.username %}">{{ user|highlight_user:q }}</a></li>
|
||||
<li class="autocomplete-value"><a href="{% url 'user-registration' user.username %}">{{ user|highlight_user:q }}</a></li>
|
||||
{% elif forloop.counter == 5 %}<li class="autocomplete-more">...</a>{% endif %}{% endfor %}
|
||||
{% endif %}
|
||||
{% if clippers %}
|
||||
<li class="autocomplete-header">Utilisateurs <tt>clipper</tt></li>
|
||||
{% for clipper in clippers %}{% if forloop.counter < 5 %}
|
||||
<li class="autocomplete-value"><a href="{% url clipper-registration clipper.username %}">{{ clipper|highlight_clipper:q }}</a></li>
|
||||
<li class="autocomplete-value"><a href="{% url 'clipper-registration' clipper.username %}">{{ clipper|highlight_clipper:q }}</a></li>
|
||||
{% elif forloop.counter == 5 %}<li class="autocomplete-more">...</a>{% endif %}{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
@ -24,6 +24,6 @@
|
|||
{% else %}
|
||||
<li class="autocomplete-header">Pas dans la liste ?</li>
|
||||
{% endif %}
|
||||
<li><a href="{% url empty-registration %}">Créer un compte</a></li>
|
||||
<li><a href="{% url 'empty-registration' %}">Créer un compte</a></li>
|
||||
|
||||
</ul>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{% block realcontent %}
|
||||
{% if error_type == "use_clipper_login" %}
|
||||
<h2><strong>Votre identifiant est lié à un compte <tt>clipper</tt></strong></h2>
|
||||
<p>Veuillez vous connecter à l'aide de votre <a href="{% url cas_login_view %}">compte <tt>clipper</tt></a></p>
|
||||
<p>Veuillez vous connecter à l'aide de votre <a href="{% url 'cas_login_view' %}">compte <tt>clipper</tt></a></p>
|
||||
{% elif error_type == "no_password" %}
|
||||
<h2><strong>Votre compte n'a pas de mot de passe associé</strong></h2>
|
||||
<p>Veuillez <a href="mailto:cof@clipper.ens.fr">nous contacter</a> pour que nous en définissions un et que nous vous le transmettions !</p>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% if event.details %}
|
||||
<p>{{ event.details }}</p>
|
||||
{% endif %}
|
||||
<form method="post" action="{% url gestioncof.views.event event.id %}">
|
||||
<form method="post" action="{% url 'gestioncof.views.event' event.id %}">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" class="btn-submit" value="Enregistrer" />
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
{% load utils %}
|
||||
|
||||
{% block realcontent %}
|
||||
<h2>Événement: {{ event.title }}{% if user.is_staff %} – <a href="{% url admin:gestioncof_event_change event.id %}">Administration</a>{% endif %}</h2>
|
||||
<h2>Événement: {{ event.title }}{% if user.is_staff %} – <a href="{% url 'admin:gestioncof_event_change' event.id %}">Administration</a>{% endif %}</h2>
|
||||
{% if event.details %}
|
||||
<p>{{ event.details }}</p>
|
||||
{% endif %}
|
||||
{% include "tristate_js.html" %}
|
||||
<h3>Filtres</h3>
|
||||
<form method="post" action="{% url gestioncof.views.event_status event.id %}">
|
||||
<form method="post" action="{% url 'gestioncof.views.event_status' event.id %}">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" class="btn-submit" value="Filtrer" />
|
||||
|
|
|
@ -95,7 +95,7 @@ var django = {
|
|||
{% if success %}
|
||||
<p class="success">Votre inscription a été mise à jour avec succès !</p>
|
||||
{% endif %}
|
||||
<form id="bda_form" method="post" action="{% url bda-tirage-inscription %}">
|
||||
<form id="bda_form" method="post" action="{% url 'bda-tirage-inscription' %}">
|
||||
{% csrf_token %}
|
||||
{% include "inscription-formset.html" %}
|
||||
<input type="button" class="btn-addmore" value="Ajouter un autre vœu" id="add_more">
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<p class="error">Identifiants incorrects.</p>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action="{% url gestioncof.views.login_ext %}">
|
||||
<form method="post" action="{% url 'gestioncof.views.login_ext' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
{% block content %}
|
||||
<div id="main-login-container">
|
||||
<div id="main-login">
|
||||
<a id="login_clipper" href="{% url django_cas.views.login %}">
|
||||
<a id="login_clipper" href="{% url 'django_cas.views.login' %}">
|
||||
Compte clipper
|
||||
</a>
|
||||
<a id="login_outsider" href="{% url gestioncof.views.login_ext %}">
|
||||
<a id="login_outsider" href="{% url 'gestioncof.views.login_ext' %}">
|
||||
Extérieur
|
||||
</a>
|
||||
<div class="spacer"></div>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{% if success %}
|
||||
<p class="success">Votre profil a été mis à jour avec succès !</p>
|
||||
{% endif %}
|
||||
<form id="profile" method="post" action="{% url gestioncof.views.profile %}">
|
||||
<form id="profile" method="post" action="{% url 'gestioncof.views.profile' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('input#search_autocomplete').yourlabsAutocomplete({
|
||||
url: '{% url gestioncof.autocomplete.autocomplete %}',
|
||||
url: '{% url 'gestioncof.autocomplete.autocomplete' %}',
|
||||
minimumCharacters: 1,
|
||||
id: 'search_autocomplete',
|
||||
choiceSelector: 'li:has(a)',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{% if login_clipper %}<h3>Inscription associée au compte clipper <tt>{{ login_clipper }}</tt></h3>
|
||||
{% elif member %}<h3>Inscription du compte GestioCOF existant <tt>{{ member.username }}</tt></h3>
|
||||
{% else %}<h3>Inscription d'un nouveau compte (extérieur ?)</h3>{% endif %}
|
||||
<form id="profile" method="post" action="{% url gestioncof.views.registration %}">
|
||||
<form id="profile" method="post" action="{% url 'gestioncof.views.registration' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
{{ user_form.as_table }}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
{% if survey.details %}
|
||||
<p>{{ survey.details }}</p>
|
||||
{% endif %}
|
||||
<form method="post" action="{% url gestioncof.views.survey survey.id %}">
|
||||
<form method="post" action="{% url 'gestioncof.views.survey' survey.id %}">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" class="btn-submit" value="Enregistrer" />
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
{% load utils %}
|
||||
|
||||
{% block realcontent %}
|
||||
<h2>Sondage: {{ survey.title }}{% if user.is_staff %} – <a href="{% url admin:gestioncof_survey_change survey.id %}">Administration</a>{% endif %}</h2>
|
||||
<h2>Sondage: {{ survey.title }}{% if user.is_staff %} – <a href="{% url 'admin:gestioncof_survey_change' survey.id %}">Administration</a>{% endif %}</h2>
|
||||
{% if survey.details %}
|
||||
<p>{{ survey.details }}</p>
|
||||
{% endif %}
|
||||
<h3>Filtres</h3>
|
||||
{% include "tristate_js.html" %}
|
||||
<form method="post" action="{% url gestioncof.views.survey_status survey.id %}">
|
||||
<form method="post" action="{% url 'gestioncof.views.survey_status' survey.id %}">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" class="btn-submit" value="Filtrer" />
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<h2>Liens utiles du BdA</h2>
|
||||
<h3>Premier tirage</h3>
|
||||
<ul>
|
||||
<li><a href="{% url bda.views.etat_places %}">Etat des voeux</a></li>
|
||||
<li><a href="{% url 'bda.views.etat_places' %}">Etat des voeux</a></li>
|
||||
<li>Mailing list par spectacle</li>
|
||||
<li><a href="{% url bda.views.unpaid %}">Mailing list des impayés</a></li>
|
||||
<li><a href="{% url 'bda.views.unpaid' %}">Mailing list des impayés</a></li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
<h2>Liens utiles du COF</h2>
|
||||
<h3>COF</h3>
|
||||
<ul>
|
||||
<li><a href="{% url gestioncof.views.export_members %}">Export des membres du COF</a></li>
|
||||
<li><a href="{% url 'gestioncof.views.export_members' %}">Export des membres du COF</a></li>
|
||||
</ul>
|
||||
|
||||
<h3>Mega</h3>
|
||||
<ul>
|
||||
<li><a href="{% url gestioncof.views.export_mega_participants %}">Export des participants</a></li>
|
||||
<li><a href="{% url gestioncof.views.export_mega_orgas %}">Export des orgas</a></li>
|
||||
<li><a href="{% url gestioncof.views.export_mega %}">Export de tout le monde</a></li>
|
||||
<li><a href="{% url 'gestioncof.views.export_mega_participants' %}">Export des participants</a></li>
|
||||
<li><a href="{% url 'gestioncof.views.export_mega_orgas' %}">Export des orgas</a></li>
|
||||
<li><a href="{% url 'gestioncof.views.export_mega' %}">Export de tout le monde</a></li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue