{% extends '@AcmeOffres/layout.html.twig' %}
{% block title %}
{{ offresEmploi.titreoffre }} - {{ parent() }}
{% endblock %}
{% block content %}
{% include '@AcmeOffres/FOSUserBundle/menu_actif.html.twig' with {'menu': offresEmploi.titreoffre } %}
<section class="form-section">
<div class="container">
<div class="row">
<div class="col-12">
<div class="text-right">
{% include '@AcmeOffres/FOSUserBundle/menu_profile.html.twig' %}
</div>
<h1 class="title-form">{{ offresEmploi.titreoffre }}</h1>
</div>
</div>
<div class="row">
<div class="col-sm-8 offset-sm-2">
<div class="table-responsive">
<table class="table table-striped">
<tr>
<th scope="row">Référence</th>
<td>{{ offresEmploi.id }}</td>
</tr>
<tr>
<th>Titreoffre</th>
<td>{{ offresEmploi.titreoffre }}</td>
</tr>
<tr>
<th>Texte</th>
<td>{{ offresEmploi.texte|raw |nl2br }}</td>
</tr>
<tr>
<th>Début</th>
<td>{% if offresEmploi.datedebut %}{{ offresEmploi.datedebut|date('d-m-Y') }}{% endif %}</td>
</tr>
<tr>
<th>Date fin</th>
<td>{% if offresEmploi.datefin %}{{ offresEmploi.datefin|date('d-m-Y') }}{% endif %}</td>
</tr>
<tr>
<th>Créée le</th>
<td>{% if offresEmploi.datecreation %}{{ offresEmploi.datecreation|date('d-m-Y à H:i:s') }}{% endif %}</td>
</tr>
<!-- A activer ->
{# % if is_granted("IS_AUTHENTICATED_REMEMBERED") and app.user.annonceurs.id==offresEmploi.annonceurs.id %}
<tr>
<th>Mise à jr</th>
<td>{% if offresEmploi.dateupdate %}{{ offresEmploi.dateupdate|date('d-m-Y H:i:s') }}{% endif %}</td>
</tr>
<tr>
<th>Validée</th>
<td>{% if offresEmploi.validee %}Yes{% else %}No{% endif %}</td>
</tr>
<tr>
<th>Active</th>
<td>{% if offresEmploi.active %}Yes{% else %}No{% endif %}</td>
</tr>
<tr>
<th>Date val.</th>
<td>{% if offresEmploi.datevalidation %}{{ offresEmploi.datevalidation|date('Y-m-d à H:i:s') }}{% endif %}</td>
</tr>
{% endif % #}
<tr>
<th>Organisme</th>
<td>{{ offresEmploi.annonceurs.organisme }}</td>
</tr>
<tr>
<th>Téléphone</th>
<td>{{ offresEmploi.annonceurs.telephone }}</td>
</tr>
</table>
</div>
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
<ul class="list-inline">
<li class="list-inline-item"><a href="{{ path('job_index') }}">Retourner à la liste</a></li>
<li class="list-inline-item"><a href="{{ path('job_edit', { 'id': offresEmploi.id }) }}">Éditer</a></li>
<li class="list-inline-item">{{ form_start(delete_form) }}
<input type="submit" value="Delete">{{ form_end(delete_form) }}</li>
</ul>
{% endif %}
</div>
</div>
</div>
</section>
{% endblock %}