templates/base.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'messages' %}
  2. <!DOCTYPE html>
  3. <html>
  4.     <head>
  5.         <meta charset="UTF-8">
  6.         <title>{{ app_name }} {% block title %}{% endblock %}</title>
  7.         <link rel="icon" href="{{ asset('assets/images/logo.png') }}" />
  8.         <link href="{{ asset('assets/css/adminlte.min.css') }}" rel="stylesheet" />
  9.         {{ encore_entry_link_tags('app') }}
  10.         <link href="{{ asset('assets/css/regular.min.css') }}" rel="stylesheet" />
  11.         <link href="{{ asset('assets/css/solid.min.css') }}" rel="stylesheet" />
  12.         <link href="{{ asset('assets/css/fontawesome.min.css') }}" rel="stylesheet" />
  13.         <link href="{{ asset('assets/css/toastr.css') }}" rel="stylesheet" />
  14.         <link href="{{ asset('assets/css/design.css') }}" rel="stylesheet" />
  15.         {% block stylesheets %}{% endblock %}
  16.     </head>
  17.     <body>
  18.         {% include 'partials/_navbar.html.twig' %}
  19.         <div class="container-fluid mt-5">
  20.             {% block body %}{% endblock %}
  21.         </div>
  22.         <script src="{{ asset('assets/js/jquery.min.js') }}"></script>
  23.         <script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
  24.         {% if app.user %}
  25.             <script src="{{ asset('assets/js/moment.min.js') }}"></script>
  26.             <script src="{{ asset('assets/js/toastr.min.js') }}"></script>
  27.             <script src="{{ asset('assets/js/notification.js') }}"></script>
  28.             <script>
  29.                 toastr.options.closeButton = true
  30.                 toastr.options.closeDuration = 600
  31.                 toastr.options.timeOut = 4000
  32.                 toastr.options.progressBar = true
  33.                 toastr.options.preventDuplicates = true
  34.                 {% for message in app.flashes('success') %}
  35.                     toastr.success('{{ message }}')
  36.                 {% endfor %}
  37.                 {% for message in app.flashes('warning') %}
  38.                     toastr.warning('{{ message }}')
  39.                 {% endfor %}
  40.                 {% for message in app.flashes('error') %}
  41.                     toastr.error('{{ message }}')
  42.                 {% endfor %}
  43.                 let datatablesTranslation = {
  44.                     info: "",
  45.                     infoEmpty: "",
  46.                     emptyTable: "{{ 'No data'|trans }}",
  47.                     zeroRecords: "{{ 'No data'|trans }}",
  48.                     paginate: {
  49.                         first: "{{ 'Start'|trans }}",
  50.                         last: "{{ 'End'|trans }}",
  51.                         next: "{{ 'Next'|trans }}",
  52.                         previous: "{{ 'Previous'|trans }}"
  53.                     }
  54.                 }
  55.             </script>
  56.         {% endif %}
  57.         {% block javascripts %}{% endblock %}
  58.     </body>
  59. </html>