2016-02-01 16:35:55 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
2016-07-19 17:03:16 +00:00
|
|
|
<head>
|
|
|
|
{% block head %}
|
|
|
|
<title>{% block title %}{% trans %}Welcome!{% endtrans %}{% endblock %}</title>
|
|
|
|
<link rel="stylesheet" href="{{ static('core/base.css') }}">
|
2016-08-10 03:48:06 +00:00
|
|
|
<link rel="stylesheet" href="{{ static('core/multiple-select.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ static('core/js/ui/jquery-ui.min.css') }}">
|
2016-08-19 21:24:23 +00:00
|
|
|
<link rel="stylesheet" href="{{ static('ajax_select/css/ajax_select.css') }}">
|
2016-08-15 19:04:06 +00:00
|
|
|
<link rel="stylesheet" href="{{ static('core/style.css') }}">
|
2016-07-19 17:03:16 +00:00
|
|
|
{% endblock %}
|
|
|
|
</head>
|
2016-02-01 16:35:55 +00:00
|
|
|
|
2016-07-19 17:03:16 +00:00
|
|
|
<body>
|
2016-08-10 03:48:06 +00:00
|
|
|
{% block header %}
|
2016-08-10 12:48:18 +00:00
|
|
|
{% if not popup %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<div id="logo"><a href="{{ url('core:index') }}"><img src="{{ static('core/img/logo.png') }}"
|
|
|
|
alt="{% trans %}Logo{% endtrans %}" /></a></div>
|
|
|
|
<header>
|
|
|
|
{% if not user.is_authenticated() %}
|
|
|
|
<a href="{{ url('core:login') }}">{% trans %}Login{% endtrans %}</a> |
|
|
|
|
<a href="{{ url('core:register') }}">{% trans %}Register{% endtrans %}</a>
|
|
|
|
{% else %}
|
2016-07-16 14:35:45 +00:00
|
|
|
<a href="{{ url('core:user_profile', user_id=user.id) }}">{{ user.get_display_name() }}</a> |
|
2016-07-19 17:03:16 +00:00
|
|
|
<a href="{{ url('core:user_tools') }}">{% trans %}Tools{% endtrans %}</a> |
|
|
|
|
<a href="{{ url('core:logout') }}">{% trans %}Logout{% endtrans %}</a>
|
2016-08-19 00:53:44 +00:00
|
|
|
<form action="{{ url('core:search') }}" method="GET">
|
2016-08-20 20:12:46 +00:00
|
|
|
<input type="text" placeholder="{% trans %}Search{% endtrans %}" name="query" id="search" />
|
2016-08-19 00:53:44 +00:00
|
|
|
<input type="submit" value="{% trans %}Search{% endtrans %}" style="display: none;" />
|
|
|
|
</form>
|
2016-07-19 17:03:16 +00:00
|
|
|
{% endif %}
|
|
|
|
</header>
|
2016-08-10 12:48:18 +00:00
|
|
|
{% else %}
|
|
|
|
<div id="popupheader">{{ user.get_display_name() }}</div>
|
|
|
|
{% endif %}
|
2016-07-19 17:03:16 +00:00
|
|
|
{% endblock %}
|
2016-08-10 03:48:06 +00:00
|
|
|
{% block nav %}
|
2016-08-10 12:48:18 +00:00
|
|
|
{% if not popup %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<nav>
|
|
|
|
<a href="{{ url('core:user_list') }}">{% trans %}Users{% endtrans %}</a>
|
2016-07-22 00:05:29 +00:00
|
|
|
<a href="{{ url('core:page', page_name="Index") }}">{% trans %}Wiki{% endtrans %}</a>
|
|
|
|
<a href="{{ url('core:page_list') }}">{% trans %}Pages{% endtrans %}</a>
|
2016-07-19 17:03:16 +00:00
|
|
|
<a href="{{ url('club:club_list') }}">{% trans %}Clubs{% endtrans %}</a>
|
2016-08-13 03:33:09 +00:00
|
|
|
<a href="{{ url('core:page', "services") }}">{% trans %}Services{% endtrans %}</a>
|
2016-07-19 17:03:16 +00:00
|
|
|
</nav>
|
2016-08-10 12:48:18 +00:00
|
|
|
{% endif %}
|
2016-08-10 03:48:06 +00:00
|
|
|
{% endblock %}
|
2016-02-01 16:35:55 +00:00
|
|
|
|
2016-07-19 17:03:16 +00:00
|
|
|
<div id="content">
|
|
|
|
{% if error %}
|
2016-02-01 16:35:55 +00:00
|
|
|
{{ error }}
|
2016-07-19 17:03:16 +00:00
|
|
|
{% endif %}
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
2016-02-01 16:35:55 +00:00
|
|
|
|
2016-08-15 19:04:06 +00:00
|
|
|
{% if not popup %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<footer>
|
|
|
|
{% block footer %}
|
|
|
|
{% trans %}Site made by good people{% endtrans %}
|
|
|
|
{% endblock %}
|
|
|
|
</footer>
|
2016-08-15 19:04:06 +00:00
|
|
|
{% endif %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<!--
|
|
|
|
{% block tests %}
|
|
|
|
{{ tests }}
|
|
|
|
{% endblock %}
|
|
|
|
-->
|
2016-08-11 02:24:32 +00:00
|
|
|
{% block script %}
|
2016-08-10 03:48:06 +00:00
|
|
|
<script src="{{ static('core/js/jquery-3.1.0.min.js') }}"></script>
|
|
|
|
<script src="{{ static('core/js/ui/jquery-ui.min.js') }}"></script>
|
2016-08-20 00:55:48 +00:00
|
|
|
<script src="{{ static('core/js/ui/i18n/datepicker-fr.js') }}"></script>
|
2016-08-10 03:48:06 +00:00
|
|
|
<script src="{{ static('core/js/multiple-select.js') }}"></script>
|
2016-08-19 21:24:23 +00:00
|
|
|
<script src="{{ static('ajax_select/js/ajax_select.js') }}"></script>
|
2016-08-10 03:48:06 +00:00
|
|
|
<script src="{{ static('core/js/script.js') }}"></script>
|
|
|
|
<script>
|
2016-08-11 02:24:32 +00:00
|
|
|
$('.select_single').multipleSelect({
|
|
|
|
single: true,
|
|
|
|
{% if not popup %}
|
|
|
|
position: 'top',
|
|
|
|
{% endif %}
|
|
|
|
});
|
|
|
|
$('.select_multiple').multipleSelect({
|
|
|
|
filter: true,
|
|
|
|
{% if not popup %}
|
|
|
|
position: 'top',
|
|
|
|
{% endif %}
|
|
|
|
});
|
2016-08-20 00:55:48 +00:00
|
|
|
$('.select_date').datepicker({
|
|
|
|
changeMonth: true,
|
|
|
|
changeYear: true,
|
|
|
|
dayNamesShort: $.datepicker.regional[ "{{ request.LANGUAGE_CODE }}" ].dayNamesShort,
|
|
|
|
dayNames: $.datepicker.regional[ "{{ request.LANGUAGE_CODE }}" ].dayNames,
|
|
|
|
monthNamesShort: $.datepicker.regional[ "{{ request.LANGUAGE_CODE }}" ].monthNamesShort,
|
|
|
|
monthNames: $.datepicker.regional[ "{{ request.LANGUAGE_CODE }}" ].monthNames,
|
|
|
|
}).datepicker( $.datepicker.regional[ "{{ request.LANGUAGE_CODE }}"] );
|
2016-08-20 20:12:46 +00:00
|
|
|
$(document).keydown(function (e) {
|
|
|
|
if ($(e.target).is('input')) { return }
|
2016-08-22 00:56:27 +00:00
|
|
|
if ($(e.target).is('textarea')) { return }
|
2016-08-20 20:12:46 +00:00
|
|
|
if (e.keyCode == 83) {
|
|
|
|
$("#search").focus();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
2016-08-10 03:48:06 +00:00
|
|
|
</script>
|
2016-08-11 02:24:32 +00:00
|
|
|
{% endblock %}
|
2016-07-19 17:03:16 +00:00
|
|
|
</body>
|
2016-02-01 16:35:55 +00:00
|
|
|
</html>
|