712 lines
35 KiB
XML
712 lines
35 KiB
XML
<metal:block use-macro="main_template">
|
|
<div metal:fill-slot="content">
|
|
|
|
<ul class="nav nav-tabs">
|
|
<li class="active"><a data-toggle="tab" href="#inscription">FICHE</a></li>
|
|
<li><a data-toggle="tab" href="#permis">PERMIS</a></li>
|
|
<li><a data-toggle="tab" href="#examens">EXAMENS</a></li>
|
|
<li><a data-toggle="tab" href="#compte">COMPTE</a></li>
|
|
<li><a data-toggle="tab" href="#suivi">SUIVI ADM.</a></li>
|
|
<li><a data-toggle="tab" href="#devis">DEVIS</a></li>
|
|
<li><a data-toggle="tab" href="#cpf">CPF</a></li>
|
|
<li><a data-toggle="tab" href="#justifs">JUSTIFS</a></li>
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
<!-- FICHE ELEVE -->
|
|
<div id="inscription" class="tab-pane fade in active">
|
|
<h3>
|
|
FICHE ELEVE
|
|
<!-- SUIVI PEDAGOGIQUE -->
|
|
<a href="${request.application_url}/show_iframe/suivi-peda-${eleve.CD_CLI}" class="btn btn-primary" role="button">
|
|
<span class="glyphicon glyphicon-ok"></span> Suivi pédagogique</a>
|
|
</h3>
|
|
<table class="table">
|
|
<tr>
|
|
<td width="200">
|
|
Fiche No : <b>${eleve.CD_CLI}</b>
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<br />
|
|
Tél. portable - fixe<br />
|
|
Tél. du père - la mère<br />
|
|
Email élève<br />
|
|
</td>
|
|
<td width="300">
|
|
${eleve.CIVILITE} ${eleve.NOMPREN}<br />
|
|
${eleve.NOM_JF}<br />
|
|
${eleve.ADRESSE}<br />
|
|
${eleve.ADRESSE2}<br />
|
|
${eleve.CODEPOST} ${eleve.VILLE}<br />
|
|
<br />
|
|
<a href="tel:${eleve.TEL2}">${eleve.TEL2}</a> - ${eleve.TEL}<br />
|
|
${eleve.TEL3} - ${eleve.TEL4}<br />
|
|
${eleve.email}<br />
|
|
</td>
|
|
<td>
|
|
<a href="${request.application_url}/eleve_edit/${eleve.CD_CLI}" class="btn btn-primary" role="button">
|
|
<span class="glyphicon glyphicon-pencil"></span> Modifier</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
Profession<br />
|
|
Nationalité<br />
|
|
Age<br />
|
|
Date et lieu naissance<br />
|
|
Pays naissance<br />
|
|
</td>
|
|
<td>
|
|
${eleve.PROFESSION} <br />
|
|
${eleve.NATION}<br />
|
|
${age}<br />
|
|
${eleve.DATE_NAIS.strftime('%d-%m-%Y')} à ${eleve.LIEU_NAIS}<br />
|
|
${eleve.PAYS_NAIS}
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<b>Représentant légal :</b><br />
|
|
Nom - Prenom<br />
|
|
Date naissance<br />
|
|
Adresse<br />
|
|
</td>
|
|
<td>
|
|
<br />
|
|
${eleve.representant_nom} - ${eleve.representant_prenom}<br />
|
|
${eleve.representant_dnaiss}<br />
|
|
${eleve.representant_adresse}<br />
|
|
${eleve.representant_cp} ${eleve.representant_ville}
|
|
</td>
|
|
<td>
|
|
<a href="${request.application_url}/eleve_representant/${eleve.CD_CLI}" class="btn btn-primary" role="button">
|
|
<span class="glyphicon glyphicon-user"></span> Rep. légal</a><br/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<b>Nom du payeur</b><br />
|
|
Adresse<br />
|
|
<br />
|
|
Téléphone<br />
|
|
Email<br />
|
|
</td>
|
|
<td>
|
|
${eleve.payeur_nom}<br />
|
|
${eleve.payeur_adresse}<br />
|
|
${eleve.payeur_cp} ${eleve.payeur_ville}<br />
|
|
${eleve.payeur_tel}<br />
|
|
${eleve.payeur_email}<br />
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
Permis - Formule<br />
|
|
Fin contrat initial<br />
|
|
Fin forfait code le<br />
|
|
Code périmé le <br />
|
|
Dates de stage<br />
|
|
Rendez-vous préalable
|
|
</td>
|
|
<td>
|
|
${eleve.PERMIS_DEMANDE} - ${eleve.FORMULE}<br />
|
|
${eleve.fin_contrat_le.strftime('%d-%m-%Y')}<br />
|
|
<span tal:condition="eleve.fin_forfait_code_le">${eleve.fin_forfait_code_le.strftime('%d-%m-%Y')}</span><br />
|
|
<span tal:condition="eleve.PERIME_LE">${eleve.PERIME_LE.strftime('%d-%m-%Y')}</span><br />
|
|
${dates_stage}<br />
|
|
<span tal:condition="eleve.rdv_prealable_le">${eleve.rdv_prealable_le.strftime('%d-%m-%Y')}</span><br />
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
Moniteur référent 1<br />
|
|
Moniteur référent 2<br />
|
|
Moniteur stage<br />
|
|
Moniteur circuit<br />
|
|
Filière<br />
|
|
Niveau<br />
|
|
Estimées à l'évaluation<br />
|
|
Revues après le stage<br />
|
|
</td>
|
|
<td>
|
|
${referent1_nom}<br />
|
|
${referent2_nom}<br />
|
|
${stage_nom}<br />
|
|
${circuit_nom}<br />
|
|
${eleve.filiere}<br />
|
|
${eleve.niveau}<br />
|
|
${eleve.heures_estimees} heures<br />
|
|
${eleve.heures_revues} heures<br />
|
|
</td>
|
|
<td>
|
|
<a href="${request.application_url}/eleve_referent/${eleve.CD_CLI}" class="btn btn-primary" role="button">
|
|
<span class="glyphicon glyphicon-pencil"></span> Référents</a>
|
|
<a href="${request.application_url}/eleve_filiere_niveau/${eleve.CD_CLI}" class="btn btn-primary" role="button">
|
|
<span class="glyphicon glyphicon-pencil"></span> Filière-Niveau</a> <br><br>
|
|
|
|
</td>
|
|
</tr>
|
|
<!-- ELEVE ENTREPRISE -->
|
|
<tr>
|
|
<td>
|
|
Nom Entreprise<br />
|
|
No de facture<br />
|
|
En-cours autorisé<br />
|
|
Ne pas relancer si débiteur<br />
|
|
Ne pas spammer (CNIL)<br />
|
|
<span tal:condition = "eleve.visite_med_le or eleve.visite_med_fin_le">Visite médicale le<br /></span>
|
|
Complet le<br />
|
|
</td>
|
|
<td>
|
|
${eleve.NOM_ENTREPRISE}<br />
|
|
${eleve.No_Facture}<br />
|
|
${layout.to_euro(eleve.encours_societe)}<br />
|
|
<span tal:condition = "eleve.NePasRelancer != 0">OUI</span><br />
|
|
<span tal:condition = "eleve.NePasSpammer != 0">OUI</span><br />
|
|
<span tal:condition = "eleve.visite_med_le">${visite_med_le} fin ${visite_med_fin_le}<br /></span>
|
|
<span tal:condition = "eleve.COMPLET_LE">${complet_le}</span><br />
|
|
</td>
|
|
<td>
|
|
<a href="${request.application_url}/eleve_entreprise/${eleve.CD_CLI}" class="btn btn-primary" role="button" tal:condition="eleve.TYPE_ENTREPRISE == 'E'">
|
|
<span class="glyphicon glyphicon-pencil"></span> Modifier</a> <br><br>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
Agence de rattachem.<br />
|
|
Inscrit le<br />
|
|
Demande NEPH<br />
|
|
Inscription OK<br />
|
|
Enregistré le<br />
|
|
No d'immatriculation<br />
|
|
|
|
</td>
|
|
<td>
|
|
${eleve.AGENCE} - ${agence.LIBELLE}<br />
|
|
${eleve.cree_le.strftime('%d-%m-%Y')}<br />
|
|
<span tal:condition = "eleve.demande_NEPH">${eleve.demande_NEPH.strftime('%d-%m-%Y')}</span><br />
|
|
<span tal:condition = "eleve.inscription_OK">${eleve.inscription_OK.strftime('%d-%m-%Y')}</span><br />
|
|
<span tal:condition = "eleve.DOSSIER_DATE"><b>${eleve.DOSSIER_DATE.strftime('%d-%m-%Y')}</b></span><br />
|
|
<b>${eleve.DOSSIER_NO}</b><br />
|
|
|
|
</td>
|
|
<td>
|
|
<a href="${request.application_url}/eleve_doc_prefecture/${eleve.CD_CLI}" class="btn btn-primary" role="button">
|
|
<span class="glyphicon glyphicon-folder-open"></span> Dos. préfecture</a><br/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
Dernière modif le<br />
|
|
</td>
|
|
<td>
|
|
<span tal:condition = "eleve.modif_le">${eleve.modif_le.strftime('%d/%m/%Y %H:%M')}</span> par ${eleve.CD_UTI}<br />
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</div> <!-- onglet inscription -->
|
|
|
|
<!-- ONGLET PERMIS -->
|
|
<div id="permis" class="tab-pane fade">
|
|
<h3>PERMIS OBTENU(S)</h3>
|
|
<p>
|
|
<a href="${request.application_url}/eleve_permis/${eleve.CD_CLI}/0" class="btn btn-success" role="button">
|
|
<span class="glyphicon glyphicon-plus"></span> Nouveau permis</a>
|
|
</p>
|
|
<table class="table table-striped table-bordered" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Catégorie</th>
|
|
<th>Numéro</th>
|
|
<th>Date</th>
|
|
<th>Lieu d'obtention</th>
|
|
<th>Par</th>
|
|
</tr>
|
|
</thead>
|
|
<tr tal:repeat="cat permis">
|
|
<td>${cat.PERMIS}</td>
|
|
<td><a href="/eleve_permis/${eleve.CD_CLI}/${cat.no_ligne}">${cat.NUMERO}</a></td>
|
|
<td><span tal:condition="cat.OBTENU_LE">${cat.OBTENU_LE.strftime('%d-%m-%Y')}</span></td>
|
|
<td>${cat.LIEU}</td>
|
|
<td>${cat.CD_UTI}, le ${cat.modif_le.strftime('%d-%m-%Y')}</td>
|
|
</tr>
|
|
</table>
|
|
<p tal:condition="eleve.PERM_PO1">
|
|
<b>Pour Cerfa 02 : </b><br />
|
|
Dernier permis obtenu : <b>${eleve.PERM_PO1}</b>, No <b>${eleve.NO_PO1}</b> obtenu le <b tal:condition="eleve.DATE_PO1">${eleve.DATE_PO1.strftime('%d-%m-%Y')}</b> à <b>${eleve.LIEU_PO1}</b>
|
|
</p>
|
|
<br />
|
|
<h3>PERMIS A POINT</h3>
|
|
<table class="table" tal:condition="eleve.FORMULE=='POINT'">
|
|
<tr>
|
|
<td width="300">
|
|
Type de stage obligatoire<br />
|
|
<br />
|
|
Date de délivrance du permis<br />
|
|
Préfecture de délivrance<br />
|
|
Date de l'infraction<br />
|
|
Lieu de l'infraction<br />
|
|
</td>
|
|
<td width="300">
|
|
${eleve.cas_PAP}<br />
|
|
<br />
|
|
${permis_delivre_le}<br />
|
|
${eleve.permis_delivre_par}<br />
|
|
<span tal:condition="eleve.infraction_le">${eleve.infraction_le.strftime('%d-%m-%Y')} à ${eleve.infraction_a}</span><br />
|
|
${eleve.infraction_lieu}<br />
|
|
</td>
|
|
<td>
|
|
<a href="${request.application_url}/eleve_pap/${eleve.CD_CLI}" class="btn btn-primary" role="button">
|
|
<span class="glyphicon glyphicon-pencil"></span> Modifier</a>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
</div> <!-- onglet permis -->
|
|
|
|
<!-- EXAMENS -->
|
|
<div id="examens" class="tab-pane fade">
|
|
<h3>EXAMENS</h3>
|
|
|
|
<p class="text-center text-primary"><b>RESUME EXAMENS</b></p>
|
|
<table class="table table-striped table-bordered" cellspacing="0" width="70%">
|
|
<thead>
|
|
<tr>
|
|
<th> </th>
|
|
<th>Nb de passages</th>
|
|
<th>Dernier passage le</th>
|
|
<th>Date d'obtention</th>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<th>Examens théoriques</th>
|
|
<td>${eleve.TR_T_NB}</td>
|
|
<td tal:condition="eleve.TR_T_DATE">${eleve.TR_T_DATE.strftime('%d-%m-%Y')}</td>
|
|
<td tal:condition="eleve.TR_T_OK">${eleve.TR_T_OK.strftime('%d-%m-%Y')}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Examens pratiques</th>
|
|
<td>${eleve.TR_P_NB}</td>
|
|
<td tal:condition="eleve.TR_P_DATE">${eleve.TR_P_DATE.strftime('%d-%m-%Y')}</td>
|
|
<td tal:condition="eleve.TR_P_OK">${eleve.TR_P_OK.strftime('%d-%m-%Y')}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Examens circulation</th>
|
|
<td>${eleve.TR_R_NB}</td>
|
|
<td tal:condition="eleve.TR_R_DATE">${eleve.TR_R_DATE.strftime('%d-%m-%Y')}</td>
|
|
<td tal:condition="eleve.TR_R_OK">${eleve.TR_R_OK.strftime('%d-%m-%Y')}</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
<p class="text-center text-primary"><b>HISTORIQUE EXAMENS</b></p>
|
|
<table class="table table-striped table-bordered" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Date heure</th>
|
|
<th>Cat.</th>
|
|
<th>Lieu</th>
|
|
<th>Résultat</th>
|
|
<th>No</th>
|
|
<th>Unité</th>
|
|
<th>Indice</th>
|
|
<th>Agence</th>
|
|
</tr>
|
|
</thead>
|
|
<tr tal:repeat="exam examens">
|
|
<td>${exam.date_heure}</td>
|
|
<td>${exam.PERMIS}</td>
|
|
<td>${exam.lieu}</td>
|
|
<td>${exam.libelle}</td>
|
|
<td>${exam.NO_EXA}</td>
|
|
<td>${exam.UNITE}</td>
|
|
<td>${exam.INDICE}</td>
|
|
<td>${exam.AGENCE} - ${exam.CD_UTI}</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
</div> <!-- onglet examens -->
|
|
|
|
<!-- COMPTE -->
|
|
<div id="compte" class="tab-pane fade">
|
|
<h3>COMPTE</h3>
|
|
<table class="table table-condensed table-bordered" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">Heures prises / prév. / route</th>
|
|
<th>Dern. opération</th>
|
|
<th>Type - Nom entrepr. - Encours aut.</th>
|
|
<th class="text-right">Total débit</th>
|
|
<th class="text-right">Total Mt valeur</th>
|
|
<th class="text-right">Solde</th>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<td class="text-center">${eleve.heures_prises} h / ${eleve.heures_prevues} h / ${eleve.hroute_prises} h</td>
|
|
<td> <span tal:condition="eleve.DERN_OPE_LE">${eleve.DERN_OPE_LE.strftime('%d-%m-%Y')}</span></td>
|
|
<td>${eleve.TYPE_ENTREPRISE} - ${eleve.NOM_ENTREPRISE} - ${layout.to_euro(eleve.encours_societe)}</td>
|
|
<td class="text-right">${layout.to_euro(eleve.DEBIT)}</td>
|
|
<td class="text-right text-success" tal:condition="solde >= 0"><b>${layout.to_euro(solde)}</b></td>
|
|
<td class="text-right text-success" tal:condition="solde >= 0"><b>${layout.to_euro(mtvaltotal)}</b></td>
|
|
<td class="text-right text-danger" tal:condition="solde < 0"><b>${layout.to_euro(solde)}</b></td>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
<a href="${url_contrat}" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-list-alt"></span> Gérer les CONTRATS</a>
|
|
<a href="${request.application_url}/eleve_credit/${eleve.CD_CLI}/0" class="btn btn-success" role="button"><span class="glyphicon glyphicon-plus"></span> Crédit</a>
|
|
<a href="${request.application_url}/eleve_debit/${eleve.CD_CLI}/0" tal:condition="code >= 6" class="btn btn-success" role="button"><span class="glyphicon glyphicon-plus"></span> Débit</a>
|
|
<a href="${request.application_url}/eleve_lettrer/${eleve.CD_CLI}" class="btn btn-default" role="button"><span class="glyphicon glyphicon-plus"></span> Lettrer</a>
|
|
</p>
|
|
<table id="compte-eleve" class="table table-condensed table-bordered" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Mon</th>
|
|
<th>Désignation</th>
|
|
<th>Qté</th>
|
|
<th>Débit</th>
|
|
<th>Crédit</th>
|
|
<th>Mode</th>
|
|
<th>Date valeur</th>
|
|
<th>Mt valeur</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div> <!-- onglet compte -->
|
|
<!-- SUIVI -->
|
|
<div id="suivi" class="tab-pane fade">
|
|
<h3>SUIVI ADMINISTRATIF
|
|
<a href="${request.application_url}/suivi_edit/${eleve.CD_CLI}/0" class="btn btn-success" role="button">
|
|
<span class="glyphicon glyphicon-plus"></span> Nouveau</a>
|
|
</h3>
|
|
<table class="table table-striped table-bordered" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th width="20%">Date</th>
|
|
<th>Type</th>
|
|
<th>Moyen</th>
|
|
<th>Résultat</th>
|
|
<th>Uti.</th>
|
|
<th>No</th>
|
|
</tr>
|
|
</thead>
|
|
<tr tal:repeat="item suivis">
|
|
<td><span tal:condition="item.cree_le">${item.cree_le.strftime('%d/%m/%Y - %H:%M')}</span></td>
|
|
<td>${item.TYPE_REL}</td>
|
|
<td>${item.MOYEN_REL}</td>
|
|
<td><a href="/suivi_edit/${item.CD_CLI}/${item.no_ligne}">${item.RESULTAT}</a></td>
|
|
<td>${item.CD_UTI}</td>
|
|
<td>${item.no_ligne}</td>
|
|
</tr>
|
|
</table>
|
|
<h3 class="text-primary">RENDEZ-VOUS DU PROSPECT</h3>
|
|
<table class="table table-striped table-bordered" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th width="20%">Date</th>
|
|
<th>Statut</th>
|
|
<th>Résultat</th>
|
|
<th>Notes</th>
|
|
<th>Uti.</th>
|
|
<th width="20%">Créé le</th>
|
|
</tr>
|
|
</thead>
|
|
<tr tal:repeat="item rdvs">
|
|
<td><a href="/agenda_edit/${item.no_ligne}"><span tal:condition="item.debut_rdv">${item.debut_rdv.strftime('%d/%m/%Y - %H:%M')}</span></a></td>
|
|
<td>${item.statut}</td>
|
|
<td>${item.resultat}</td>
|
|
<td>${item.notes}</td>
|
|
<td>${item.cd_uti}</td>
|
|
<td><span tal:condition="item.cree_le">${item.cree_le.strftime('%d/%m/%Y - %H:%M')}</span></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- ONGLET DEVIS -->
|
|
<div id="devis" class="tab-pane fade">
|
|
<h3><a href="${request.application_url}/devis_frm/0/E${eleve.CD_CLI}" class="btn btn-success" role="button">
|
|
<span class="glyphicon glyphicon-plus"></span> Nouveau devis</a></h3>
|
|
|
|
<table class="table table-condensed table-bordered" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>No devis</th>
|
|
<th>Créé le</th>
|
|
<th>Organisme</th>
|
|
<th>Type devis</th>
|
|
<th class="text-center">Clôturé le</th>
|
|
<th class="text-center">Util.</th>
|
|
</tr>
|
|
</thead>
|
|
<tr tal:repeat="item devis">
|
|
<td>
|
|
<a href="${request.application_url}/devis_frm/${item.no_devis}/E${eleve.CD_CLI}">${item.no_devis}</a>
|
|
</td>
|
|
<td>${item.cree_le.strftime('%d-%m-%Y')}</td>
|
|
<td>${item.organisme}</td>
|
|
<td>${item.type_devis}</td>
|
|
<td class="text-center" tal:condition="item.cloture_le">${item.cloture_le.strftime('%d-%m-%Y')} (${item.statut})</td>
|
|
<td tal:condition="not item.cloture_le"></td>
|
|
<td class="text-center">${item.cd_uti}</td>
|
|
</tr>
|
|
</table>
|
|
</div> <!-- onglet devis -->
|
|
|
|
<!-- ONGLET DEVIS CPF -->
|
|
<div id="cpf" class="tab-pane fade">
|
|
<h3><a href="${request.application_url}/devis_cpf_frm/0/E${eleve.CD_CLI}" class="btn btn-success" role="button">
|
|
<span class="glyphicon glyphicon-plus"></span> Nouveau CPF</a></h3>
|
|
|
|
<table class="table table-condensed table-bordered" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>No devis</th>
|
|
<th>Créé le</th>
|
|
<th>Type devis</th>
|
|
<th>Montant - Heures</th>
|
|
<th>No dossier</th>
|
|
<th>Demandé le</th>
|
|
<th class="text-center">Début le</th>
|
|
<th class="text-center">Fin le</th>
|
|
<th class="text-center">Clôturé le</th>
|
|
<th class="text-center">Util.</th>
|
|
</tr>
|
|
</thead>
|
|
<tr tal:repeat="item devis_cpf">
|
|
<td>
|
|
<a href="${request.application_url}/devis_cpf_frm/${item.no_devis}/E${eleve.CD_CLI}">${item.no_devis}</a>
|
|
</td>
|
|
<td>${item.cree_le.strftime('%d-%m-%Y')}</td>
|
|
<td>${item.type_devis}</td>
|
|
<td>${layout.to_euro(item.montant_pec)} - ${item.nb_heures_pec} h</td>
|
|
<td>${item.no_dossier}</td>
|
|
<td tal:condition="item.demande_le">${item.demande_le.strftime('%d-%m-%Y')}</td>
|
|
<td tal:condition="not item.demande_le"> </td>
|
|
<td tal:condition="item.formation_debut_le">${item.formation_debut_le.strftime('%d-%m-%Y')}</td>
|
|
<td tal:condition="not item.formation_debut_le"> </td>
|
|
<td tal:condition="item.formation_fin_le">${item.formation_fin_le.strftime('%d-%m-%Y')}</td>
|
|
<td tal:condition="not item.formation_fin_le"> </td>
|
|
<td tal:condition="item.cloture_le" class="text-success text-center"><b>${item.cloture_le.strftime('%d-%m-%Y')} (${item.statut})</b></td>
|
|
<td tal:condition="not item.cloture_le"> </td>
|
|
<td class="text-center">${item.cd_uti}</td>
|
|
</tr>
|
|
</table>
|
|
</div> <!-- onglet devis CPF -->
|
|
|
|
<!-- JUSTIFS -->
|
|
<div id="justifs" class="tab-pane fade">
|
|
<h3 class="text-center">JUSTIFiCATIFS</h3>
|
|
<p>
|
|
<a href="#" class="btn btn-success" role="button"
|
|
data-toggle="modal" data-target="#CreateJustif"><span class="glyphicon glyphicon-plus"></span> Nouveau justificatif</a>
|
|
<span tal:condition="eleve.COMPLET_LE">
|
|
|
|
Dossier complet le <b>${eleve.COMPLET_LE.strftime('%d-%m-%Y')}</b></span>
|
|
<span tal:condition="not eleve.COMPLET_LE" class="text-danger">
|
|
<a href="${request.application_url}/eleve_email/${eleve.CD_CLI}" class="btn btn-primary" role="button">
|
|
<span class="glyphicon glyphicon-send"></span> Email Elève</a>
|
|
|
|
<b>Dossier INCOMPLET</b>
|
|
</span>
|
|
</p>
|
|
<table class="table table-condensed table-bordered" cellspacing="0" width="100%" tal:condition="justifs">
|
|
<tr tal:repeat="justif justifs">
|
|
<td class="text-center">${justif.no_tri}</td>
|
|
<td tal:condition="justif.valide==0">${justif.libelle}</td>
|
|
<td tal:condition="justif.valide!=0" class="success">${justif.libelle}</td>
|
|
<td tal:condition="justif.libelle_fic">${justif.libelle_fic}</td>
|
|
<td tal:condition="not justif.libelle_fic">
|
|
<a tal:condition="justif.nom_fic" href="${docs_url}/${justif.nom_fic}"
|
|
target="popup"
|
|
onclick="window.open('${docs_url}/${justif.nom_fic},'popup','width=900,height=768'); return false;">
|
|
${justif.nom_fic}
|
|
</a>
|
|
<a tal:condition="not justif.nom_fic" href="${request.application_url}/doc_upload/${justif.no_ligne}/${justif.cd_cli}"> Télécharger</a>
|
|
</td>
|
|
<td>${justif.taille_fic} Ko</td>
|
|
<td>${justif.cd_uti}</td>
|
|
<td>
|
|
<a href="${request.application_url}/doc_edit/${justif.no_ligne}/${justif.cd_cli}">Modifier</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3 class="text-center">DOCUMENTS</h3>
|
|
<p>
|
|
<a href="#" class="btn btn-success" role="button"
|
|
data-toggle="modal" data-target="#CreateDoc"><span class="glyphicon glyphicon-plus"></span> Nouveau document</a>
|
|
</p>
|
|
<table class="table table-condensed table-bordered" cellspacing="0" width="100%" tal:condition="docs">
|
|
<tr tal:repeat="justif docs">
|
|
<td>${justif.libelle}</td>
|
|
<td tal:condition="justif.nom_fic">
|
|
<!-- a href="/pdfviewer/${justif.nom_fic}">${justif.nom_fic}</a -->
|
|
<a href="${docs_url}/${justif.nom_fic}"
|
|
target="popup"
|
|
onclick="window.open('${docs_url}/${justif.nom_fic},'popup','width=900,height=768'); return false;">
|
|
${justif.nom_fic}
|
|
</a>
|
|
</td>
|
|
<td tal:condition="not justif.nom_fic">
|
|
<a href="${request.application_url}/doc_upload/${justif.no_ligne}/${justif.cd_cli}"> Télécharger</a>
|
|
</td>
|
|
<td>${justif.taille_fic} Ko</td>
|
|
<td>${justif.cd_uti}</td>
|
|
<td>
|
|
<a href="${request.application_url}/doc_edit/${justif.no_ligne}/${justif.cd_cli}">Modifier</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- Modal : Confirmation CREATION JUSTIF -->
|
|
<div class="modal fade" id="CreateJustif" role="dialog" aria-labelledby="confirmCreateLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
<h4 class="modal-title">Ajouter un justificatif</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<!-- The form is placed inside the body of modal -->
|
|
<form id="add_justif-form" class="form-horizontal" action="${url}#justifs" method="post"
|
|
data-fv-framework="bootstrap"
|
|
data-fv-icon-valid="glyphicon glyphicon-ok"
|
|
data-fv-icon-invalid="glyphicon glyphicon-remove"
|
|
data-fv-icon-validating="glyphicon glyphicon-refresh">
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-3">Ajouter</label>
|
|
<div class="col-xs-6">
|
|
<select class="form-control static" name="code_add">
|
|
<tal:block tal:repeat="item justifs_manquant">
|
|
<option value="${item.CODE}" tal:attributes="selected code_add==item.CODE and 'selected' or None">${item.LIBELLE}</option>
|
|
</tal:block>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-xs-5 col-xs-offset-3">
|
|
<button type="submit" class="btn btn-danger" name="form.justif_added">Ajouter</button>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Modal : Confirmation CREATION DOC -->
|
|
<div class="modal fade" id="CreateDoc" role="dialog" aria-labelledby="confirmCreateLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
<h4 class="modal-title">Ajouter un document</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<!-- The form is placed inside the body of modal -->
|
|
<form id="add_justif-form" class="form-horizontal" action="${url}#justifs" method="post"
|
|
data-fv-framework="bootstrap"
|
|
data-fv-icon-valid="glyphicon glyphicon-ok"
|
|
data-fv-icon-invalid="glyphicon glyphicon-remove"
|
|
data-fv-icon-validating="glyphicon glyphicon-refresh">
|
|
|
|
<div class="form-group">
|
|
<label class="control-label col-xs-3">Ajouter</label>
|
|
<div class="col-xs-6">
|
|
<select class="form-control static" name="doc_add">
|
|
<tal:block tal:repeat="item docs_manquant">
|
|
<option value="${item.CODE}" tal:attributes="selected doc_add==item.CODE and 'selected' or None">${item.LIBELLE}</option>
|
|
</tal:block>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-xs-5 col-xs-offset-3">
|
|
<button type="submit" class="btn btn-danger" name="form.doc_added">Ajouter</button>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<br />
|
|
<br />
|
|
</div> <!-- tab-content -->
|
|
|
|
<script type="text/javascript">
|
|
var dataCompte = ${dt_compte};
|
|
|
|
$(document).ready(function() {
|
|
$('#compte-eleve').DataTable({
|
|
data: dataCompte,
|
|
pageLength: 100,
|
|
bFilter:false,
|
|
bLengthChange: false,
|
|
bSort : false,
|
|
language: {
|
|
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
|
|
},
|
|
columnDefs: [
|
|
{
|
|
"targets":[2],
|
|
render: function (data, type, row, meta) {
|
|
if(parseInt(row[10]) === 0){
|
|
return '<a href="${request.application_url}/eleve_debit/${eleve.CD_CLI}/'+row[9]+'">'+data+'</a>'
|
|
}
|
|
else{
|
|
return '<a href="${request.application_url}/eleve_credit/${eleve.CD_CLI}/'+row[9]+'">'+data+'</a>'
|
|
}
|
|
}
|
|
},
|
|
{ className: "text-center", "targets": [1, 3, 6]},
|
|
{ className: "text-right", "targets": [4, 5, 8] },
|
|
],
|
|
createdRow: function( row, data, dataIndex ) {
|
|
if ( data[7] != "" ) {
|
|
// $( row ).css( "background-color", "LIGHTGREEN" );
|
|
// $( row ).addClass( "success" );
|
|
// $('td', row).eq(0).addClass("success");
|
|
}
|
|
if ( dataIndex == 3 ) {
|
|
// $( row ).css( "background-color", "LIGHTGREEN" );
|
|
// $( row ).addClass( "success" );
|
|
$('td', row).eq(0).addClass("success");
|
|
}
|
|
},
|
|
});
|
|
});
|
|
</script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
// Javascript to enable link to tab
|
|
var hash = document.location.hash;
|
|
if (hash) {
|
|
console.log(hash);
|
|
$('.nav-tabs a[href="'+hash+'"]').tab('show');
|
|
}
|
|
|
|
// Change hash for page-reload
|
|
$('a[data-toggle="tab"]').on('show.bs.tab', function (e) {
|
|
window.location.hash = e.target.hash;
|
|
});
|
|
});
|
|
</script>
|
|
<br />
|
|
<br />
|
|
</div><!-- content -->
|
|
</metal:block>
|
|
|
|
|