2023-01-30 22:25:17 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
|
|
|
{% extends 'base.j2' %}
|
|
|
|
|
|
|
|
{% block styles %}
|
|
|
|
{{super()}}
|
|
|
|
<script src="/ScoDoc/static/jQuery/jquery-1.12.4.min.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/ScoDoc/static/DataTables/datatables.min.css">
|
|
|
|
<script type="text/javascript" charset="utf8" src="/ScoDoc/static/DataTables/datatables.min.js"></script>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="container">
|
|
|
|
<ul class="breadcrumbs">
|
|
|
|
<li class="breadcrumbs_item">
|
|
|
|
<a href="{{ url_for('entreprises.index') }}" class="breadcrumbs_link">Entreprises</a>
|
|
|
|
</li>
|
|
|
|
<li class="breadcrumbs_item">
|
|
|
|
<a href="" class="breadcrumbs_link breadcrumbs_link-active">Fiche entreprise</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if logs %}
|
|
|
|
<div class="container">
|
|
|
|
<h3>Dernières opérations sur cette fiche <a
|
|
|
|
href="{{ url_for('entreprises.logs_entreprise', entreprise_id=entreprise.id) }}">Voir tout</a></h3>
|
|
|
|
<ul>
|
|
|
|
{% for log in logs %}
|
|
|
|
<li>
|
|
|
|
<span style="margin-right: 10px;">{{ log.date.strftime('%d %b %Hh%M') }}</span>
|
|
|
|
<span>{{ log.text|safe }} par {{ log.authenticated_user|get_nomcomplet_by_username }}</span>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="container fiche-entreprise">
|
|
|
|
<h2>Fiche entreprise - {{ entreprise.nom }} ({{ entreprise.siret }})</h2>
|
|
|
|
|
|
|
|
{% if not entreprise.active %}
|
|
|
|
<div class="info-active">
|
|
|
|
La fiche entreprise est désactivée<br>
|
|
|
|
{% if entreprise.notes_active != "" %}
|
|
|
|
Notes : {{ entreprise.notes_active }}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="entreprise">
|
|
|
|
<div>
|
|
|
|
SIRET {% if entreprise.siret_provisoire %}provisoire{% endif %} : {{ entreprise.siret }}<br>
|
|
|
|
Nom : {{ entreprise.nom }}<br>
|
|
|
|
Adresse : {{ entreprise.adresse }}<br>
|
|
|
|
Code postal : {{ entreprise.codepostal }}<br>
|
|
|
|
Ville : {{ entreprise.ville }}<br>
|
|
|
|
Pays : {{ entreprise.pays }}<br>
|
|
|
|
{% if entreprise.association %}
|
|
|
|
Association
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
2023-09-29 21:17:31 +02:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntrepEdit, None) %}
|
2023-01-30 22:25:17 +01:00
|
|
|
<div>
|
|
|
|
Taxe d'apprentissage<br>
|
|
|
|
<a class="btn btn-primary"
|
|
|
|
href="{{ url_for('entreprises.add_taxe_apprentissage', entreprise_id=entreprise.id) }}">Ajouter taxe
|
|
|
|
apprentissage</a>
|
|
|
|
<div class="taxe-apprentissage">
|
|
|
|
<ul id="liste-taxes-apprentissages">
|
|
|
|
{% if not taxes|check_taxe_now %}
|
|
|
|
<li>année actuelle : non versée</li>
|
|
|
|
{% endif %}
|
|
|
|
{% for taxe in taxes %}
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="{{ url_for('entreprises.delete_taxe_apprentissage', entreprise_id=entreprise.id, taxe_id=taxe.id) }}"><img
|
|
|
|
title="Supprimer taxe d'apprentissage" alt="supprimer" width="10" height="9" border="0"
|
|
|
|
src="/ScoDoc/static/icons/delete_small_img.png" /></a>
|
|
|
|
<a
|
|
|
|
href="{{ url_for('entreprises.edit_taxe_apprentissage', entreprise_id=entreprise.id, taxe_id=taxe.id) }}">{{
|
|
|
|
taxe.annee }}</a> : {{ taxe.montant }} euros {% if taxe.notes %}- {{ taxe.notes}} {% endif
|
|
|
|
%}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2023-09-29 21:17:31 +02:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntrepEdit, None) %}
|
2023-01-30 22:25:17 +01:00
|
|
|
<a class="btn btn-primary"
|
|
|
|
href="{{ url_for('entreprises.edit_entreprise', entreprise_id=entreprise.id) }}">Modifier</a>
|
|
|
|
{% if entreprise.active %}
|
|
|
|
<a class="btn btn-danger"
|
|
|
|
href="{{ url_for('entreprises.fiche_entreprise_desactiver', entreprise_id=entreprise.id) }}">Désactiver</a>
|
|
|
|
{% else %}
|
|
|
|
<a class="btn btn-success"
|
|
|
|
href="{{ url_for('entreprises.fiche_entreprise_activer', entreprise_id=entreprise.id) }}">Activer</a>
|
|
|
|
{% endif %}
|
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.add_site', entreprise_id=entreprise.id) }}">Ajouter
|
|
|
|
site</a>
|
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.add_offre', entreprise_id=entreprise.id) }}">Ajouter
|
|
|
|
offre</a>
|
|
|
|
{% endif %}
|
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.contacts', entreprise_id=entreprise.id) }}">Liste
|
|
|
|
contacts</a>
|
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.offres_expirees', entreprise_id=entreprise.id) }}">Voir
|
|
|
|
les offres expirées</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sites-et-offres">
|
|
|
|
{% if entreprise.sites %}
|
|
|
|
<div>
|
|
|
|
<h3>Sites</h3>
|
|
|
|
{% for site in entreprise.sites %}
|
|
|
|
<div class="site">
|
|
|
|
Nom : {{ site.nom }}<br>
|
|
|
|
Adresse : {{ site.adresse }}<br>
|
|
|
|
Code postal : {{ site.codepostal }}<br>
|
|
|
|
Ville : {{ site.ville }}<br>
|
|
|
|
Pays : {{ site.pays }}
|
2023-09-29 21:17:31 +02:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntrepEdit, None) %}
|
2023-01-30 22:25:17 +01:00
|
|
|
<div>
|
|
|
|
<a class="btn btn-primary"
|
|
|
|
href="{{ url_for('entreprises.edit_site', entreprise_id=entreprise.id, site_id=site.id) }}">Modifier</a>
|
|
|
|
<a class="btn btn-primary"
|
|
|
|
href="{{ url_for('entreprises.add_correspondant', entreprise_id=entreprise.id, site_id=site.id) }}">Ajouter
|
|
|
|
correspondant</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2023-09-29 21:17:31 +02:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntrepViewCorrs, None) %}
|
2023-01-30 22:25:17 +01:00
|
|
|
{% for correspondant in site.correspondants %}
|
2023-02-20 14:59:13 +01:00
|
|
|
{% include 'entreprises/_correspondant.j2' %}
|
2023-01-30 22:25:17 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if offres %}
|
|
|
|
<div>
|
|
|
|
<h3>Offres - <a href="{{ url_for('entreprises.offres_expirees', entreprise_id=entreprise.id) }}">Voir les
|
|
|
|
offres expirées</a></h3>
|
|
|
|
{% for offre, files, offre_depts, correspondant in offres %}
|
2023-02-20 14:59:13 +01:00
|
|
|
{% include 'entreprises/_offre.j2' %}
|
2023-01-30 22:25:17 +01:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="margin-bottom: 10px;">
|
|
|
|
<h3>Liste des stages et apprentissages réalisés au sein de l'entreprise</h3>
|
2023-09-29 21:17:31 +02:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntrepEdit, None) %}
|
2023-01-30 22:25:17 +01:00
|
|
|
<a class="btn btn-primary" href="{{ url_for('entreprises.add_stage_apprentissage', entreprise_id=entreprise.id) }}"
|
|
|
|
style="margin-bottom:10px;">Ajouter stage ou apprentissage</a>
|
|
|
|
{% endif %}
|
|
|
|
<table id="table-stages-apprentissages">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td data-priority="3">Date début</td>
|
|
|
|
<td data-priority="4">Date fin</td>
|
|
|
|
<td data-priority="5">Durée</td>
|
|
|
|
<td data-priority="2">Type</td>
|
|
|
|
<td data-priority="1">Étudiant</td>
|
|
|
|
<td data-priority="6">Formation</td>
|
|
|
|
<td data-priority="7">Notes</td>
|
2023-09-29 21:17:31 +02:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntrepEdit, None) %}
|
2023-01-30 22:25:17 +01:00
|
|
|
<td data-priority="3">Action</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for stage_apprentissage, etudiant in stages_apprentissages %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ stage_apprentissage.date_debut.strftime('%d/%m/%Y') }}</td>
|
|
|
|
<td>{{ stage_apprentissage.date_fin.strftime('%d/%m/%Y') }}</td>
|
|
|
|
<td>{{ (stage_apprentissage.date_fin-stage_apprentissage.date_debut).days//7 }} semaines</td>
|
|
|
|
<td>{{ stage_apprentissage.type_offre }}</td>
|
|
|
|
<td><a
|
|
|
|
href="{{ url_for('scolar.ficheEtud', scodoc_dept=etudiant.dept_id|get_dept_acronym, etudid=stage_apprentissage.etudid) }}">{{
|
|
|
|
etudiant.nom|format_nom }} {{ etudiant.prenom|format_prenom }}</a></td>
|
|
|
|
<td>{% if stage_apprentissage.formation_text %}{{ stage_apprentissage.formation_text }}{% endif %}</td>
|
|
|
|
<td>{{ stage_apprentissage.notes }}</td>
|
2023-09-29 21:17:31 +02:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntrepEdit, None) %}
|
2023-01-30 22:25:17 +01:00
|
|
|
<td>
|
|
|
|
<div class="btn-group">
|
|
|
|
<a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">Action
|
|
|
|
<span class="caret"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu pull-left">
|
|
|
|
<li><a
|
|
|
|
href="{{ url_for('entreprises.edit_stage_apprentissage', entreprise_id=entreprise.id, stage_apprentissage_id=stage_apprentissage.id) }}">Modifier</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="{{ url_for('entreprises.delete_stage_apprentissage', entreprise_id=entreprise.id, stage_apprentissage_id=stage_apprentissage.id) }}"
|
|
|
|
style="color:red">Supprimer</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td>Date début</td>
|
|
|
|
<td>Date fin</td>
|
|
|
|
<td>Durée</td>
|
|
|
|
<td>Type</td>
|
|
|
|
<td>Étudiant</td>
|
|
|
|
<td>Formation</td>
|
|
|
|
<td>Notes</td>
|
2023-09-29 21:17:31 +02:00
|
|
|
{% if current_user.has_permission(current_user.Permission.RelationsEntrepEdit, None) %}
|
2023-01-30 22:25:17 +01:00
|
|
|
<td>Action</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
|
|
let table = new DataTable('#table-stages-apprentissages',
|
|
|
|
{
|
|
|
|
"autoWidth": false,
|
|
|
|
"responsive": {
|
|
|
|
"details": true
|
|
|
|
},
|
|
|
|
"pageLength": 10,
|
|
|
|
"language": {
|
|
|
|
"emptyTable": "Aucune donnée disponible dans le tableau",
|
|
|
|
"info": "Affichage de _START_ à _END_ sur _TOTAL_ entrées",
|
|
|
|
"infoEmpty": "Affichage de 0 à 0 sur 0 entrées",
|
|
|
|
"infoFiltered": "(filtrées depuis un total de _MAX_ entrées)",
|
|
|
|
"lengthMenu": "Afficher _MENU_ entrées",
|
|
|
|
"loadingRecords": "Chargement...",
|
|
|
|
"processing": "Traitement...",
|
|
|
|
"search": "Rechercher:",
|
|
|
|
"zeroRecords": "Aucune entrée correspondante trouvée",
|
|
|
|
"paginate": {
|
|
|
|
"next": "Suivante",
|
|
|
|
"previous": "Précédente"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|