{% extends "base.html" %}

{% block title %}
    <title>[page_title]</title>
{% endblock %}

{% block extra_scripts %}
    [script]
{% endblock %}

{% block awesome_css %}
    <link rel="stylesheet" type="text/css" href="[theme_url]/css/font-awesome.css" />
{% endblock %}

{% block extra_css %}
    <link rel="stylesheet" type="text/css" href="[css]" />
{% endblock %}

{% block bodyargs %}
  [if-any onload] onload="[onload]"[end]
{% endblock %}

{% block personnel %}
    [if-any user]
      <div class="col-sm-16">
		<div class="box box-full account-panel panel panel-default">
			<div class="panel-heading" id="toplinks">
				<span class="logged-in">
					<h4 class="panel-title user fullname">
                        [user.display_name]
               </h4>
				</span>
			</div>
			<div class="panel-body">
				<ul>
				    <li><a class="myaccount" href="[idp_url]/accounts/">Mon compte</a></li>
                    <li><a class="myspace" href="[wcs_url]/myspace/">Mes démarches en cours</a></li>
                    <li><a href="[root_url]">Démarches en ligne</a></li>
                    <li><a class="logout" href="[root_url]logout">D&eacute;connexion</a></li>
                    [is session_user_admin_access "True"]
                        <li><a class="restricted" href="[root_url]admin/">Administration</a></li>
                    [else]
                        [is session_user_backoffice_access "True"]
                             <li><a class="restricted" href="[root_url]backoffice/">Back office</a></li>
                        [end]
                    [end]
                </ul>
             </div>
          </div>
        </div>
          [else]
          <div class="col-sm-16">
		<div class="box box-full account-panel panel panel-default">
			<div class="panel-heading" id="toplinks">
				<span class="logged-in">
					<h4 class="panel-title user fullname">
						Compte citoyen
					</h4>
				</span>
			</div>
			<div class="panel-body">
				<ul>
				    <li><a href="[root_url]login">Connexion</a></li>
				    <li><a href="[idp_url]/accounts/register/">Créer un compte</a></li>
				    <li><a href="[root_url]">Démarches en ligne</a></li>
                    <li><a href="[portal_url]/aide">Aide</a></li>
				</ul>
			</div>
		</div>
	</div>
    [end]
{% endblock %}

{% block content %}
     [if-any bigdiv]
        <ol class="box-breadcrumb breadcrumb">
            <li><a href="[root_url]">Démarches en ligne</a></li>                   
            <li class="active">[title]</li>
        </ol>

    [end]

    [if-any title]<h2>[title]</h2>[end]
    [body]
    [if-any bigdiv]</div>[end]
{% endblock %}

{% block rightcol %}
 [if-any gauche] 
    <div class="col-sm-6 col-md-3 steplist">
        <div class="panel panel-default">
            <div class="panel-body">
            [gauche]
            </div>
        </div>
    </div>
    [else]
    {% include "right-col.html" %}
    [end]
{% endblock %}

{% block dataview %}
 $(function() {
  $('.dataview').before('<a href="#" id="disclose-dataview">Afficher le détail de la demande</a>');
  $('#disclose-dataview').click(
    function() {
      $(this).hide();
      $('.dataview').show();
      return false;
    });
});
{% endblock %}

