templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="utf-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1">
  6.         <meta name="version" content="{{ site_version }}">
  7.         <title>{% block title %}{% trans%}THEA PRO{% endtrans%}{% endblock %}</title>
  8.         {% block stylesheets %}
  9.             {# On charge le CSS de bootstrap depuis le site directement
  10.             <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"  crossorigin="anonymous"> #}
  11.             <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
  12.             <link href="//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.css" rel="stylesheet">
  13.             <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/css/bootstrap-select.min.css">
  14.             <link href="{{ asset('css/bootstrap-datetimepicker.css') }}" rel="stylesheet">
  15.             <link href="{{ asset('css/dashboard.css') }}" rel="stylesheet">
  16.             <link href="{{ asset('css/style.css') }}" rel="stylesheet">
  17.         {% endblock %}
  18.     </head>
  19.     <body>
  20.         {{ include("headermenu.html.twig") }}
  21.         <div class="container-fluid">
  22.             <div class="row">
  23.                 {{ include("leftmenu.html.twig") }}   
  24.                 <div id="content" class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  25.                     {% if is_granted("ROLE_ADMIN") or is_granted("ROLE_USER") %}
  26.                         <div style="margin-bottom: 40px;border-bottom: 1px solid #0066cc;">
  27.                             {% block bodytitle %}
  28.                             {% endblock %} 
  29.                         </div>
  30.                         {% for flash_message in app.session.flashbag.get('notice') %}
  31.                             <div class="alert alert-success alert-dismissible">
  32.                                 {{ flash_message }}
  33.                                 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  34.                                     <span aria-hidden="true">&times;</span>
  35.                                 </button>
  36.                             </div>
  37.                         {% endfor %}
  38.                         {% for flash_message in app.session.flashbag.get('error') %}
  39.                             <div class="alert alert-danger alert-dismissible">
  40.                                 {{ flash_message }}
  41.                                 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  42.                                     <span aria-hidden="true">&times;</span>
  43.                                 </button>
  44.                             </div>
  45.                         {% endfor %}
  46.                     {% endif %}
  47.                     {% block body %}
  48.                         {% block content %}
  49.                         {% endblock %}  
  50.                     {% endblock %}
  51.                 </div>
  52.             </div>
  53.             <hr>
  54.             {#
  55.             <footer>
  56.                 <p>The sky's the limit © {{ 'now'|date('Y') }} and beyond.</p>
  57.             </footer>
  58.             #}
  59.         </div>
  60.         {# MODAL DU LOADER #}
  61.         {% block modal %}
  62.         {% endblock %}
  63.         <div class="modal fade" id="modalLoader">
  64.             <div class="modal-dialog">
  65.                 <div class="modal-content">
  66.                     <div class="modal-header">
  67.                         <h4 class="modal-title">Chargement</h4>
  68.                     </div>
  69.                     <div class="modal-body" style='text-align: center;'>
  70.                         <img src="{{ asset('img/loader.gif') }}" alt="Loader"/>
  71.                     </div>
  72.                 </div>
  73.             </div>
  74.         </div>
  75.         {% block javascripts %}
  76.             {#  JavaScript : fonctionnalités du bootstrap Twitter #}
  77.            {# <script src="//code.jquery.com/jquery-2.1.1.js"></script> #}
  78.             <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
  79.             <script src="{{ asset('js/jquery-ui.min.js') }}"></script>
  80.             <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
  81.             <script src="{{ asset('js/moment-with-locales.js') }}"></script>
  82.             <script src="{{ asset('js/bootstrap-datetimepicker.js') }}"></script>
  83.            {# <script src="{{ asset('bundles/obhighcharts/js/highcharts/highcharts.js') }}"></script>
  84.             <script src="{{ asset('bundles/obhighcharts/js/highcharts/modules/exporting.js') }}"></script>#}
  85.             <script src="{{ asset('js/AppBundle.js') }}"></script>
  86.             <script src="{{ asset('js/article_interface.js') }}"></script>
  87.             <script src="{{ asset('js/reseau_interface.js') }}"></script>
  88.             <script src="{{ asset('js/bootstrap-select.js') }}"></script>
  89.             <script src="{{ asset('js/CodeBarreValidation.js') }}"></script>
  90.             <script src="{{ asset('js/commande_interface.js') }}"></script>
  91.             <script src="{{ asset('js/adresse_interface.js') }}"></script>
  92.             <script src="{{ asset('js/conditionnement.js') }}"></script>
  93.             <script src="{{ asset('js/emultation_array.js') }}"></script>
  94.             <script src="{{ asset('js/jquery.multi-select.js') }}"></script>
  95.             <script src="{{ asset('js/jquery-ui.min.js') }}"></script>
  96.             <script src="{{ asset('js/produit_interface.js') }}"></script>
  97.             <script src="{{ asset('js/commande_classement.js') }}"></script>
  98.             <script src="{{ asset('js/dotation_typeliste.js') }}"></script>
  99.             <script src="{{ asset('js/commande_reseau_user_form_type.js') }}"></script>
  100.             <script src="{{ asset('js/input_file.js') }}"></script>
  101.             <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
  102.             <script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
  103.             <script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@0.7.0"></script>
  104.             <script src="{{ path('fos_js_routing_js', {'callback': 'fos.Router.setData'}) }}"></script> 
  105.             <script>
  106.                 function showModalLoader() {
  107.                     $("#modalLoader").modal({show: true, backdrop: 'static'});
  108.                 }
  109.                 function hideModalLoader(withOtherModal) {
  110.                     var withOtherModalOpen = withOtherModal||false;
  111.                     if(withOtherModalOpen){
  112.                         $("#modalLoader").on("hidden.bs.modal", function () {
  113.                           $("body").addClass("modal-open");
  114.                         });
  115.                     }else{
  116.                         $("#modalLoader").on("hidden.bs.modal", function () {
  117.                           $("body").removeClass("modal-open");
  118.                         });
  119.                     }
  120.                     $("#modalLoader").modal('hide');
  121.                 }
  122.             </script>
  123.             
  124.         {% endblock %}
  125.     </body>
  126. </html>