templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.         <title>{% block title %}{{ 'welcome'|trans({},'breadcrumb') }}{% endblock %}</title>
  7.         <!-- CSS only -->
  8.         <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
  9.         <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
  10.         <link rel="stylesheet" href="{{ asset('css/bootstrap-datepicker.min.css') }}" />
  11.         <link rel="stylesheet" href="{{ asset('css/component-chosen.min.css') }}" />
  12.         <link rel="stylesheet" href="https://fr.allfont.net/allfont.css?fonts=asap" type="text/css" />
  13.         <link rel="stylesheet" href="{{ asset('css/base.css') }}" />
  14.         <style>
  15.             .loader {
  16.                 background : url('{{ asset('images/icon-loader.gif') }}') 50% 50% no-repeat;
  17.             }
  18.         </style>
  19.         <link rel="stylesheet" href="{{ asset('css/font.css') }}" />
  20.         <!-- CSS spécifiques -->
  21.         {% block stylesheets %}
  22.         {% endblock %}
  23.         <!-- Javascripts -->
  24.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  25.         <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
  26.         <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>
  27.         <script src="{{ asset('js/chosen/chosen.jquery.min.js') }}"></script>
  28.         <script>
  29.             $('.has-clear input[type="text"]').on('input propertychange', function() {
  30.               var $this = $(this);
  31.               var visible = Boolean($this.val());
  32.               $this.siblings('.form-control-clear').toggleClass('hidden', !visible);
  33.             }).trigger('propertychange');
  34.             $('.form-control-clear').click(function() {
  35.               $(this).siblings('input[type="text"]').val('')
  36.                 .trigger('propertychange').focus();
  37.             });
  38.             jQuery(document).ready(function() {
  39.                 $('.js-datepicker').datepicker({format:'dd/mm/yyyy',  language: 'fr'});
  40.                  $(".chzn-select").chosen('destroy');
  41.                 $(".chzn-select").on("liszt:showing_dropdown", function () {
  42.                     $(this).parents("div").css("overflow", "visible");
  43.                 });
  44.                 $(".chzn-select").on("liszt:hiding_dropdown", function () {
  45.                     $(this).parents("div").css("overflow", "");
  46.                 });
  47.                 $(".chzn-select").chosen({
  48.                     no_results_text: "Aucun résultat pour ",
  49.                     placeholder_text_single: " ",
  50.                     placeholder_text_multiple: " ",
  51.                     disable_search: false,
  52.                     disable_search_threshold: 1
  53.                 });
  54.                 //$.validator.setDefaults({ ignore: ":hidden:not(select)" });
  55.             });
  56.             // "required" support for Chosen; see https://github.com/harvesthq/chosen/issues/515, http://jsfiddle.net/hq7b426j/1/
  57.             $.fn.oldChosen = $.fn.chosen
  58.             $.fn.chosen = function (options) {
  59.               var select = $(this),
  60.                   is_creating_chosen = !!options;
  61.               if (is_creating_chosen && select.css('position') === 'absolute') {
  62.                 // if we are creating a chosen and the select already has the appropriate styles added
  63.                 // we remove those (so that the select hasn't got a crazy width), then create the chosen
  64.                 // then we re-add them later
  65.                 select.removeAttr('style');
  66.               }
  67.               var ret = select.oldChosen(options)
  68.               // only act if the select has display: none, otherwise chosen is unsupported (iPhone, etc)
  69.               if (is_creating_chosen && select.css('display') === 'none') {
  70.                 // https://github.com/harvesthq/chosen/issues/515#issuecomment-33214050
  71.                 // only do this if we are initializing chosen (no params, or object params) not calling a method
  72.                 select.attr('style', 'display:visible; position:absolute; clip:rect(0,0,0,0)');
  73.                 select.attr('tabindex', -1);
  74.               }
  75.               return ret
  76.             }
  77.         </script>
  78.         <!-- JS spécifiques -->
  79.         {% block javascripts %}
  80.         {% endblock %}
  81.     </head>
  82.     <body>
  83.         <div id="main">
  84.             {% block body %}
  85.             {% endblock %}
  86.         </div>
  87.     </body>
  88. </html>