Skip to content
Snippets Groups Projects
Commit dacebfd6 authored by Pierre Ecarlat's avatar Pierre Ecarlat
Browse files

Make collapsed default to true and changed text in orientation

parent c94b767f
1 merge request!807V3.0.2
<form *ngIf="personalOfferForm" [formGroup]="personalOfferForm">
<div class="title">
<p class="overtitle">{{ structureName }}</p>
<h3>Quelles aides aux démarches en ligne proposez-vous&nbsp;?</h3>
<h3>Quelles aides aux démarches en ligne proposez-vous dans cette structure&nbsp;?</h3>
<p>Facultatif - Plusieurs choix possibles</p>
</div>
......
<form *ngIf="personalOfferForm" [formGroup]="personalOfferForm">
<div class="title">
<p class="overtitle">{{ structureName }}</p>
<h3>Quels accompagnements au numérique proposez-vous&nbsp;?</h3>
<h3>Quels accompagnements au numérique proposez-vous dans cette structure&nbsp;?</h3>
<p>Facultatif</p>
</div>
<app-training-type-picker
......
<div class="trainingContainer">
<app-collapse *ngFor="let category of categories" [expanded]="isCategorieExpanded(category.id)">
<app-collapse *ngFor="let category of categories" [expanded]="true">
<app-collapse-header>
<div class="collapseHeader">
<app-checkbox
......
......@@ -47,11 +47,6 @@ export class TrainingTypePickerComponent implements OnInit, OnChanges {
});
}
public isCategorieExpanded(id: string): boolean {
const index = this.selectedChoices.findIndex((category) => category.id === id);
return this.selectedChoices[index].modules.length !== 0;
}
public isModulePicked(categorie: Category, module: Module): boolean {
const index = this.selectedChoices.findIndex((_categorie) => _categorie.id === categorie.id);
if (index === -1) return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment