2021-12-29 14:41:33 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
2021-12-23 19:28:25 +01:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
2022-01-31 18:22:54 +01:00
|
|
|
{% if logs %}
|
|
|
|
<div class="container">
|
2022-02-02 19:13:50 +01:00
|
|
|
<h3>Dernières opérations sur cette fiche <a href="{{ url_for('entreprises.logs_entreprise', id=entreprise.id) }}">Voir tout</a></h3>
|
2022-01-31 18:22:54 +01:00
|
|
|
<ul>
|
|
|
|
{% for log in logs %}
|
|
|
|
<li>
|
|
|
|
<span style="margin-right: 10px;">{{ log.date.strftime('%d %b %Hh%M') }}</span>
|
2022-02-10 21:17:22 +01:00
|
|
|
<span>{{ log.text|safe }} par {{ log.authenticated_user|get_nomcomplet_by_username }}</span>
|
2022-01-31 18:22:54 +01:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2021-12-29 14:41:33 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-01-31 18:22:54 +01:00
|
|
|
{% if historique %}
|
|
|
|
<div class="container">
|
|
|
|
<h3>Historique</h3>
|
|
|
|
<ul>
|
|
|
|
{% for data in historique %}
|
|
|
|
<li>
|
|
|
|
<span style="margin-right: 10px;">{{ data[0].date_debut.strftime('%d/%m/%Y') }} - {{
|
|
|
|
data[0].date_fin.strftime('%d/%m/%Y') }}</span>
|
|
|
|
<span style="margin-right: 10px;">
|
|
|
|
{{ data[0].type_offre }} réalisé par {{ data[1].nom|format_nom }} {{ data[1].prenom|format_prenom }}
|
|
|
|
{% if data[0].formation_text %} en {{ data[0].formation_text }}{% endif %}
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2021-12-23 19:28:25 +01:00
|
|
|
</div>
|
2021-12-29 14:41:33 +01:00
|
|
|
{% endif %}
|
2022-01-31 18:22:54 +01:00
|
|
|
|
2022-01-31 20:09:49 +01:00
|
|
|
<div class="container fiche-entreprise">
|
2022-01-31 18:22:54 +01:00
|
|
|
<h2>Fiche entreprise - {{ entreprise.nom }} ({{ entreprise.siret }})</h2>
|
|
|
|
|
2022-01-31 20:09:49 +01:00
|
|
|
<div class="entreprise">
|
2022-02-01 18:35:48 +01:00
|
|
|
<div>
|
2022-01-31 18:22:54 +01:00
|
|
|
SIRET : {{ entreprise.siret }}<br>
|
|
|
|
Nom : {{ entreprise.nom }}<br>
|
|
|
|
Adresse : {{ entreprise.adresse }}<br>
|
|
|
|
Code postal : {{ entreprise.codepostal }}<br>
|
|
|
|
Ville : {{ entreprise.ville }}<br>
|
|
|
|
Pays : {{ entreprise.pays }}
|
2022-02-01 18:35:48 +01:00
|
|
|
</div>
|
2022-01-31 18:22:54 +01:00
|
|
|
</div>
|
2021-12-29 14:41:33 +01:00
|
|
|
|
2022-02-01 18:35:48 +01:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntreprisesChange, None) %}
|
|
|
|
<div>
|
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.edit_entreprise', id=entreprise.id) }}">Modifier</a>
|
|
|
|
<a class="btn btn-danger" href="{{ url_for('entreprises.delete_entreprise', id=entreprise.id) }}">Supprimer</a>
|
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.add_offre', id=entreprise.id) }}">Ajouter offre</a>
|
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.add_contact', id=entreprise.id) }}">Ajouter contact</a>
|
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.add_historique', id=entreprise.id) }}">Ajouter
|
|
|
|
historique</a>
|
|
|
|
{% endif %}
|
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.offres_expirees', id=entreprise.id) }}">Voir les offres expirées</a>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
|
2022-01-31 20:09:49 +01:00
|
|
|
<div class="contacts-et-offres">
|
|
|
|
{% if contacts %}
|
|
|
|
<div>
|
|
|
|
<h3>Contacts</h3>
|
|
|
|
{% for contact in contacts %}
|
|
|
|
{% include 'entreprises/_contact.html' %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-01-31 18:22:54 +01:00
|
|
|
|
2022-01-31 20:09:49 +01:00
|
|
|
{% if offres %}
|
|
|
|
<div>
|
2022-02-01 18:35:48 +01:00
|
|
|
<h3>Offres - <a href="{{ url_for('entreprises.offres_expirees', id=entreprise.id) }}">Voir les offres expirées</a></h3>
|
2022-01-31 20:09:49 +01:00
|
|
|
{% for offre in offres %}
|
|
|
|
{% include 'entreprises/_offre.html' %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-01-31 18:22:54 +01:00
|
|
|
</div>
|
2021-12-29 14:41:33 +01:00
|
|
|
</div>
|
2021-12-23 19:28:25 +01:00
|
|
|
{% endblock %}
|