templates/user/new.html.twig line 1

Open in your IDE?
  1. {% block stylesheet %}
  2.     <link rel="stylesheet" href="{{ asset('assets/global/vendor/select2/select2.css') }}">
  3.     <link rel="stylesheet" href="{{ asset('assets/examples/css/pages/register-v2.css') }}">
  4. {% endblock %}
  5. {% extends('base.html.twig') %}
  6. {% block title %}Bienvenue{% endblock %}
  7. {% block body %}
  8. {% if entity is not null %}
  9.     <style>
  10.         .mobile-img-background {
  11.             background-image: url("{{asset('img/entity/')}}{{ entity.imageRegister }}") !important;
  12.         }
  13.         .page-register-v2:before {
  14.             background-image: url("{{asset('img/entity/')}}{{ entity.imageRegister }}") !important;
  15.         }
  16.     </style>
  17. {% else %}
  18.     <style>
  19.         .mobile-img-background {
  20.         background-image: url("{{asset('assets/examples/images/login_custom.png')}}") !important;
  21.         }
  22.     </style>
  23. {% endif %}
  24. <body class="animsition page-register-v2 layout-full page-dark">
  25.     <!--[if lt IE 8]>
  26.     <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
  27.         your browser</a> to improve your experience.</p>
  28.     <![endif]-->
  29.     <!-- Page -->
  30.     <div class="page" data-animsition-in="fade-in" data-animsition-out="fade-out">
  31.         <div class="page-content">
  32.             <div class="page-brand-info">
  33.                 <div class="brand">
  34.                     {% if entity is null %}
  35.                         <img class="brand-img" src="{{ asset('assets/images/logo_SIRENE_trans.png') }}" alt="logo_SIRENE">
  36.                     {% endif %}
  37.                     {% if entity is not null %}
  38.                         {% if entity.name == 'FDC77' %}
  39.                             <div class="row">
  40.                                 <div class="col-12">
  41.                                     <img src="{{ asset('img/entity/FDC77-leger.jpg') }}" alt="FDC77 logo" style="width: 10%">
  42.                                     <img src="{{ asset('img/entity/CD77-Logo-RVB.jpg') }}" alt="FDC77 logo" style="width: 10.6%">
  43.                                 </div>
  44.                             </div>
  45.                         {% endif %}
  46.                     {% endif %}
  47.                         <h2 id="title-register" class="brand-text font-size-40">
  48.                             {% if entity is not null %}
  49.                                 {{ entity.titleRegister | raw}}
  50.                             {% else %}
  51.                                 SIRENE<br> ENQUÊTES ENVIRONNEMENTALE
  52.                             {% endif %}
  53.                         </h2>
  54.                 </div>
  55.                 <p id="description-user-register">
  56.                     {% if entity is not null %}
  57.                         {{ entity.descriptionRegister | raw }}
  58.                     {% else %}
  59.                         Vous connaissez et aimez la nature. Rejoignez-nous pour participer à des enquêtes terrain environnementales.
  60.                     {% endif %}
  61.                 </p>
  62.             </div>
  63.             <!-- Mobile -->
  64.             <div class="page-register-main animation-slide-left animation-duration-1">
  65.                 <div class="row" id="row-mobile">
  66.                     <div class="container-fluid">
  67.                         <div class="mobile-img-background">
  68.                             <div class="brand hidden-md-up text-center" id="title-back-register-mobile">
  69.                                 <h3 class="brand-text font-size-40" id="title-register-mobile">
  70.                                     {% if entity is not null %}
  71.                                         {{ entity.titleRegister | raw}}
  72.                                     {% else %}
  73.                                         SIRENE<br> ENQUÊTES ENVIRONNEMENTALE
  74.                                     {% endif %}
  75.                                 </h3>
  76.                             </div>
  77.                         </div>
  78.                     </div>
  79.                 </div>
  80. {#                <h3 class="font-size-24">Bienvenue !</h3>#}
  81.                 <p id="description-user-register-mobile">
  82.                     {% if entity is not null %}
  83.                         {{ entity.descriptionRegister | raw }}
  84.                     {% else %}
  85.                         Vous connaissez et aimez la nature. Rejoignez-nous pour participer à des enquêtes terrain environnementales.
  86.                     {% endif %}
  87.                 </p>
  88.                 {% for message in app.flashes('captcha') %}
  89.                     <div class="flash-notice">
  90.                         {{ message }}
  91.                     </div>
  92.                 {% endfor %}
  93.                 {{ include('/user/_form.html.twig') }}
  94.             </div>
  95.         </div>
  96.     </div>
  97. <!-- End Page -->
  98. {% endblock %}
  99. {% block javascripts %}
  100.     <!-- Select 2 -->
  101.     <script src="{{ asset('assets/global/vendor/select2/select2.full.min.js') }}"></script>
  102.     <script src="{{ asset('assets/global/js/Plugin/select2.js') }}"></script>
  103. {% endblock %}