2021-12-29 14:41:33 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
2022-01-31 20:09:49 +01:00
|
|
|
<div class="offre">
|
2022-04-20 22:37:04 +02:00
|
|
|
<div style="word-break:break-all; text-align: justify;">
|
2022-03-30 20:17:35 +02:00
|
|
|
Ajouté le {{ offre[0].date_ajout.strftime('%d/%m/%y') }} à {{ offre[0].date_ajout.strftime('%Hh%M') }}<br>
|
2021-12-28 21:20:50 +01:00
|
|
|
Intitulé : {{ offre[0].intitule }}<br>
|
|
|
|
Description : {{ offre[0].description }}<br>
|
|
|
|
Type de l'offre : {{ offre[0].type_offre }}<br>
|
|
|
|
Missions : {{ offre[0].missions }}<br>
|
|
|
|
Durée : {{ offre[0].duree }}<br>
|
2022-02-04 17:12:56 +01:00
|
|
|
{% if offre[2] %}
|
2022-02-14 19:42:17 +01:00
|
|
|
Département(s) : {% for offre_dept in offre[2] %} <div class="offre-depts">{{ offre_dept.dept_id|get_dept_acronym }}</div> {% endfor %}<br>
|
2022-02-04 17:12:56 +01:00
|
|
|
{% endif %}
|
2022-03-04 17:10:07 +01:00
|
|
|
|
2022-03-28 23:44:57 +02:00
|
|
|
{% if offre[0].correspondant_id %}
|
2022-03-04 17:10:07 +01:00
|
|
|
Contacté {{ offre[3].nom }} {{ offre[3].prenom }}
|
|
|
|
{% if offre[3].mail and offre[3].telephone %}
|
|
|
|
({{ offre[3].mail }} - {{ offre[3].telephone }})<br>
|
|
|
|
{% else %}
|
|
|
|
({{ offre[3].mail }}{{offre[3].telephone}})<br>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2021-12-28 21:20:50 +01:00
|
|
|
{% for fichier in offre[1] %}
|
|
|
|
<a href="{{ url_for('entreprises.get_offre_file', entreprise_id=entreprise.id, offre_id=offre[0].id, filedir=fichier[0], filename=fichier[1] )}}">{{ fichier[1] }}</a>
|
2022-01-27 16:28:28 +01:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntreprisesChange, None) %}
|
2022-07-11 16:06:38 +02:00
|
|
|
<a href="{{ url_for('entreprises.delete_offre_file', entreprise_id=entreprise.id, offre_id=offre[0].id, filedir=fichier[0] )}}" style="margin-left: 5px;"><img title="Supprimer fichier" alt="supprimer" width="10" height="9" border="0" src="/ScoDoc/static/icons/delete_small_img.png" /></a>
|
2022-01-27 16:28:28 +01:00
|
|
|
{% endif %}
|
2022-02-01 18:35:48 +01:00
|
|
|
<br>
|
2021-12-28 21:20:50 +01:00
|
|
|
{% endfor %}
|
2022-03-04 17:10:07 +01:00
|
|
|
|
2022-01-27 16:28:28 +01:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntreprisesChange, None) %}
|
2022-07-11 16:06:38 +02:00
|
|
|
<a href="{{ url_for('entreprises.add_offre_file', entreprise_id=entreprise.id, offre_id=offre[0].id) }}">Ajoutez un fichier</a>
|
2022-01-27 16:28:28 +01:00
|
|
|
{% endif %}
|
2022-02-01 18:35:48 +01:00
|
|
|
</div>
|
2021-12-23 19:28:25 +01:00
|
|
|
|
2022-01-31 20:09:49 +01:00
|
|
|
<div class="parent-btn">
|
2022-01-27 16:28:28 +01:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntreprisesChange, None) %}
|
2022-07-11 16:06:38 +02:00
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.edit_offre', entreprise_id=offre[0].entreprise_id, offre_id=offre[0].id) }}">Modifier l'offre</a>
|
|
|
|
<a class="btn btn-danger" href="{{ url_for('entreprises.delete_offre', entreprise_id=offre[0].entreprise_id, offre_id=offre[0].id) }}">Supprimer l'offre</a>
|
2022-01-27 16:28:28 +01:00
|
|
|
{% endif %}
|
2022-03-04 17:10:07 +01:00
|
|
|
|
2022-01-27 16:28:28 +01:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntreprisesSend, None) %}
|
2022-07-11 16:06:38 +02:00
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.envoyer_offre', entreprise_id=entreprise.id, offre_id=offre[0].id) }}">Envoyer l'offre</a>
|
2022-01-27 16:28:28 +01:00
|
|
|
{% endif %}
|
2022-03-04 17:10:07 +01:00
|
|
|
|
2022-03-01 18:45:04 +01:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntreprisesChange, None) %}
|
|
|
|
{% if not offre[0].expired %}
|
2022-07-11 16:06:38 +02:00
|
|
|
<a class="btn btn-danger" href="{{ url_for('entreprises.expired', entreprise_id=offre[0].entreprise_id, offre_id=offre[0].id) }}">Rendre expirée</a>
|
2022-03-01 18:45:04 +01:00
|
|
|
{% else %}
|
2022-07-11 16:06:38 +02:00
|
|
|
<a class="btn btn-success" href="{{ url_for('entreprises.expired', entreprise_id=offre[0].entreprise_id, offre_id=offre[0].id) }}">Rendre non expirée</a>
|
2022-03-01 18:45:04 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2021-12-23 19:28:25 +01:00
|
|
|
</div>
|
|
|
|
</div>
|