Commit bourrin

Ajoute des changements effectués en prod sans passer par le git
This commit is contained in:
Martin Pépin 2016-06-21 00:33:32 +02:00
parent 30ab0adb79
commit 334c1d2f00
111 changed files with 14579 additions and 74 deletions

View file

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block titre %}Modification du profil{% endblock %}
{% block content %}
<h2>Modification du profil</h2>
{% if error %}
<p>{{ error }}</p>
{% endif %}
{% if success %}
<p>Changement enregistré !</p>
{% endif %}
<form action="{% url 'calendrier.views.changename' %}" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Valider" />
</form>
{% endblock %}

View file

@ -16,7 +16,7 @@
Fanfaron de passage, musicien intrigué, Ernestophoniste en quête de sensations fortes ou de partitions, ou tout simplement internaute égaré, l'Ernestophone te souhaite la bienvenue sur son son site !
</p>
<p>
L'Ernestophone, c'est la fanfare de l'École normale supérieure, (re)créée en septembre 2011, pour le plus grand bonheur des petits. Et des grands.
<strong>L'Ernestophone</strong>, c'est la fanfare de l'École normale supérieure, (re)créée en septembre 2011, pour le plus grand bonheur des petits. Et des grands.
</p>
</div>
<table width="100%">

View file

@ -4,26 +4,25 @@
{% block content %}
<div id="viewevent">
<h1>{{ nom }}</h1>
<h4>Le {{ev.date}}{% if fin %} de {{ ev.debut|time:"H:i"}} à {{ ev.fin|time:"H:i" }} {%else %} à {{ ev.debut|time:"H:i" }} {%endif %}{{ ev.lieu }}</h4>
{% if desc %}
<p>{{ev.description|safe }}</p>
{% endif %}
{% if user.is_authenticated and ev.desc_users %}
<p>{{ ev.desc_users|safe }}</p>
{% endif %}
</div>
{% if user.is_authenticated %}
<div id="actions">
{% if user.profile.is_chef %}
<p><a href="/calendar/edition/{{ev.id}}">Modifier l'événement</a></p>
<p><a href="/calendar/supprimer/{{ev.id}}">Supprimer l'événement</a></p>
<p><a href="/calendar/resend/{{ev.id}}">Renvoyer les mails</a></p>
{% endif %}
{% if user.is_authenticated %}
<p><a href="{% url 'calendrier.views.reponse' id %}">Répondre à l'événement</a></p>
{% endif %}
<p>{{ nom }}</p>
<p>{{ev.date}}</p>
<p>{{ev.debut }}
{% if fin %}
- {{ ev.fin }}
{% endif %}
</p>
<p> Lieu : {{ ev.lieu }}</p>
{% if desc %}
<p>{{ev.description }}</p>
{% endif %}
<p><a href="{% url "calendrier.views.changename" %}">Changer mon nom pour le doodle</a></p>
</div>
{% endif %}
{% if user.is_authenticated %}
<div id="doodle">
<h4>Participants</h4>
@ -32,21 +31,27 @@
{% if part %}<tr>
<th>Ernestophoniste</th>
<th>Réponse</th>
<th></th>
</tr>
{% endif %}
{% for p in part %}
<tr>
{% if p.participant.doodlename %}
<td>{{ p.participant.doodlename }}</td>
{%else %}
<td>{{ p.participant.user.username }}</td>
{% if p.reponse == "oui" %}<td class="oui"></td>
{% elif p.reponse == "pe" %}<td class="pe"></td>
{% elif p.reponse == "non" %}<td class="non"></td>
{% else %}<td></td>
{% endif %}
{% if p.reponse == "oui" %}<td class="oui"></td><td class="details">{{ p.details }}</td>
{% elif p.reponse == "pe" %}<td class="pe"></td><td class="details">{{ p.details }}</td>
{% elif p.reponse == "non" %}<td class="non"></td><td class="details">{{ p.details }}</td>
{% else %}
{% endif %}
</tr>
{% empty %}
Pas de réponse pour l'instant
{% endfor %}
</table>
<p><a href="{% url 'calendrier.views.reponse' id %}">Répondre à l'événement</a></p>
</div>
{% endif %}
{% endblock %}

View file

@ -22,15 +22,16 @@
<ul id="menu">
<li><a href="{% url 'partitions.views.liste' %}">Partitions</a></li>
{% if user.is_authenticated %}
{% if user.profile.is_chef %}
{% if user.is_superuser %}
<li><a href = '/admin/'>Administration</a></li>
{% endif %}
<li><a href='/divers/'>Divers</a></li>
<li>Connecté en tant que {{user.username }}</li>
<li><a href="{% url 'gestion.views.change_membre' %}">Connecté en tant que {{user.username }}</a></li>
<li><a href = '/logout/'>Déconnexion</a></li>
{% else %}
<li><a href='/login/'>Connexion</a></li>
<li><a href='/registration/'>Créer un compte</a></li>
<li><a href='/user/password/reset/'>Mot de passe oublié</a></li>
{% endif %}
</ul>
</nav>
@ -40,5 +41,11 @@
{% endblock %}
</section>
</div>
<footer>
© L'Ernestophone 2015. L'Ernestophone est un club du Comité d'Organisation des Fêtes de l'ENS. Contacts :
<a href="https://www.facebook.com/ernestophone" style="color:white;">Facebook</a>
<a href="mailto:fanfare@ens.fr" style="color: white;">Mail</a>
</footer>
</body>
</html>

View file

