templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>
  6.         {% block title %}Kursimple - so einfach.
  7.         {% endblock %}
  8.     </title>
  9.     <script>
  10.         (function () {
  11.             "use strict";
  12.             var c = [],
  13.                 f = {},
  14.                 a,
  15.                 e,
  16.                 d,
  17.                 b;
  18.             if (!window.jQuery) {
  19.                 a = function (g) {
  20.                     c.push(g)
  21.                 };
  22.                 f.ready = function (g) {
  23.                     a(g)
  24.                 };
  25.                 e = window.jQuery = window.$ = function (g) {
  26.                     if (typeof g == "function") {
  27.                         a(g)
  28.                     }
  29.                     return f
  30.                 };
  31.                 window.checkJQ = function () {
  32.                     if (!d()) {
  33.                         b = setTimeout(checkJQ, 100)
  34.                     }
  35.                 };
  36.                 b = setTimeout(checkJQ, 100);
  37.                 d = function () {
  38.                     if (window.jQuery !== e) {
  39.                         clearTimeout(b);
  40.                         var g = c.shift();
  41.                         while (g) {
  42.                             jQuery(g);
  43.                             g = c.shift()
  44.                         }
  45.                         b = f = a = e = d = window.checkJQ = null;
  46.                         return true
  47.                     }
  48.                     return false
  49.                 }
  50.             }
  51.         })();
  52.     </script>
  53.     {% block stylesheets %}
  54.     {{ encore_entry_link_tags('app') }}
  55.     {% endblock %}
  56.     <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  57.     <!-- Generic page styles -->
  58.     <style>
  59.       #navigation {
  60.         margin: 10px 0;
  61.       }
  62.       @media (max-width: 767px) {
  63.         #title,
  64.         #description {
  65.           display: none;
  66.         }
  67.       }
  68.     </style>
  69.     <!-- Filepond stylesheet -->
  70.     <link href="{{ asset("css/filepond-plugin-image-preview.css") }}" rel="stylesheet"/>
  71.     <link href="{{ asset("css/filepond-plugin-image-edit.css") }}" rel="stylesheet" />
  72.       <link href="{{ asset("css/filepond.css") }}" rel="stylesheet">
  73. </head>
  74. <body>
  75.     <div class="container-fluid h-100">
  76.         <div class="row bg-dark page-header">
  77.             <div class="col-sm-3">
  78.                 <span>{{ app.user.username }}</span>
  79.             </div>
  80.             <div class="col-sm-2">
  81.                 <a href="{{ path('user_logout') }}">abmelden</a>
  82.             </div>
  83.             <div class="col-sm-7">
  84.                 {% if 'ROLE_ADMIN' in app.user.roles or 'ROLE_MANAGER' in app.user.roles %}
  85.                 <form id="search-form" action="{{ path('search_index') }}" method="post">
  86.                     <div class="single-line-submit">
  87.                         <input type="text" name="search" maxlength="255" class="form-control">
  88.                         <button class="btn btn-secondary">Suchen</button>
  89.                     </div>
  90.                 </form>
  91.                 {% endif %}
  92.             </div>
  93.         </div>
  94.         <div class="row justify-content-center h-100">
  95.             <div class="col-sm-2 navbar-left">
  96.                 {{ knp_menu_render('main', {'template': 'menu/main_menu.html.twig'}) }}
  97.             </div>
  98.             <div class="col-sm-10">
  99.                 <div class="main-content mt-4 pb-4">
  100.                     {% block flash_messages %}
  101.                     {% for flash_message in app.session.flashBag.get('notice') %}
  102.                     <div class="alert alert-success alert-dismissible" role="alert">
  103.                         {{ flash_message }}
  104.                         <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  105.                             <span aria-hidden="true">&times;</span>
  106.                         </button>
  107.                     </div>
  108.                     {% endfor %}
  109.                     {% for flash_message in app.session.flashBag.get('error') %}
  110.                     <div class="alert alert-danger alert-dismissible" role="alert">
  111.                         {{ flash_message }}
  112.                         <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  113.                             <span aria-hidden="true">&times;</span>
  114.                         </button>
  115.                     </div>
  116.                     {% endfor %}
  117.                     {% for flash_message in app.session.flashBag.get('warning') %}
  118.                     <div class="alert alert-warning alert-dismissible" role="alert">
  119.                         {{ flash_message }}
  120.                         <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  121.                             <span aria-hidden="true">&times;</span>
  122.                         </button>
  123.                     </div>
  124.                     {% endfor %}
  125.                     {% endblock %}
  126.                     {% block body %}{% endblock %}
  127.                 </div>
  128.             </div>
  129.         </div>
  130.     </div>
  131.     {% block modal %}{% endblock %}
  132.     {% block emailSenderModal %}
  133.     <div class="modal fade" id="emailSenderModal" tabindex="-1" role="dialog" aria-labelledby="emailSenderModalLabel"
  134.         aria-hidden="true">
  135.         <div class="modal-dialog modal-lg" role="document">
  136.             <div class="modal-content"></div>
  137.         </div>
  138.     </div>
  139.     {% endblock %}
  140.     {% block javascripts %}
  141.     {{ encore_entry_script_tags('app') }}
  142.     {% endblock %}
  143.     <!-- Load FilePond library -->
  144.     <script src="{{ asset("js/filepond-plugin-image-edit.js") }}"></script>
  145.     <script src="{{ asset("js/filepond-plugin-file-validate-size.js") }}"></script>
  146.     <script src="{{ asset("js/filepond-plugin-image-validate-size.js") }}"></script>
  147.     <script src="{{ asset("js/filepond-plugin-image-exif-orientation.js") }}"></script>
  148.     <script src="{{ asset("js/filepond-plugin-image-preview.js") }}"></script>
  149.     <script src="{{ asset("js/filepond.js") }}"></script>
  150.     <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css" type="text/css" />
  151.     <script src="https://cdnjs.cloudflare.com/ajax/libs/TableDnD/0.9.1/jquery.tablednd.js" integrity="sha256-d3rtug+Hg1GZPB7Y/yTcRixO/wlI78+2m08tosoRn7A=" crossorigin="anonymous"></script>
  152.     <!-- Heigh for ckeditor. -->
  153.     <style>
  154.         .ck-editor__editable_inline {
  155.             max-height: 25vh;
  156.         }
  157.     </style>
  158. </body>
  159. </html>