2021-12-29 14:41:33 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
2022-01-31 20:09:49 +01:00
|
|
|
<div class="offre">
|
2022-02-01 18:35:48 +01:00
|
|
|
<div>
|
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>
|
|
|
|
{% 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-02-01 18:35:48 +01:00
|
|
|
<a href="{{ url_for('entreprises.delete_offre_file', 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-01-27 16:28:28 +01:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntreprisesChange, None) %}
|
2021-12-28 21:20:50 +01:00
|
|
|
<a href="{{ url_for('entreprises.add_offre_file', 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) %}
|
2021-12-28 21:20:50 +01:00
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.edit_offre', id=offre[0].id) }}">Modifier l'offre</a>
|
|
|
|
<a class="btn btn-danger" href="{{ url_for('entreprises.delete_offre', id=offre[0].id) }}">Supprimer l'offre</a>
|
2022-01-27 16:28:28 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntreprisesSend, None) %}
|
2021-12-28 21:20:50 +01:00
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.envoyer_offre', id=offre[0].id) }}">Envoyer l'offre</a>
|
2022-01-27 16:28:28 +01:00
|
|
|
{% endif %}
|
2021-12-23 19:28:25 +01:00
|
|
|
</div>
|
2022-01-27 16:28:28 +01:00
|
|
|
|
2021-12-23 19:28:25 +01:00
|
|
|
</div>
|