templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1">
  6.     <title>
  7.         {% block title %}
  8.             In The Traveler's Pocket
  9.         {% endblock %}
  10.     </title>
  11.     <link rel="icon" type="image/x-icon" href="{{ asset('static/img/ittp-logo.png') }}">
  12.     {% block styles %}
  13.         <!-- Google Font: Source Sans Pro -->
  14.         <link rel="stylesheet"
  15.               href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  16.         <!-- Font Awesome Icons -->
  17.         <link rel="stylesheet" href="{{ asset('template/plugins/fontawesome-free/css/all.min.css') }}">
  18.         <!-- IonIcons -->
  19.         <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  20.         <!-- Theme style -->
  21.         <link rel="stylesheet" href="{{ asset('template/dist/css/adminlte.min.css') }}">
  22.         {{ encore_entry_link_tags('common') }}
  23.         {{ encore_entry_link_tags('footer') }}
  24.         {{ encore_entry_link_tags('header') }}
  25.     {% endblock %}
  26.     {% block css %}
  27.     {% endblock %}
  28. </head>
  29. <!--
  30. `body` tag options:
  31.   Apply one or more of the following classes to to the body tag
  32.   to get the desired effect
  33.   * sidebar-collapse
  34.   * sidebar-mini
  35. -->
  36. <body class="{% block body_class %}hold-transition sidebar-mini{% endblock %}">
  37. {% block body %}
  38.     <div class="wrapper">
  39.         {% block loader %}
  40.             <div id="spinner">
  41.                 <img src="{{ asset('spinner.gif') }}">
  42.             </div>
  43.         {% endblock %}
  44.         <!-- Navbar -->
  45.         <nav class="main-header navbar navbar-expand navbar-white navbar-light">
  46.             <!-- Left navbar links -->
  47.             {% block navbar %}
  48.                 {{ render(controller(
  49.                     'App\\Controller\\IndexController::topbar'
  50.                 )) }}
  51.                 {#                {% include 'structure/_topbar.html.twig' %} #}
  52.             {% endblock %}
  53.         </nav>
  54.         <!-- /.navbar -->
  55.         {% block sidebar %}
  56.             <!-- Main Sidebar Container -->
  57.             {{ render(controller(
  58.                 'App\\Controller\\IndexController::sidebar'
  59.             )) }}
  60.         {% endblock %}
  61.         <!-- Content Wrapper. Contains page content -->
  62.         {% block content_wrapper %}
  63.             <div class="content-wrapper">
  64.                 <!-- Content Header (Page header) -->
  65.                 <div class="content-header">
  66.                     <div class="container-fluid">
  67.                         <div class="row mb-2">
  68.                             <div class="col-sm-6">
  69.                                 <h1 class="m-0">{% block content_title %}Dashboard{% endblock %}</h1>
  70.                             </div><!-- /.col -->
  71.                         </div><!-- /.row -->
  72.                     </div><!-- /.container-fluid -->
  73.                 </div>
  74.                 <!-- /.content-header -->
  75.                 <!-- Main content -->
  76.                 <div class="content">
  77.                     {% for flash_message in app.session.flashbag.get('success') %}
  78.                         <div class="flash-notice">
  79.                             <div class="alert alert-success alert-dismissible">
  80.                                 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">
  81.                                     &times;
  82.                                 </button>
  83.                                 <h5><i class="icon fas fa-check"></i> {{ 'app.enterprise.success' | trans }}</h5>
  84.                                 {{ flash_message }}
  85.                             </div>
  86.                         </div>
  87.                     {% endfor %}
  88.                     {% for flash_message in app.session.flashbag.get('error') %}
  89.                         <div class="flash-notice">
  90.                             <div class="alert alert-danger alert-dismissible">
  91.                                 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">
  92.                                     &times;
  93.                                 </button>
  94.                                 <h5><i class="icon fas fa-ban"></i> {{ 'app.enterprise.error' | trans }}</h5>
  95.                                 {{ flash_message }}
  96.                             </div>
  97.                         </div>
  98.                     {% endfor %}
  99.                     {% for flash_message in app.session.flashbag.get('warning') %}
  100.                         <div class="flash-notice">
  101.                             <div class="alert alert-warning alert-dismissible">
  102.                                 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">
  103.                                     &times;
  104.                                 </button>
  105.                                 <h5><i class="icon fas fa-ban"></i> {{ 'app.enterprise.error' | trans }}</h5>
  106.                                 {{ flash_message }}
  107.                             </div>
  108.                         </div>
  109.                     {% endfor %}
  110.                     {% block content %}
  111.                     {% endblock %}
  112.                 </div>
  113.                 <!-- /.content -->
  114.             </div>
  115.         {% endblock %}
  116.         <!-- /.content-wrapper -->
  117.         <!-- Control Sidebar -->
  118.         <aside class="control-sidebar control-sidebar-dark">
  119.             <!-- Control sidebar content goes here -->
  120.         </aside>
  121.         <!-- /.control-sidebar -->
  122.         {% block footer %}
  123.             {{ render(controller(
  124.                 'App\\Controller\\IndexController::footer'
  125.             )) }}
  126.         {% endblock %}
  127.     </div>
  128.     <!-- ./wrapper -->
  129.     <!-- REQUIRED SCRIPTS -->
  130. {% block javascripts %}
  131.     <!-- jQuery -->
  132.     <script src="{{ asset('template/plugins/jquery/jquery.min.js') }}"></script>
  133.     <!-- Bootstrap -->
  134.     <script src="{{ asset('template/plugins/bootstrap/js/bootstrap.bundle.js') }}"></script>
  135.     <!-- AdminLTE -->
  136.     <script src="{{ asset('template/dist/js/adminlte.js') }}"></script>
  137.     {{ encore_entry_script_tags('common') }}
  138.     {{ encore_entry_script_tags('footer') }}
  139.     {{ encore_entry_script_tags('header') }}
  140. {% endblock javascripts %}
  141.     {% block js %}
  142.     {% endblock js %}
  143. {% endblock body %}
  144. </body>
  145. </html>