@ -0,0 +1,20 @@
{% extends "base.html" %}
{% block titre %}Modification du profil{% endblock %}
{% block content %}
<h2>Modification du profil</h2>
{% if error %}
<p>{{ error }}</p>
{% endif %}
{% if success %}
<p>Changements enregistrés !</p>
{% endif %}
<p><a href="{% url "gestion.views.change_password" %}">Changer mon mot de passe</a></p>
<p><a href="{% url "calendrier.views.changename" %}">Changer mon nom pour les doodles</a></p>
<form action="{% url 'gestion.views.change_membre' %}" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Valider" />
</form>
{% endblock %}

View file

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block titre %}Changement du mot de passe{% endblock %}
{% block content %}
<h2>Changement du mot de passe</h2>
{% if error %}
<p>{{ error }}</p>
{% endif %}
{% if success %}
<p>Changement enregistré !</p>
{% endif %}
<form action="{% url 'gestion.views.change_password' %}" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Valider" />
</form>
{% endblock %}

View file

@ -4,5 +4,6 @@
<h1>Divers</h1>
<ul>
<li><a href="{% url "propositions.views.liste" %}">Propositions de morceaux</a></li>
<li><a href="{% url "pads.views.liste_pads" %}">Pads</a></li>
</ul>
{% endblock %}

View file

@ -0,0 +1,13 @@
{% extends "base.html" %}
{%block titre %}Ajout d'un pad{% endblock %}
{% block content %}
<p><a href="{% url "pads.views.liste_pads" %}">Retour à la liste</a></p>
{% if envoi %}<p>Ce pad a été enregistré.{% endif %}
<form action="{% url 'pads.views.add_pad' %}" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Enregistrer" />
</form>
{% endblock %}

View file

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block titre %}Suppression d'un pad{% endblock %}
{% block content %}<form action="" method="post">
{% csrf_token %}
<p><a href="{% url "pads.views.liste_pads" %}">Retour aux pads</a></p>
<p>Voulez vous vraiment supprimer le pad {{ object }}?</p>
<input type="submit" value="Oui" />
</form>
{% endblock %}

24
templates/pads/liste.html Normal file
View file

@ -0,0 +1,24 @@
{% extends "base.html" %}
{% load getresponse %}
{% block titre %}Liste des pads{% endblock %}
{% block content %}<h1>Liste des pads</h1>
{% if error %}
<p>{{ error }}</p>
{% endif %}
{% if user.profile.is_chef %}
<p><a href="{% url "pads.views.add_pad" %}">Ajouter un pad</a></p>
{% endif %}
<ul class="filelist">
{% for p in pads %}
<li><a class="fichier" href="{{ p.url }}">{{ p.nom }}</a>
{% if user.profile.is_chef %}
<a class="telecharger" href="/pads/edition/{{p.id}}">Modifier</a>
<a class="supprimer" href="/pads/supprimer/{{p.id}}">Supprimer</a>
{% endif %}
</li>
{% empty %}
<p>Pas de pad pour le moment</p>
{% endfor %}
</ul>
{% endblock %}

View file

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

View file

@ -14,5 +14,5 @@
<input type="submit" value="Ajouter"/>
</form>
</p>
<p><a href="{% url 'partitions.views.liste' %}">Retour à la liste</a></p>
{% endblock %}

View file

@ -8,10 +8,11 @@
<p>{{ error }}</p>
{% endif %}
<p>
Le nom du fichier ne doit pas contenir d'accents
<form method ="post" enctype="multipart/form-data" action="{% url 'partitions.views.upload' nom auteur %}">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Enregistrer"/>
<p> <input type="submit" value="Enregistrer"/> </p>
</form>
</p>
<p><a href="{% url "partitions.views.listepart" nom auteur %}">Retour aux partitions</a></p>

View file

@ -10,9 +10,9 @@
<table>
<tr><th></th><th>Oui</th><th>Non</th><th></th><th></th><th></th></tr>
{% for p in props %}
<tr><td>{% if p.lien %}<a href={{p.lien}}>{% endif %}<b>{{ p.nom }}</b>{% if p.artiste %} - {{ p.artiste }}{% endif %}{% if p.lien %}</a>{% endif %}</td>
<tr class="prop"><td>{% if p.lien %}<a href={{p.lien}}>{% endif %}<b>{{ p.nom }}</b>{% if p.artiste %} - {{ p.artiste }}{% endif %}{% if p.lien %}</a>{% endif %}</td>
<td>{{p.nboui }}</td><td>{{ p.nbnon }}</td><td><a href="{% url "propositions.views.repoui" p.id %}">Oui</a></td><td><a href="{% url "propositions.views.repnon" p.id %}">Non</a></td>
{% getresponse request.user.profile p %}<td>{% if p.user == request.user.profile or request.user.profile.is_chef %}<a href=/propositions/{{p.id}}/supprimer/>Supprimer</a>{% endif %}</td></tr>
{% getresponse request.user.profile p %}<td>{% if p.user == request.user.profile or request.user.profile.is_chef %}<a class="supprimer" href=/propositions/{{p.id}}/supprimer/>Supprimer</a>{% endif %}</td></tr>
{% endfor %}
</table>

View file

@ -1,5 +0,0 @@
{% extends "base.html" %}
{% block titre %}Vote pris en compte{% endblock %}
{% block content %}<p>Votre vote a été pris en compte</p>
<p><a href="{% url "propositions.views.liste" %}">Voir la liste des propositions</a></p>{% endblock %}