Skip to content

Commit

Permalink
fix(mon-domifa): update of temp message form
Browse files Browse the repository at this point in the history
  • Loading branch information
pYassine committed Oct 1, 2024
1 parent daa50d8 commit 7343854
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export const CUSTOM_DOC_COURRIER_REFUS: StructureCustomDocTags = {
ENTRETIEN_ORIENTATION: "OUI",
ENTRETIEN_ORIENTATION_DETAIL: "",
ENTRETIEN_REVENUS_DETAIL: "",
ENTRETIEN_COMMENTAIRE: "",

ENTRETIEN_COMMENTAIRE: "Ceci est un commentaire",
USAGER_LANGUE: "",
USAGER_NATIONALITE: "",
MOTIF_REFUS: "Absence de lien avec la commune",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,15 @@
id="description"
name="description"
[required]="true"
[ngClass]="{
'description-invalid':
(f.description.dirty || submitted) && f.description.errors,
'is-valid':
(f.description.dirty || f.description.value) &&
!f.description.errors
}"
></ckeditor>
{{ tempMessageForm.get("description")?.value }}

<div
*ngIf="
tempMessageForm.get('description')?.invalid &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
min-height: 200px !important;
border-radius: 0 0 4px 4px !important;
}

:host ::ng-deep #description.description-invalid .ck-editor__main {
border: 1px solid red !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
@Component({
selector: "app-manage-structure-information-form",
templateUrl: "./manage-structure-information-form.component.html",
styleUrls: ["./manage-structure-information-form.component.css"],
styleUrls: ["./manage-structure-information-form.component.scss"],
})
export class ManageStructureInformationFormComponent
implements OnInit, OnDestroy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<div *ngIf="structureInformation?.length" class="my-2">
<h2 class="content section-title">Message de votre structure</h2>
<h2 class="content section-title">
{{ structureInformation.length > 1 ? "Messages" : "Message" }} de votre
structure
</h2>

<div class="content section-content">
<div>
Expand Down

0 comments on commit 7343854

Please sign in to comment.