src/Acme/OffresBundle/Resources/views/offresemploi/show.html.twig line 1

Open in your IDE?
  1. {% extends '@AcmeOffres/layout.html.twig' %}
  2. {% block title %}
  3.     {{ offresEmploi.titreoffre }} - {{ parent() }}
  4. {% endblock %}
  5. {% block content %}
  6. {% include '@AcmeOffres/FOSUserBundle/menu_actif.html.twig' with {'menu': offresEmploi.titreoffre } %}
  7.    <section class="form-section">
  8.         <div class="container">
  9.                 <div class="row">
  10.                     <div class="col-12">
  11.                         <div class="text-right">
  12.                         {% include '@AcmeOffres/FOSUserBundle/menu_profile.html.twig' %}
  13.                      </div>
  14.                         <h1 class="title-form">{{ offresEmploi.titreoffre }}</h1>
  15.                     </div>
  16.                 </div>
  17.                     <div class="row">
  18.                         <div class="col-sm-8 offset-sm-2">
  19.                             <div class="table-responsive">
  20.                               <table class="table table-striped">
  21.                                     <tr>
  22.                                     <th scope="row">Référence</th>
  23.                         <td>{{ offresEmploi.id }}</td>
  24.                     </tr>
  25.                     <tr>
  26.                         <th>Titreoffre</th>
  27.                         <td>{{ offresEmploi.titreoffre }}</td>
  28.                     </tr>
  29.                  
  30.                     <tr>
  31.                         <th>Texte</th>
  32.                         <td>{{ offresEmploi.texte|raw |nl2br }}</td>
  33.                     </tr>
  34.                     <tr>
  35.                         <th>Début</th>
  36.                         <td>{% if offresEmploi.datedebut %}{{ offresEmploi.datedebut|date('d-m-Y') }}{% endif %}</td>
  37.                     </tr>
  38.                     <tr>
  39.                         <th>Date fin</th>
  40.                         <td>{% if offresEmploi.datefin %}{{ offresEmploi.datefin|date('d-m-Y') }}{% endif %}</td>
  41.                     </tr>
  42.                     <tr>
  43.                         <th>Créée le</th>
  44.                         <td>{% if offresEmploi.datecreation %}{{ offresEmploi.datecreation|date('d-m-Y à H:i:s') }}{% endif %}</td>
  45.                     </tr>
  46.                     <!-- A activer ->
  47.                     {# % if is_granted("IS_AUTHENTICATED_REMEMBERED") and app.user.annonceurs.id==offresEmploi.annonceurs.id %}
  48.                     <tr>
  49.                         <th>Mise à jr</th>
  50.                         <td>{% if offresEmploi.dateupdate %}{{ offresEmploi.dateupdate|date('d-m-Y H:i:s') }}{% endif %}</td>
  51.                     </tr>
  52.                     <tr>
  53.                         <th>Validée</th>
  54.                         <td>{% if offresEmploi.validee %}Yes{% else %}No{% endif %}</td>
  55.                     </tr>
  56.                     <tr>
  57.                         <th>Active</th>
  58.                         <td>{% if offresEmploi.active %}Yes{% else %}No{% endif %}</td>
  59.                     </tr>
  60.                     <tr>
  61.                         <th>Date val.</th>
  62.                         <td>{% if offresEmploi.datevalidation %}{{ offresEmploi.datevalidation|date('Y-m-d à H:i:s') }}{% endif %}</td>
  63.                     </tr> 
  64.                     {% endif % #}  
  65.                     <tr>
  66.                         <th>Organisme</th>
  67.                         <td>{{ offresEmploi.annonceurs.organisme }}</td>
  68.                     </tr>
  69.                     <tr>
  70.                         <th>Téléphone</th>
  71.                         <td>{{ offresEmploi.annonceurs.telephone }}</td>
  72.                     </tr> 
  73.                 </table>
  74.                     </div>
  75.                     {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
  76.                     <ul class="list-inline">
  77.                         <li class="list-inline-item"><a href="{{ path('job_index') }}">Retourner à la liste</a></li>
  78.                         <li class="list-inline-item"><a href="{{ path('job_edit', { 'id': offresEmploi.id }) }}">Éditer</a></li>
  79.                         <li class="list-inline-item">{{ form_start(delete_form) }}
  80.                         <input type="submit" value="Delete">{{ form_end(delete_form) }}</li>
  81.                     </ul>
  82.                     {% endif %}
  83.                 </div>
  84.             </div>
  85.         </div>
  86.     </section>
  87. {% endblock %}