57 lines
No EOL
2.3 KiB
HTML
57 lines
No EOL
2.3 KiB
HTML
{% load staticfiles %}
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>{% block title %}ExperiENS{% endblock %}</title>
|
|
<link type="text/css" rel="stylesheet" href="{% static 'style.css' %}" />
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<script type="text/javascript">function showFeedback(show){document.getElementById("feedback_win").style.display=show?"table":"none";}</script>
|
|
{% block extra_head %}{% endblock %}
|
|
</head>
|
|
|
|
<body>
|
|
<header>
|
|
<h1><a href="{% url 'monstage:index' %}">ExperiENS<span class='beta'>beta</span></a></h1>
|
|
|
|
<nav>
|
|
<ul id="menu">
|
|
<li><a href="{% url 'monstage:index' %}">Accueil</a></li>
|
|
{% if user.username %}
|
|
<li><a href="{% url 'monstage:home' %}">Mon expérience</a></li>
|
|
<li><a href="{% url 'monstage:search' %}">Recherche</a></li>
|
|
{% endif %}
|
|
{% if user.is_staff %}
|
|
<li><a href="{% url 'admin:index' %}">Administration</a></li>
|
|
{% endif %}
|
|
{% if user.username %}<li><a href="{% url 'logout' %}"><span class="username">{{ user.username }}</span><br/> Déconnexion</a></li>
|
|
{% else %}<li><a href="{% url 'login' %}">Connexion</a></li>{% endif %}
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
{% if user.username %}
|
|
<div id="feedback_win" class="win_bg">
|
|
<div class="win_centrer">
|
|
<div class="win_content">
|
|
<h2>Envoyer un avis sur le site<a class="win_close" href="javascript:showFeedback(false)">X</a></h2>
|
|
<form method="POST" action="{% url 'monstage:send_feedback' %}?next={{ request.path|urlencode }}">
|
|
{% csrf_token %}
|
|
<p>Connecté en tant que {{ user.profil }}</p>
|
|
<p><label for="id_feedback-message">Commentaire :</label><textarea name="feedback-message" id="id_feedback-message"></textarea></p>
|
|
<input type="submit" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a id="feedback_btn" href="javascript:showFeedback(true)">
|
|
Feedback
|
|
</a>
|
|
{% endif %}
|
|
|
|
<div id="content">
|
|
{% if request.GET.feedback_sent %}<p class="success">Merci pour votre message !</p>{% endif %}
|
|
{% if request.GET.feedback_error %}<p class="failure">Erreur lors de l'envoi du message.</p>{% endif %}
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</body>
|
|
</html> |