This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
compte-agglo-montpellier/compte_agglo_montpellier/templates/base.html

87 lines
3.2 KiB
HTML

{% load menu_tags cms_tags sekizai_tags i18n %}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="content-language" content="fr" />
<title>Compte Citoyen :: Montpellier Agglomération :: {% page_attribute "page_title" %}</title>
<link rel="shortcut icon" href="{{ STATIC_URL }}/themes/django-montpellier/favicon.png">
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}/themes/django-montpellier/style.css">
<link href='https://fonts.googleapis.com/css?family=Lato:400,700,700italic,400italic|Carme|Arvo' rel='stylesheet' type='text/css'>
{% render_block "css" %}
</head>
<body {% block bodyargs %}{% endblock %}>
{% cms_toolbar %}
<div id="page">
<div id="header">
<div id="top">
<a href="/" accesskey="1"><img src="{{ STATIC_URL }}/themes/django-montpellier/logo.png"
title="Montpellier agglomération" /></a>
<div class="region-header">
{% if user.is_authenticated %}
<div id="admin-links">
{% block admin-links %}{% endblock %}
</div>
<div id="logout-block">
<span>{{ user.first_name }} {{ user.last_name }}</span>
<a href="{% url 'logout' %}">{% trans "Logout" %}</a>
</div>
{% endif %}
</div>
</div>
{% block messages %}
{% if messages %}
<div id="messages">
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endblock %}
</div> <!-- header -->
<div id="main-content-wrapper">
{% block title %}{% endblock %}
{% block menu %}
<div id="menu">
<ul>
<li><a href="http://www-test.entrouvert.montpellier-agglo.com">Mon agglo</a></li>
{% show_menu_below_id "top-page" 0 100 100 100 %}
</ul>
</div>
{% endblock %}
<div id="main-content">
<div id="content">
{% block content %}
{% endblock %}
</div> <!-- #content -->
</div> <!-- #main-content -->
</div> <!-- #main-content-wrapper -->
<div id="footer">
<!-- p id="bottom-links">
{% show_menu_below_id "menu-du-bas" %}
{% if request.user.is_staff %}
<a href="/admin">Administration</a>
{% endif %}
</p -->
<p id="legal">Copyright © 2006-2013 Entr'ouvert</p>
</div>
</div>
{% render_block "js" %}
<script>
function toTitleCase(str)
{
return str.replace(/\w\S*/g,
function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
}
$('#commune-selector').live('change',
function () {
var value = $(this).val();
$('#futurs-demarches').toggleClass('selected', value != 'none');
$('#futurs-demarches').text('Ici bientôt les e-services de la commune de ' + toTitleCase(value));
});
</script>
</body>
</html>