2020-10-02 14:34:23 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8" />
|
2020-11-13 17:53:22 +01:00
|
|
|
<title>{% block title %}{{app.session.get("appname")}}{% endblock %}</title>
|
2020-10-02 14:34:23 +02:00
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
|
|
|
<![endif]-->
|
|
|
|
|
|
|
|
|
|
|
|
{{ encore_entry_link_tags('app') }}
|
|
|
|
|
|
|
|
{% block encorelinktags %}
|
|
|
|
|
|
|
|
{% endblock encorelinktags %}
|
|
|
|
|
2020-11-13 17:53:22 +01:00
|
|
|
<link rel="shortcut icon" href="/{{ appAlias }}/uploads/logo/{{app.session.get("logolight")}}" />
|
2020-10-02 14:34:23 +02:00
|
|
|
</head>
|
|
|
|
|
2020-11-13 17:53:22 +01:00
|
|
|
<link href="/{{ appAlias }}/styles/css/font.css" rel="stylesheet" media="screen" />
|
|
|
|
<link href="/{{ appAlias }}/styles/css/style.css" rel="stylesheet" media="screen" />
|
2020-10-02 14:34:23 +02:00
|
|
|
|
|
|
|
<style>
|
|
|
|
{{ include('Include/style.css.twig') }}
|
2020-11-15 17:50:07 +01:00
|
|
|
</style>
|
|
|
|
|
|
|
|
{% if not app.session.get("apptheme") is empty %}
|
|
|
|
<link href="/{{ appAlias }}/themes/{{ app.session.get("apptheme") }}/style.css" rel="stylesheet" media="screen" />
|
|
|
|
{% endif %}
|
2020-10-02 14:34:23 +02:00
|
|
|
|
2020-11-15 17:50:07 +01:00
|
|
|
<style>
|
2020-10-02 14:34:23 +02:00
|
|
|
{% block localstyle %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
</style>
|
|
|
|
|
2020-11-23 13:08:32 +01:00
|
|
|
{{ encore_entry_script_tags('app') }}
|
|
|
|
{% block encorescripttags %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<script>
|
|
|
|
{{ include('Include/javascript.js.twig') }}
|
|
|
|
</script>
|
|
|
|
|
2020-11-15 17:50:07 +01:00
|
|
|
|
2020-11-13 17:53:22 +01:00
|
|
|
{% set class="" %}
|
|
|
|
{% if usemonocolor is defined and usemonocolor %}
|
|
|
|
{% set class="monocolor" %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<body class={{ class }}>
|
2020-10-02 14:34:23 +02:00
|
|
|
{% if useheader is defined and useheader %}
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark fixed-top bg-dark">
|
|
|
|
<a class="navbar-brand" href="{{ path('app_home')}}">
|
2020-11-13 17:53:22 +01:00
|
|
|
<img src="/{{ appAlias }}/uploads/logo/{{app.session.get("logodark")}}" style="height:30px;margin-top:-3px;">
|
|
|
|
{{app.session.get("appname")}}
|
2020-10-02 14:34:23 +02:00
|
|
|
</a>
|
|
|
|
|
|
|
|
{% if usesidebar is defined and usesidebar %}
|
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#sidebar" aria-controls="sidebar" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul class="nav navbar-top-links navbar-right">
|
|
|
|
{% if app.user %}
|
|
|
|
<li>
|
|
|
|
<a href="{{path("app_user_profil")}}">
|
|
|
|
<img src="{{app.user.avatar|urlavatar}}" class="avatar">
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if is_granted('ROLE_ADMIN') %}
|
|
|
|
<li>
|
|
|
|
<a href="{{path("app_admin")}}"><i class="fa fa-cog fa-fw"></i></a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<li>
|
|
|
|
{% if app.user %}
|
2020-11-13 17:53:22 +01:00
|
|
|
{% if appAuth=="SQL" %}
|
2020-10-02 14:34:23 +02:00
|
|
|
<a href="{{path("app_logout")}}"><i class="fa fa-sign-out-alt fa-fw"></i></a>
|
|
|
|
{% elseif appAuth=="CAS" %}
|
|
|
|
<a href="{{path("app_logoutcas")}}"><i class="fa fa-sign-out-alt fa-fw"></i></a>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
2020-11-13 17:53:22 +01:00
|
|
|
{% if appAuth=="SQL" %}
|
2020-10-02 14:34:23 +02:00
|
|
|
<a href="{{path("app_login")}}"><i class="fa fa-sign-in-alt fa-fw"></i></a>
|
|
|
|
{% elseif appAuth=="CAS" %}
|
|
|
|
<a href="{{path("app_logincas")}}"><i class="fa fa-sign-in-alt fa-fw"></i></a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-11-23 13:08:32 +01:00
|
|
|
<main id="main" class="container-fluid {% if maxwidth is defined and maxwidth %} page-maxed {% endif %}">
|
2020-10-02 14:34:23 +02:00
|
|
|
{% set contentsidebar="" %}
|
|
|
|
{% if usesidebar is defined and usesidebar %}
|
|
|
|
{% set contentsidebar="contentsidebar" %}
|
|
|
|
{{ include('Include/sidebar.html.twig') }}
|
|
|
|
{%endif%}
|
|
|
|
|
|
|
|
|
|
|
|
<div id="mycontent" class="content {{contentsidebar}}">
|
|
|
|
{% block body %}
|
|
|
|
{% endblock %}
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<div id="mymodal" class="modal" tabindex="-1" role="dialog">
|
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2020-11-23 13:08:32 +01:00
|
|
|
<h4 class="modal-title"></h4>
|
2020-10-02 14:34:23 +02:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
2020-11-23 13:08:32 +01:00
|
|
|
<iframe frameborder=0 width="100%" height="600px"></iframe>
|
2020-10-02 14:34:23 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-23 13:08:32 +01:00
|
|
|
|
|
|
|
|
2020-11-13 17:53:22 +01:00
|
|
|
<div id="mymodallarge" class="modal fade" tabindex="-1" role="dialog">
|
|
|
|
<div class="modal-dialog modal-xl">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h4 class="modal-title"></h4>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<iframe frameborder=0 width="100%" height="700px"></iframe>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-10-02 14:34:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
{% block localexternalscript %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<script>
|
|
|
|
{% block localjavascript %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
</script>
|
|
|
|
|
2020-11-15 17:50:07 +01:00
|
|
|
{% if not app.session.get("apptheme") is empty %}
|
|
|
|
<script src="/{{ appAlias }}/themes/{{ app.session.get("apptheme") }}/local.js"></script>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-10-02 14:34:23 +02:00
|
|
|
{% if sondeUse %}
|
2020-10-23 15:22:28 +02:00
|
|
|
{{ render(path("app_sonde")) }}
|
2020-10-02 14:34:23 +02:00
|
|
|
{% endif %}
|
|
|
|
</body>
|
|
|
|
</html>
|