src/PaaBundle/Resources/views/Default/pre_imports.html.twig line 1

Open in your IDE?
  1. {# pre_imports.html.twig #}
  2.     <meta charset="utf-8">
  3.     <meta name="viewport" content="width=device-width, initial-scale=1">
  4.     <meta name="author" content="Limoog">
  5.     {% if not estDemo() %}
  6.         <meta name="robots" content="noindex"/>
  7.         <title>PAA</title>
  8.     {% else %}
  9.         <title>Logiciel planning médico-social et Alternance gratuit - PAA</title>
  10.     {% endif %}
  11.     <link rel="icon" type="image/x-icon" href="{{ asset_version('Images/PAA.ICO') }}" />
  12.     {% if poController is defined %}
  13.     <script>
  14.         window.estDevMode = "{{ poController.estDevMode() }}";
  15.         window.appVersion = "{{ poController.getVersion() }}";
  16.         window.etablissementsSemRecu = "{{poController.getParamètre('gbAutoriseSemaineRécurrente', 'false', 'L') }}"
  17.         window.nbPlansTypes = "{{poController.getParamètre('giNbPlansTypes', '3', 'N') }}"
  18.     {% if poController.getDBName() is not same as("default") %}
  19.         window.baseURL = "/DB/{{ poController.getDBName() }}/";
  20.     {% else %}
  21.         window.baseURL = "{{ baseURL }}";
  22.     {% endif %}
  23.         window.baseURLJS = "{{ baseURLJS }}";
  24.         window.currentUser = "{{ app.user ? app.user : "" }}" ;
  25.         window.currentUser_Type = "{{ app.user ? app.user.ctype_res : "" }}" ;      // LG 20240227
  26.         window.currentUser_Id = "{{ app.user ? app.user.iid_res : "" }}" ;          // LG 20240227
  27. {# LG 20240228 début #}
  28. {#         window.loginTimeout = "{{ session_max_idle_time }}" ; #}
  29.     {% if piSessionTimeout is defined %}
  30.         window.loginTimeout = "{{ piSessionTimeout }}" ;
  31.     {% else %}
  32.         window.loginTimeout = "{{ session_max_idle_time }}" ;
  33.     {% endif %}
  34. {# LG 20240228 fin #}
  35.     </script>
  36.     {% endif %}