S4WEB/riot/modaleEcole.riot

129 lines
5.1 KiB
Plaintext
Raw Permalink Normal View History

2023-03-30 18:02:37 +02:00
<modaleEcole>
<div class="box">
<div class="columns is-mobile">
<div class="column is-two-thirds content mb-0">
<p class="has-text-weight-bold">
2023-03-30 23:27:28 +02:00
<a href={props.ecole.lien_form_psup}> {props.ecole.lib_comp_voe_ins} </a><br/>
<span class="tag is-danger" if={getSelectivite(props.ecole)<=25}>formation très sélective</span>
<span class="tag is-warning" if={getSelectivite(props.ecole)>25 && getSelectivite(props.ecole)<=50}>formation sélective</span>
<span class="tag is-success" if={getSelectivite(props.ecole)>50 && getSelectivite(props.ecole)<=75}>formation peu sélective</span>
<span class="tag is-info" if={getSelectivite(props.ecole)>=75}>formation très peu sélective</span>
2023-03-30 18:02:37 +02:00
</p>
<div>
<modal-text title="Ville" text="Saint-Jean-du-Gard">
<p class="my-2">Ville : {props.ecole.ville_etab}</p>
</modal-text>
</div>
<div>
<modal-text title="Département" text="Gard">
<p class="my-2">Département : {props.ecole.dep_lib}</p>
</modal-text>
</div>
<div>
<modal-text title="Académie" text="Montpellier">
<p class="my-2">Académie : {props.ecole.acad_mies}</p>
</modal-text>
</div>
<div>
<modal-text title="Contrat établissement" text="Public">
<p class="my-2">Contrat établissement : {props.ecole.contrat_etab}</p>
</modal-text>
</div>
<div>
<modal-text title="Capacité" text="12">
<p class="my-2">Capacité : {props.ecole.capa_fin}</p>
</modal-text>
</div>
<div>
<modal-text title="Nombres de voeux" text="51">
2023-03-30 23:27:28 +02:00
<p class="my-2">Nombres de voeux : {props.ecole.voe_tot + props.ecole.voe_tot_f} </p>
2023-03-30 18:02:37 +02:00
</modal-text>
</div>
<div>
<modal-text title="Admis hors académie" text="25%">
2023-03-30 23:27:28 +02:00
<p class="my-2">Admis hors académie : {100 - props.ecole.pct_aca_orig}%</p>
2023-03-30 18:02:37 +02:00
</modal-text>
</div>
<modal-text title="Rang du dernier admis :">
<p class="my-2">Rang du dernier admis :</p>
</modal-text>
<ul>
2023-03-30 23:27:28 +02:00
<li>Tous sauf les Bac technologiques : {props.ecole.ran_grp1}</li>
<li>Bac technologiques toutes séries : {props.ecole.ran_grp2}</li>
2023-03-30 18:02:37 +02:00
</ul>
</div>
<div class="column">
<p class="has-text-weight-bold"> Vitesse de remplissage</p>
<div class="timeline">
2023-03-31 12:13:20 +02:00
2023-03-30 18:02:37 +02:00
<ul>
<li class="timeline_li">
<div>
<p class="timeline_date">ouverture 27 mai</p>
2023-03-30 23:27:28 +02:00
<span class="timeline_percentage">{props.ecole.pct_acc_debutpp}%</span>
2023-03-30 18:02:37 +02:00
</div>
</li>
<li class="timeline_li">
<div>
<p class="timeline_date">17 juin</p>
2023-03-30 23:27:28 +02:00
<span class="timeline_percentage">{props.ecole.pct_acc_datebac}%</span>
2023-03-30 18:02:37 +02:00
</div>
</li>
<li class="timeline_li">
<div>
<p class="timeline_date">16 juillet</p>
2023-03-30 23:27:28 +02:00
<span class="timeline_percentage">{props.ecole.pct_acc_finpp}%</span>
2023-03-30 18:02:37 +02:00
</div>
</li>
</ul>
</div>
</div>
</div>
2023-03-30 23:27:28 +02:00
<statistiqueFormation pct_femme={getRepartitionFemme(props.ecole)} repartitionBac={getRepartitionBac(props.ecole)} repartitionMention={getRepartitionMention(props.ecole)} ></statistiqueFormation>
2023-03-30 18:02:37 +02:00
</div>
<script>
export default function todos(){
return {
onBeforeMount(props, state) {
// initial state
this.state = {
2023-03-30 23:27:28 +02:00
2023-03-30 18:02:37 +02:00
}
},
2023-03-30 23:27:28 +02:00
getRepartitionBac(ecole){
let repartition = [];
let total = ecole.acc_bg + ecole.acc_bt + ecole.acc_bp + ecole.acc_at
repartition.push(Math.round(ecole.acc_bg/total*100))
repartition.push(Math.round(ecole.acc_bt/total*100))
repartition.push(Math.round(ecole.acc_bp/total*100))
repartition.push(Math.round(ecole.acc_at/total*100))
return repartition;
},
2023-03-30 18:02:37 +02:00
2023-03-30 23:27:28 +02:00
getRepartitionMention(ecole){
let repartition = [];
let total = ecole.acc_sansmention + ecole.acc_ab + ecole.acc_b + ecole.acc_tb + ecole.acc_tbf
repartition.push(Math.round(ecole.acc_sansmention/total*100))
repartition.push(Math.round(ecole.acc_ab/total*100))
repartition.push(Math.round(ecole.acc_b/total*100))
repartition.push(Math.round(ecole.acc_tb/total*100))
repartition.push(Math.round(ecole.acc_tbf/total*100))
return repartition;
},
getRepartitionFemme(ecole){
return Math.round((ecole.acc_tot_f/ecole.acc_tot)*100);
},
2023-03-30 18:02:37 +02:00
2023-03-30 23:27:28 +02:00
getSelectivite(ecole){
return ecole.taux_acces_ens
2023-03-30 18:02:37 +02:00
}
}
2023-03-30 23:27:28 +02:00
}
2023-03-30 18:02:37 +02:00
</script>
</modaleEcole>