summaryrefslogtreecommitdiffstats
path: root/templates/combo/page_template.html
blob: 1c90b73394fc93433796afdb9d12d9583b7b8640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{% extends "theme.html" %}
{% load static i18n combo gadjo %}

{% block extra_css %}
<link rel="stylesheet" type="text/css" href="{{site_base}}{% static "combo.style.css" %}" >
{% endblock %}

{% block title %}{{ site_title }}{% endblock %}

{% block extra_top_head %}
{% skeleton_extra_placeholder extra-top-head %}
{% end_skeleton_extra_placeholder %}
{% endblock %}

{% block extra_scripts %}
<script src="{{site_base}}{% xstatic 'jquery' 'jquery.min.js' %}"></script>
<script src="{{site_base}}{% static 'js/combo.public.js' %}"></script>
{% skeleton_extra_placeholder extra-head %}
{% end_skeleton_extra_placeholder %}
{% endblock %}

{% block bodyattrs %}
data-api-root="{{ site_base }}/api/"
{% if check_badges %}data-check-badges="true"{% endif %}
{% skeleton_extra_placeholder extra-body-args %}
{% end_skeleton_extra_placeholder %}
{% endblock %}

{% block bodyclasses %}
page-{{ page.slug }} {% if pages %}section-{{pages.0.slug}}{% endif %}
{% skeleton_extra_placeholder extra-body-class %}
{% end_skeleton_extra_placeholder %}
{% endblock %}

{% block menu %}
{% show_menu %}
{% placeholder "menu_right" %}
{% endblock %}

{% block messages %}
{{ block.super }}
{% placeholder "messages" %}
{% endblock %}

{% block content %}
  <ol class="box-breadcrumb breadcrumb">
    {% for one_page in pages %}
      {% if not forloop.last %}
      <li><a href="{{one_page.get_online_url}}">{{one_page.title}}</a></li>
      {% else %}
      <li class="active">{{one_page.title}}</li>
      {% endif %}
    {% endfor %}
  </ol>
  {% block combo-content %}
    {% block page-content %}
      {% placeholder "content" %}
    {% endblock %}
  {% endblock %}
{% endblock %}

{% block footer %}
  {% placeholder "footer" %}
{% endblock %}

{% block user-name %}
{% if user.is_authenticated %}{{user.get_full_name}}{% else %}Compte Citoyen{% endif %}
{% endblock %}

{% block user-info %}
          {% if user.is_authenticated %}
          <span class="logged-in">
            <span class="connected-user">{{user.first_name}} {{user.last_name}}</span>
            <a class="logout" href="{% url 'auth_logout' %}">D&eacute;connexion</a>
          </span>
          {% endif %}
{% skeleton_extra_placeholder user-info %}
{% end_skeleton_extra_placeholder %}
{% endblock %}

{% block left-menu-links %}
    {% if request.user.is_authenticated %}
				    <li><a href="{{ idp_url }}accounts/">Mon compte</a></li>
				    <li><a href="{{ portal_url }}demarches-en-cours/">Mes démarches en cours</a></li>
				    <li><a href="{{ portal_url }}">Démarches en ligne</a></li>
				    <li><a href="{% url 'auth_logout' %}">Déconnexion</a></li>
	{% else %}
				    <li><a href="{{ portal_url }}login/">Connexion</a></li>
				    <li><a href="{{ idp_url }}accounts/register/">Créer un compte</a></li>
				    <li><a href="{{ portal_url }}">Démarches en ligne</a></li>
				    <li><a href="{{ portal_url }}aide/">Aide</a></li>
	{% endif %}
{% endblock %}