templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="UTF-8"/>
  5.     <title>{% block title %}Welcome!{% endblock %}</title>
  6. {#    <link rel="stylesheet" href="{{ asset('vendor/bootstrap/dist/css/bootstrap.min.css') }}">#}
  7. {#    <link rel="stylesheet" href="{{ asset('vendor/flag-icon-css/css/flag-icon.min.css') }}">#}
  8.     {% block stylesheets %}
  9.         {{ encore_entry_link_tags('app') }}
  10. {#        <link rel="stylesheet" href="{{ asset('css/font.css') }}">#}
  11. {#        <link rel="stylesheet" href="{{ asset('css/base.css') }}">#}
  12.     {% endblock %}
  13.     <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}"/>
  14.     <meta name="viewport" content="width=device-width, initial-scale=1">
  15.     <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  16.     <link rel="icon" type="image/png" href="{{ asset('favicon-32x32.png') }}" sizes="32x32">
  17.     <link rel="icon" type="image/png" href="{{ asset('favicon-16x16.png') }}" sizes="16x16">
  18.     <link rel="manifest" href="{{ asset('manifest.json') }}">
  19.     <link rel="mask-icon" href="{{ asset('safari-pinned-tab.svg') }}">
  20.     <meta name="theme-color" content="#ffffff">
  21. {#    <script src="{{ asset('vendor/jquery/dist/jquery.min.js') }}"></script>#}
  22. </head>
  23. <body class="{{ app.user.roles|default([])|join(' ')|lower }}">
  24. <header>
  25.     <div class="head-bg">
  26.         <img class="logo" alt="prothelis - protecting life"
  27.              src="{{ asset('img/layout/prothelis_logo_claim-1x.png') }}"
  28.              srcset="{{ asset('img/layout/prothelis_logo_claim-1x.png') }} 1x, {{ asset('img/layout/prothelis_logo_claim-2x.png') }} 2x">
  29.         <nav class="menu-wrapper">
  30.         {% if blank|default(false) != true %}
  31.             <a href="{{ path('user_account') }}" class="link-white">{{ 'account.customer'|trans }}</a>
  32.             {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_SUPPORT') %} &nbsp;&nbsp;|&nbsp;&nbsp; <a href="/account/{{ app.request.attributes.get('_locale') }}/admin" class="link-white">Admin</a>{% endif %}
  33.             {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_SUPPORT') %} &nbsp;&nbsp;|&nbsp;&nbsp; <a href="/account/{{ app.request.attributes.get('_locale') }}/admin/trackerdetail" class="link-white">Tracker</a>{% endif %}
  34.             {% if is_granted('ROLE_TECHGUY') or is_granted('ROLE_SUPPORT') %} &nbsp;&nbsp;|&nbsp;&nbsp; <a href="{{ path('tech_root') }}" class="link-white">Tech Data</a>{% endif %}
  35.             {% if is_granted('ROLE_RENTING_PARTNER') %} &nbsp;&nbsp;|&nbsp;&nbsp; <a href="{{ path('renting_dashboard') }}" class="link-white">Renting</a>{% endif %}
  36.             &nbsp;&nbsp;|&nbsp;&nbsp;
  37.         {% endif %}
  38.             <span class="dropdown" style="top: 3px;">
  39.                 {% for locale in locales %}
  40.                     {% if app.request.attributes.get('_locale') == locale.id %}
  41.                         <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="flag-18 flag-icon-background flag-icon-{{ locale.flag }}"></span></a>
  42.                     {% endif %}
  43.                 {% endfor %}
  44.                 <ul class="dropdown-menu">
  45.                     {% for locale in locales %}
  46.                         <li {% if locale.id == app.request.attributes.get('_locale') %}class="active"{% endif %}>
  47.                             {% if locale.id == app.request.attributes.get('_locale') %}
  48.                                 <a><span class="flag-18 flag-icon-background flag-icon-{{ locale.flag }}"></span> {{ locale.name }}</a>
  49.                             {% else %}
  50.                                 <a href="{{ path(app.request.get('_route'), app.request.get('_route_params')|merge({ '_locale': locale.id })) }}" class="language" rel="{{ locale.id }}"><span class="flag-18 flag-icon-background flag-icon-{{ locale.flag }}"></span> {{ locale.name }}</a>
  51.                             {% endif %}
  52.                         </li>
  53.                     {% endfor %}
  54.                 </ul>
  55.             </span>
  56.         </nav>
  57.     </div>
  58. </header>
  59. <section class="container">
  60.     <section class="row">
  61.         <article class="col col-md-10 col-md-offset-1">
  62.             {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  63. {#            <div class="alert alert-success">#}
  64. {#                <p style="width: 100%; text-align: right;">05.07.2021</p>#}
  65. {#                <br />#}
  66. {#                 <strong>Geplante Wartungsarbeiten am 09.02.2023</strong><br />
  67.                 Am Donnerstag, dem 09.02.2023, erwartet Sie eine kurze Unterbrechung unseres Services. Ab 15 Uhr werden wir unser System aktualisieren, um Ihnen weiterhin eine optimale Funktionalität und Sicherheit zu gewährleisten. Die Prothelis App und die my-prothelis.de Webseite werden für etwa 2 Stunden nicht verfügbar sein. Auch die Tracker werden in dieser Zeit nicht funktionieren. Bitte haben Sie Verständnis für die kurze Unterbrechung, wir arbeiten hart daran, Ihnen ein besseres Erlebnis zu bieten.
  68.                 <br /><br />
  69.                 <strong>Planned maintenance work on 09.02.2023</strong><br />
  70.                 On Thursday, 09.02.2023, you can expect a short interruption of service. Starting at 3pm (CET), we will update our system to continue to provide you with optimal functionality and security. The Prothelis App and the my-prothelis.de website will be unavailable for approximately 2 hours. The trackers will also not work during this time. Please understand the short interruption, we are working hard to provide you with a better experience.
  71. #}
  72. {#            </div>#}
  73.             {% endif %}
  74.             {% for msg in app.session.flashBag.get('success') %}
  75.                 <div class="alert alert-success">
  76.                     {{ msg|trans|raw }}
  77.                 </div>
  78.             {% endfor %}
  79.             {% for msg in app.session.flashBag.get('warning') %}
  80.                 <div class="alert alert-warning">
  81.                     {{ msg|trans|raw }}
  82.                 </div>
  83.             {% endfor %}
  84.             {% for msg in app.session.flashBag.get('error') %}
  85.                 <div class="alert alert-danger">
  86.                     {{ msg|trans|raw }}
  87.                 </div>
  88.             {% endfor %}
  89.         </article>
  90.     </section>
  91.     <section class="row">
  92.         <article class="col col-md-12 col-md-offset-0">
  93.             {% for msg in app.session.flashBag.get('success_renting') %}
  94.                 <div class="alert alert-success">
  95.                     {{ msg|trans|raw }}
  96.                 </div>
  97.             {% endfor %}
  98.             {% for msg in app.session.flashBag.get('error') %}
  99.                 <div class="alert alert-danger">
  100.                     {{ msg|trans|raw }}
  101.                 </div>
  102.             {% endfor %}
  103.         </article>
  104.     </section>
  105. </section>
  106. <section style="clear:both; height: 100%; padding-bottom:180px;">
  107.     {% block body %}{% endblock %}
  108. </section>
  109. <footer class="foot-bg">
  110.     <div class="footer-wrapper">
  111.         {% if app.user %}<a href="{{ path('security_logout') }}" class="menuitem">{{ 'misc.logout'|trans }}</a>
  112.             {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  113.                 | <a href="{{ path('user_account', {'_switch_user': '_exit'}) }}" class="menuitem">Exit impersonation</a>
  114.             {% endif %}
  115.             <br />{% endif %}
  116.         <a href="{{ path('service_tos') }}" class="menuitem">{{ 'misc.tos'|trans }}</a>&nbsp;&nbsp;|&nbsp;
  117.         <a href="{{ path('service_privacy') }}" class="menuitem">{{ 'misc.privacy'|trans }}</a>&nbsp;&nbsp;|&nbsp;
  118.         <a href="{{ path('service_legal') }}" class="menuitem">{{ 'misc.legal'|trans }}</a>
  119.     </div>
  120. </footer>
  121. {% block javascripts %}
  122.     {#<script src="{{ asset('vendor/jquery/dist/jquery.min.js') }}"></script>#}
  123. {#    <script src="{{ asset('vendor/bootstrap/dist/js/bootstrap.min.js') }}"></script>#}
  124.     {{ encore_entry_script_tags('app') }}
  125. {#    <script src="{{ asset('js/base.js') }}"></script>#}
  126. {% endblock %}
  127. {% if app.environment == 'prod' %}
  128.     {% include 'elements/google_analytics.html.twig' %}
  129. {% endif %}
  130. </body>
  131. </html>