114 lines
4.7 KiB
HTML
114 lines
4.7 KiB
HTML
|
{% import 'admin/layout.html' as layout with context -%}
|
||
|
{% import 'admin/static.html' as admin_static with context %}
|
||
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>{% block title %}{% if admin_view.category %}{{ admin_view.category }} - {% endif %}{{ admin_view.name }} -
|
||
|
{{ admin_view.admin.name }}{% endblock %}</title>
|
||
|
{% block head_meta %}
|
||
|
<meta charset="UTF-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
|
<meta name="description" content="">
|
||
|
<meta name="author" content="">
|
||
|
{% endblock %}
|
||
|
{% block head_css %}
|
||
|
<!-- Bootstrap CSS -->
|
||
|
<link rel="stylesheet" href="{{ url_for("static", filename="external/bootstrap/4.3.1/css/bootstrap.min.css") }}">
|
||
|
<!-- Select2.js CSS -->
|
||
|
<link rel="stylesheet" href="{{ url_for("static", filename="external/select2/4.0.6/css/select2.min.css") }}">
|
||
|
<!-- Fontawesome -->
|
||
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
|
||
|
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf"
|
||
|
crossorigin="anonymous">
|
||
|
{# Extra css for admin pages #}
|
||
|
{% if admin_view.extra_css %}
|
||
|
{% for css_url in admin_view.extra_css %}
|
||
|
<link href="{{ css_url }}" rel="stylesheet">
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
<!-- Main css for admin pages -->
|
||
|
<link rel="stylesheet" href="{{ url_for('static', filename="admin/css/admin.css") }}">
|
||
|
{% endblock %}
|
||
|
<link rel="icon" href="{{ url_for('static', filename="admin/favicon.ico") }}"/>
|
||
|
{% block head %}
|
||
|
{% endblock %}
|
||
|
{% block head_tail %}
|
||
|
{% endblock %}
|
||
|
</head>
|
||
|
<body>
|
||
|
{% block page_body %}
|
||
|
<nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow">
|
||
|
{% block brand %}
|
||
|
<a class="navbar-brand col-sm-3 col-md-2 mr-0" href="{{ admin_view.admin.url }}">
|
||
|
<img src="{{ url_for('static', filename="admin/favicon.ico") }}" width="30" height="30"
|
||
|
class="d-inline-block align-top" alt="">
|
||
|
{{ admin_view.admin.name }}
|
||
|
</a>
|
||
|
{% endblock %}
|
||
|
<input class="form-control form-control-dark w-100" type="text" placeholder="Rechercher" aria-label="Search">
|
||
|
<ul class="navbar-nav px-3">
|
||
|
<li class="nav-item text-nowrap">
|
||
|
<a class="nav-link" href="{# todo: Disconnect link #}">Déconection</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
<div class="container-fluid">
|
||
|
<div class="row">
|
||
|
<nav class="col-md-2 d-none d-md-block bg-light sidebar">
|
||
|
<div class="sidebar-sticky">
|
||
|
{% block main_menu %}
|
||
|
<ul class="nav flex-column">
|
||
|
{{ layout.menu() }}
|
||
|
</ul>
|
||
|
{% endblock %}
|
||
|
{% block menu_links %}
|
||
|
<ul class="nav navbar-nav navbar-right">
|
||
|
{{ layout.menu_links() }}
|
||
|
</ul>
|
||
|
{% endblock %}
|
||
|
{% block access_control %}
|
||
|
{% endblock %}
|
||
|
</div>
|
||
|
</nav>
|
||
|
{% block messages %}
|
||
|
{{ layout.messages() }}
|
||
|
{% endblock %}
|
||
|
|
||
|
{# store the jinja2 context for form_rules rendering logic #}
|
||
|
{% set render_ctx = h.resolve_ctx() %}
|
||
|
<main class="col-md-9 ml-sm-auto col-lg-10 px-4" role="main">
|
||
|
{% block body %}{% endblock %}
|
||
|
</main>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block tail_js %}
|
||
|
<!-- jQuery - Slim version (=without AJAX) -->
|
||
|
<script src="{{ url_for("static", filename="external/jquery/3.4.0/js/jquery.slim.min.js") }}"></script>
|
||
|
<!-- Popper.JS -->
|
||
|
<script src="{{ url_for("static", filename="external/popper/1.15.0/js/popper.min.js") }}"></script>
|
||
|
<!-- Bootstrap JS -->
|
||
|
<script src="{{ url_for("static", filename="external/bootstrap/4.3.1/js/bootstrap.min.js") }}"></script>
|
||
|
<!-- Moment.js -->
|
||
|
<script src="{{ url_for("static", filename="external/moment/2.24.0/js/moment.min.js") }}"></script>
|
||
|
<!-- Select2.js -->
|
||
|
<script src="{{ url_for("static", filename="external/select2/4.0.6/js/select2.min.js") }}"></script>
|
||
|
|
||
|
|
||
|
{% if admin_view.extra_js %}
|
||
|
{% for js_url in admin_view.extra_js %}
|
||
|
<script src="{{ js_url }}" type="text/javascript"></script>
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block tail %}
|
||
|
{% endblock %}
|
||
|
</body>
|
||
|
</html>
|