--- /dev/null
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block bodyargs %}{{block.super}} class="regie-home"{% endblock %}
+
+{% block more-user-links %}{% endblock %}
+
+{% block content %}
+<div class="section">
+{% if not request.user.is_authenticated %}
+<form method="post" id="login-form" action="{% url 'auth_login' %}">
+ {% csrf_token %}
+ <label for="id_username">Identifiant : </label>
+ {{ login_form.username }}
+ <label for="id_password">Mot de passe : </label>
+ {{ login_form.password }}
+ <button>Se connecter</button>
+ <input type="hidden" name="next" value="/regie/" />
+ <p><a href="{% url 'auth_password_reset' %}">{% trans "Lost password?" %}</a></p>
+</form>
+{% else %}
+<h3>Bonjour {% firstof request.user.first_name request.user %}
+ <a class="icon-signout" href="{% url 'logout' %}?next=/regie/">Déconnexion</a>
+</h3>
+{% endif %}
+</div>
+
+<div id="clock">
+ <span>{% now "H:i:s" %}</span>
+</div>
+<script>
+function fmt00(t)
+{
+ if (t < 10) {
+ return '0' + t;
+ } else {
+ return '' + t;
+ }
+}
+
+function update_clock()
+{
+ var d = new Date();
+ $('#clock span').html(fmt00(d.getHours()) + ':' + fmt00(d.getMinutes()) + ':' + fmt00(d.getSeconds()));
+}
+
+$(function () {
+ window.setInterval(update_clock, 500);
+});
+</script>
+{% endblock %}
+
+{% block sidebar %}
+<aside id="sidebar">
+
+<div class="block program" data-url="{% url 'nonstop-ajax-program' date='' %}">
+<h3>Au programme</h3>
+<div></div>
+<script>
+$(function() {
+ $('.block.program').each(function() {
+ var url = $(this).data('url');
+ $(this).find('> div').load(url, function() {
+ {% if not perms.emissions.change_emission and website_url %}
+ $(this).find('a').each(function(idx, link) {
+ $(link).attr('href', "{{website_url}}" + $(link).attr('href'));
+ });
+ {% endif %}
+ });
+ });
+});
+</script>
+</div>
+
+</aside>
+{% endblock %}
+