{% extends "base.html" %}
{% load i18n %}
{% load url from future %}
{% load docbow %}

{% block content %}
<div class="container_12">
<div id="header" class="grid_12">
	{% block header %}
	<h1>{% trans "site_title" %}</h1>
	<p id="top-infos">
	{% if user.delegate %}
	  {{ user.delegate.get_full_name }} (délégation de {{ user.get_full_name }}){% else %}
	  {{ user.get_full_name }}{% endif %}<br/>
	<a href="{% url 'logout' %}">{% trans "Logout" %}</a>
	</p>
	{% endblock %}
</div>

{% if messages %}
<ul class="messages">
    {% for message in messages %}
    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
    {% endfor %}
</ul>
<script type="text/javascript">
$('.messages').delay(3000*(1+{{ messages|length }})).fadeOut('slow');
</script>
{% endif %}

<div class="clear"></div>
<div id="left-column" class="grid_3">
	{% block left-column %}
	<h3 id="welcome"></h3>
	{% menu %}
	{% endblock %}
</div>
<div id="main-column" class="grid_9">
{% block main-column %}{% endblock %}
</div>
</div>

{% endblock %}
