{% extends 'base.html' %}
{% load adminmedia %}
+{% load dae %}
{% block title %}RH - DAE - Embauche{% endblock %}
{% block titre %}Ressources humaines{% endblock %}
<div id="form-dossier">
<!-- Wrapper du formulaire de dossier -->
{% with forms.dossier as form %}
- {% include "dae/embauche-dossier.html" %}
- {% endwith %}
+
+
+<fieldset>
+<h2>Contrat</h2>
+<table>
+ <tbody>
+ <tr>
+ <th rowspan="2">{{ form.type_contrat.label_tag }} :</th>
+ <td colspan="4" rowspan="2">
+ {{ form.type_contrat }}<br />
+ {{ form.type_contrat.errors }}
+ </td>
+ <th>
+ {{ form.remplacement.label_tag }} :
+ </th>
+ <td>
+ {{ form.remplacement }}<br />
+ {{ form.remplacement.errors }}
+ </td>
+ </tr>
+ <th>
+ {{ form.est_cadre.label_tag }} :
+ </th>
+ <td>
+ {{ form.est_cadre }}<br />
+ {{ form.est_cadre.errors }}
+ </td>
+ <tr>
+
+ </tr>
+ <tr>
+ <th rowspan="2">Durée :</th>
+ <td>du</td>
+ <td>
+ {{ form.contrat_date_debut }}<br />
+ <span class="info">({{form.contrat_date_debut.help_text }})</span><br />
+ {{ form.contrat_date_debut.errors }}
+ </td>
+ <td> au </td>
+ <td>
+ {{ form.contrat_date_fin }}<br />
+ <span class="info">({{form.contrat_date_fin.help_text }})</span><br />
+ {{ form.contrat_date_fin.errors }}
+ </td>
+ <th>{{ form.regime_travail.label_tag }} :<br />{{ form.regime_travail.errors }}</th>
+ <td>
+ {{ form.regime_travail }}
+ <span class="info">{{ form.regime_travail.help_text }}</span>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="4" class="info">
+ <p id="note-duree">Pour une durée indéterminée, spécifier uniquement la date de début.</p>
+ </td>
+ <th>
+ {{ form.regime_travail_nb_heure_semaine.label_tag }} :<br />
+ {{ form.regime_travail_nb_heure_semaine.errors }}
+ </th>
+ <td>{{ form.regime_travail_nb_heure_semaine }}
+ <span class="info">{{ form.regime_travail_nb_heure_semaine.help_text }}</span></td>
+ </tr>
+ <tr>
+ <th>Statut : </th>
+ <td colspan="4">
+ {{ form.statut }}
+ <span class="row">
+ {{ form.statut_residence }}
+ {% if form.statut.errors %}
+ <br />
+ {{ form.statut.errors }}
+ {% endif %}
+ {% if form.statut_residence.errors %}
+ <br />
+ {{ form.statut_residence.errors }}
+ {% endif %}
+ </span>
+ </td>
+ <th>{{ form.organisme_bstg.label_tag }} :</th>
+ <td>
+ {{ form.organisme_bstg }}
+ {% if form.organisme_bstg.errors %}
+ <br />
+ {{ form.organisme_bstg.errors }}
+ {% endif %}
+ <span class="info">{{ form.organisme_bstg.help_text }}</span><br/><br/>
+ {{ form.organisme_bstg_autre }}
+ <span class="info">{{ form.organisme_bstg_autre.help_text }}</span>
+ </td>
+ </tr>
+ <tr>
+ <th></th>
+ <td colspan="4">
+ </td>
+ <th colspan="2">
+ </th>
+ </tr>
+ </tbody>
+</table>
+</fieldset>
+
+<fieldset>
+<h2>Classement et salaire de base</h2>
+<table>
+ <tbody>
+ <tr>
+ <td colspan="7">
+ <h3>Ancien dossier <span class="info">(le cas échéant)</span></h3>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="7">
+ {{ employe }} <span class="info">{{ employe.dossier_set.all.reverse }}</span>
+ </td>
+ </tr>
+ <tr>
+ <th>{{ form.classement_anterieur.label_tag }}</th>
+ <th>{{ form.salaire_anterieur.label_tag }}</th>
+ <th>{{ form.statut_anterieur.label_tag }}</th>
+ <th>{{ form.type_contrat_anterieur.label_tag }}</th>
+ <th colpsan="3"></th>
+ </tr>
+ <tr>
+ <td>{{ form.classement_anterieur }}</td>
+ <td>{{ form.salaire_anterieur }} {{ form.devise_anterieur }}</td>
+ <td>{{ form.statut_anterieur }}</td>
+ <td>{{ form.type_contrat_anterieur }}</td>
+ <td colspan="3"></td>
+ </tr>
+ <tr>
+ <td colspan="7">
+ <h3>Précédent titulaire <span class="info">(le cas échéant)</span></h3>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="7">
+ {% if request.user|test_membre_drh %}
+ {{ form.instance.employe_anterieur }}{{ form.employe_anterieur }}
+ {% else %}
+ {{ form.instance.employe_anterieur }}{{ form.employe_anterieur.as_hidden }}
+ {% endif %}
+ {{ form.employe_anterieur.errors }}
+ </td>
+ </tr>
+ <tr>
+ <th>{{ form.classement_titulaire_anterieur.label_tag }}</th>
+ <th colspan="4">{{ form.salaire_titulaire_anterieur.label_tag }}</th>
+ <th>{{ form.statut_titulaire_anterieur.label_tag }}</th>
+ <th></th>
+ </tr>
+ <tr>
+ {% if request.user|test_membre_drh %}
+ <td>{{ form.instance.classement_titulaire_anterieur }}
+ {{ form.classement_titulaire_anterieur }}<br />
+ {{ form.classement_titulaire_anterieur.errors }}
+ </td>
+ <td>{{ form.instance.salaire_titulaire_anterieur }}{{ form.salaire_titulaire_anterieur }} {{ form.devise_titulaire_anterieur }}</td>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td>{{ form.instance.statut_titulaire_anterieur }}{{ form.statut_titulaire_anterieur }}</td>
+ {% else %}
+ <td>{{ form.instance.classement_titulaire_anterieur }}
+ {{ form.classement_titulaire_anterieur.as_hidden }}<br />
+ {{ form.classement_titulaire_anterieur.errors }}
+ </td>
+ <td>{{ form.instance.salaire_titulaire_anterieur }}{{ form.salaire_titulaire_anterieur.as_hidden }} {{ form.instance.devise_titulaire_anterieur.as_hidden }}</td>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td>{{ form.instance.statut_titulaire_anterieur }}{{ form.statut_titulaire_anterieur.as_hidden }}</td>
+ {% endif %}
+ <td></td>
+ </tr>
+ </tbody>
+</table>
+</fieldset>
+
+
+<fieldset>
+<h2>Accès et ouverture des comptes</h2>
+<table>
+ <tbody>
+ <tr>
+ <th>
+ {{ form.compte_compta.label_tag }}
+ </th>
+ <td>
+ {{ form.compte_compta }}<br />
+ {{ form.compte_compta.errors }}
+ </td>
+ <th>
+ {{ form.compte_courriel.label_tag }}
+ </th>
+ <td>
+ {{ form.compte_courriel }}<br />
+ {{ form.compte_courriel.errors }}
+ </td>
+ </tr>
+ </tbody>
+</table>
+</fieldset>
+
</div>
<fieldset>
<h2 class="section">SECTION 3 - COÛT GLOBAL</h2>
<fieldset>
+ <div>
+ <div class="gauche"><h2>Proposition de classement</h2></div>
+ <div class="gauche">
+ <table class="gauche">
+ <tr>
+ <th>{{ form.classement.label_tag }}</th>
+ <th colspan="3">{{ form.salaire.label_tag }}</th>
+ </tr>
+ <tr>
+ <td>{{ form.classement }}<br />{{ form.classement.errors }}</td>
+ <td>{{ form.salaire.errors }} {{ form.salaire }} {{ form.devise }}
+ <span class="info">(fourchette du poste : {{ poste.salaire_min }} {{ poste.devise_min.code }}
+ - {{ poste.salaire_max }} {{ poste.devise_max.code }})</span>
+ </td>
+ <td id="salaire-propose-euros" class="montant"></td>
+ <td>€</td>
+ </tr>
+ <script type="text/javascript">
+ /* Changement de classement, on repropose un salaire */
+ $('#id_classement').change(function() {
+ loadSalaire();
+ proposition_comparaison($('#id_devise').val());
+ });
+ /* changements, on recalcule */
+ $('#id_salaire').focusout(function() {proposition_comparaison($('#id_devise').val());});
+ $('#id_devise').change(function() {proposition_comparaison($('#id_devise').val());});
+ proposition_comparaison($('#id_devise').val());
+ </script>
+ </table>
+ </div>
+ </div>
+ {% endwith %}
+
+
+
{% include 'dae/embauche-remun.html' %}