Jusqu'à présent

This commit is contained in:
R1kM 2015-03-17 19:03:51 +01:00
parent 0efdab977d
commit 0b934c51b1
93 changed files with 10455 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{% load static %}
{% load urls_extra %}
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<title>{% block titre %}{% endblock %}</title>
<link rel="stylesheet" href={% static 'css/bootstrap.css' %} />
<link rel="stylesheet" href={% static 'css/main.css' %} />
{% block extrahead %}{% endblock %}
</head>
<body>
<header>
{% block header %}
<ul id="menu">
{% if user.is_authenticated %}
<li>Vous êtes connecté en tant que {{user.username }}</li>
<li><a href = '/logout/'>Déconnexion</a></li>
{% if user.profile.is_chef %}
<li><a href = '/admin/'>Administration</a></li>
{% endif %}
{% else %}
<li><a href='/login/'>Connexion</a></li>
<li><a href='/registration/'>Créer un compte</a></li>
{% endif %}
<li><a href="{% url "partitions.views.liste" %}">Partitions</a></li>
</ul>
{% endblock %}</header>
{% block content %}
{% endblock %}
</body>
</html>

View file

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block titre %}L'Ernestophone{% endblock %}
{% block content %}<h1>L'Ernestophone, la fanfare de l'École normale supérieure</h1>
{% endblock %}

View file

@ -0,0 +1,24 @@
{% extends "base.html" %}
{% block titre %}Connexion{% endblock %}
{% block content %}
<h1>Connexion</h1>
{% if form.errors %}
<p>Mot de passe ou nom d'utilisateur incorrect</p>
{% endif %}
<form method="post" action="{% url 'gestion.views.login' %}">
{% csrf_token %}
<table>
<tr>
<td>{{ form.username }}</td>
</tr>
<tr>
<td>{{ form.password }}</td>
</tr>
</table>
<input type="submit" value="Connexion" />
{% if next %}
<input type="hidden" name="next" value={{ next }} />
{% else %}
<input type="hidden" name="next" value="/" />
{% endif %}
{% endblock %}

View file

@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block titre %}L'Ernestophone - Inscription{% endblock %}
{% block content %}
<h2>Inscription d'un nouvel Ernestophoniste</h2>
<form action="{% url 'gestion.views.inscription_membre' %}" method="post">
{% csrf_token %}
{{ user_form.as_p }}
{{ comp_form.as_p }}
<input type="submit" value="Valider l'inscription" />
</form>
{% endblock %}

View file

@ -0,0 +1,3 @@
{% extends "base.html" %}
{% block titre %}L'Ernestophone - Inscription{% endblock %}
{% block content %}<p> Merci pour votre inscription. Votre compte sera bientôt activé par un-e chef-fe fanfare</p>{% endblock %}

View file

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block titre %}Confirmation de suppression{% endblock %}
{% block content %}<h1>Confirmation de suppression</h1>
<p>Voulez-vous vraiment supprimer cette partition ?</p>
<p><a href="{% url "partitions.views.delete" nom auteur id %}">Oui</a></p>
<p><a href="{% url "partitions.views.listepart" nom auteur %}">Retour à la liste des partitions</a></p>
{% endblock %}

View file

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block titre %}Confirmation de suppression{% endblock %}
{% block content %}<h1>Confirmation de suppression</h1>
<p>Voulez-vous vraiment supprimer {{ nom }}-{{ auteur }} et toutes les partitions qu'il contient ?</p>
<p><a href="{% url "partitions.views.delete_morc" nom auteur %}">Oui</a></p>
<p><a href="{% url "partitions.views.liste" %}">Retour à la liste des partitions</a></p>
{% endblock %}

View file

@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block titre %}Liste des partitions{% endblock %}
{% block content %}<h1>Liste des partitions</h1>
{% if suppression %}
<p>{{ suppression }}</p
{% endif %}
<h3><a href="{% url "partitions.views.ajouter_morceau" %}">Ajouter un morceau</a></h3>
{% for part in partitions %}
{% if not user.is_authenticated %}
<p>{{ part.nom }} - {{ part.auteur }}</p>
{% endif %}
{% if user.is_authenticated %}
<p><a href="{% url "partitions.views.listepart" part.nom part.auteur %}">{{ part.nom }} - {{ part.auteur }}</a></p>
{% endif %}
{% if user.profile.is_chef %}
<p><a href="{% url "partitions.views.conf_delete_morc" part.nom part.auteur %}">Supprimer</a></p>
{% endif %}
{% endfor %}
{% endblock %}

View file

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% load urls_extra %}
{% block titre %}{{ nom }}-{{ auteur }}{% endblock %}
{% block content %}
<h1>{{ p.nom }} - {{ p.auteur }}</h1>
{% if suppression %}
<p>{{ suppression }}</p>
{% endif %}
{% for p in part %}
<p>{{ p.nom }} {% if user.is_authenticated %}<a href="{% url "partitions.views.download" nom auteur p.part.url|cuturl %}">Télécharger</a>{% endif %} </p>
{% if user.profile.is_chef %}
<p><a href="{% url "partitions.views.conf_delete" nom auteur p.pk %}">Supprimer</a> </p>
{% endif %}
{% empty %}
<p> Pas de partitions pour le moment </p>
{% endfor %}
<p><a href="{% url "partitions.views.upload" p.nom p.auteur %}">Ajouter une partition</a></p>
{% endblock %}

View file

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block titre %}Ajouter un morceau{% endblock %}
{% block content %}<h1>Ajouter un morceau</h1>
{% if sauvegarde %}
<p>Morceau créé</p>
{% endif %}
{% if error %}
<p> {{ error }}</p>
{% endif %}
<p>
<form method="post" action="{% url 'partitions.views.ajouter_morceau' %}">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Ajouter"/>
</form>
</p>
{% endblock %}

View file

@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block titre %}Ajouter une partition{% endblock %}
{% block content %}<h1>Ajouter une partition</h1>
{% if sauvegarde %}
<p>Partition enregistrée</p>
{% endif %}
{% if error %}
<p>{{ error }}</p>
{% endif %}
<p>
<form method ="post" enctype="multipart/form-data" action="{% url 'partitions.views.upload' nom auteur %}">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Enregistrer"/>
</form>
</p>
<p><a href="{% url "partitions.views.listepart" nom auteur %}">Retour aux partitions</a></p>
{% endblock %}