-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bouton unique impression (#390)
* feat: bouton unique impression * fix: delete unuse variable * feat: add tracking matomo
- Loading branch information
Showing
17 changed files
with
112 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...components/lieux-mediation-numerique-details/bandeau-erreur/bandeau-erreur.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...ediation-numerique-details/impression-choice-modal/impression-choice-modal.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<app-modal #modal heading="Imprimer la fiche" icon="ri-printer-line" bgBody="light" bgFooter="light"> | ||
<div class="text-center"> | ||
<h5 class="h5 fw-bold text-primary">Vous êtes médiateur numérique ?</h5> | ||
<div class="my-3"> | ||
Vous pouvez générer une fiche d'orientation pour la structure | ||
<br /> | ||
qui accueillera votre bénéficiaire. | ||
</div> | ||
</div> | ||
<button | ||
type="button" | ||
(click)="orientationSheetModalModal.emit($event); modal.close()" | ||
class="btn bg-white mb-3 px-lg-3 px-2 py-3 rounded-0 d-flex position-relative w-100"> | ||
<span class="ri-circled bg-primary text-light fw-normal me-3 my-auto d-sm-block d-none"> | ||
<i class="ri-calendar-todo-line" aria-hidden="true"></i> | ||
</span> | ||
<div class="d-flex flex-column"> | ||
<span class="my-auto text-start">Générer une fiche d'orientation</span> | ||
<small class="my-auto text-start text-info fst-italic">En 2 étapes avec vos informations et celles du bénéficiaire</small> | ||
</div> | ||
<i class="ri-arrow-right-s-line text-muted-dark ri-2x mb-auto ms-auto" aria-hidden="true"></i> | ||
</button> | ||
<app-text-separator background="light">OU</app-text-separator> | ||
<button | ||
type="button" | ||
(click)="print.emit()" | ||
class="btn bg-white mb-3 px-lg-3 px-2 py-3 rounded-0 d-flex position-relative w-100"> | ||
<span class="ri-circled bg-primary text-light fw-normal me-3 my-auto d-sm-block d-none"> | ||
<i class="ri-calendar-todo-line" aria-hidden="true"></i> | ||
</span> | ||
<div class="d-flex flex-column"> | ||
<span class="orientation-btn-label my-auto text-start">Imprimer la fiche</span> | ||
<small class="my-auto text-start text-info fst-italic"> | ||
Imprimer simplement la fiche du lieu avec toutes ses informations | ||
</small> | ||
</div> | ||
<i class="ri-arrow-right-s-line text-muted-dark ri-2x mb-auto ms-auto" aria-hidden="true"></i> | ||
</button> | ||
</app-modal> |
15 changes: 15 additions & 0 deletions
15
...-mediation-numerique-details/impression-choice-modal/impression-choice-modal.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ChangeDetectionStrategy, Component, EventEmitter, Output, ViewChild } from '@angular/core'; | ||
import { ModalComponent } from '@features/core'; | ||
|
||
@Component({ | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
selector: 'app-impression-choice-modal', | ||
templateUrl: './impression-choice-modal.component.html' | ||
}) | ||
export class ImpressionChoiceModalComponent { | ||
@ViewChild(ModalComponent) control!: ModalComponent; | ||
|
||
@Output() public orientationSheetModalModal: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>(); | ||
|
||
@Output() public print: EventEmitter<void> = new EventEmitter<void>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
src/features/core/components/text-separator/text-separator.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { TextSeparatorComponent } from './text-separator.component'; | ||
import { RouterLinkActive } from '@angular/router'; | ||
|
||
@NgModule({ | ||
declarations: [TextSeparatorComponent], | ||
imports: [CommonModule, RouterLinkActive], | ||
exports: [TextSeparatorComponent] | ||
}) | ||
export class TextSeparatorModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters