Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-front-angular
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zadi francice
beasy-front-angular
Commits
a49d17d0
You need to sign in or sign up before continuing.
Commit
a49d17d0
authored
Jun 28, 2024
by
zadi francice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formulaires etablissement-classe
parent
6769f14e
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
262 additions
and
333 deletions
+262
-333
classes.component.html
src/app/etablissement/classes/classes.component.html
+22
-89
etablissement.component.html
src/app/etablissement/etablissement.component.html
+5
-24
etablissement.component.scss
src/app/etablissement/etablissement.component.scss
+62
-0
dialog-etablissement.component.html
.../dialog-etablissement/dialog-etablissement.component.html
+45
-170
dialog-etablissement.component.ts
...nt/dialog-etablissement/dialog-etablissement.component.ts
+44
-15
view-etablissement.component.html
...ment/view-etablissement/view-etablissement.component.html
+1
-0
view-etablissement.component.scss
...ment/view-etablissement/view-etablissement.component.scss
+52
-0
view-etablissement.component.ts
...sement/view-etablissement/view-etablissement.component.ts
+1
-1
ajout-tpe.component.scss
src/app/tpe/ajout-tpe/ajout-tpe.component.scss
+0
-8
create-tpe.component.html
src/app/tpe/create-tpe/create-tpe.component.html
+18
-9
create-tpe.component.ts
src/app/tpe/create-tpe/create-tpe.component.ts
+0
-0
gerer-mes-tpe.component.html
src/app/tpe/gerer-mes-tpe/gerer-mes-tpe.component.html
+3
-1
view-user.component.html
src/app/utilisateurs/view-user/view-user.component.html
+2
-14
styles.scss
src/styles.scss
+7
-2
No files found.
src/app/etablissement/classes/classes.component.html
View file @
a49d17d0
<div
class=
"card-body mb-4"
>
<div
class=
"row"
>
<div
class=
"col-md-2"
></div>
<div
class=
"d-flex justify-content-between align-items-center"
style=
"color: white"
>
<nav
aria-label=
"breadcrumb"
>
<ol
class=
"breadcrumb"
>
<li
class=
"breadcrumb-item"
>
<a
href=
"#"
[
routerLink
]="['/
etablissement
']"
>
Etablissement
</a>
</li>
<li
class=
"breadcrumb-item"
>
<a
href=
"#"
[
routerLink
]="['/
etablissement
/
classes
']"
>
Classes
</a>
</li>
</ol>
</nav>
</div>
</div>
</div>
<!-- <mat-card appearance="outlined">
<mat-card-content>Simple card</mat-card-content>
</mat-card> -->
<!-- <div class="row">
<div class="col-md-3">
<mat-card
class="card rounded-2 border-0 border-bottom border-blue border-3">
<mat-card-content>
<div class="d-flex justify-content-between align-items-center">
<div>
<span class="fs-3 d-block">10</span>
<span class="fs-6 text-widget-light-gray">CLASSES</span>
</div>
<mat-icon class="text-widget" style="font-size: 25px"
>school</mat-icon
>
</div>
</mat-card-content>
</mat-card>
</div>
<div class="col-md-3">
<mat-card
class="card rounded-2 border-0 border-bottom border-blue border-3">
<mat-card-content>
<div class="d-flex justify-content-between align-items-center">
<div>
<span class="fs-3 d-block">10</span>
<span class="fs-6 text-widget-light-gray">CYCLES</span>
</div>
<mat-icon class="text-widget" style="font-size: 25px"
>hiking</mat-icon
>
</div>
</mat-card-content>
</mat-card>
</div>
<div class="col-md-3">
<mat-card
class="card rounded-2 border-0 border-bottom border-blue border-3">
<mat-card-content>
<div class="d-flex justify-content-between align-items-center">
<div>
<span class="fs-3 d-block">10</span>
<span class="fs-6 text-widget-light-gray">CHARGES ASSOCIÉES</span>
</div>
<mat-icon class="text-widget" style="font-size: 25px">spoke</mat-icon>
</div>
</mat-card-content>
</mat-card>
</div>
</div> -->
<div
class=
"d-flex justify-content-center"
>
<div
class=
"d-flex justify-content-center"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
...
@@ -127,18 +52,29 @@
...
@@ -127,18 +52,29 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!-- -->
<mat-tab-group
class=
"mb-4 border-2"
>
<mat-tab-group>
<mat-tab
label=
"Classes"
>
<mat-tab
label=
"Classes"
>
<div
class=
"content sm-gutter"
>
<div
class=
"content sm-gutter"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12 col-vlg-12 m-b-10"
>
<div>
<div
class=
"
row
-fluid"
>
<div
class=
"
container
-fluid"
>
<div
class=
"span12"
>
<div
class=
"span12"
>
<div
class=
"grid simple"
>
<div
class=
"grid simple"
>
<div
class=
"card-title"
></div>
<div
class=
"content sm-gutter"
>
<div
class=
"mb-4"
>
<!-- <h4>Liste des utilisateurs</h4> -->
</div>
<div
class=
"col-md-2"
></div>
</div>
<div
class=
"page-title d-flex justify-content-between"
>
<div
class=
"page-title d-flex justify-content-between"
>
<div
class=
"col-m-5 text-right"
>
<div
class=
"col-m-5 text-right"
>
<button
class=
"btn btn-secondary m-5"
>
<button
class=
"btn btn-secondary m-5"
style=
"border-radius: 15px"
>
Exporter
<i
class=
"fa fa-download m-1"
></i>
Exporter
<i
class=
"fa fa-download m-1"
></i>
</button>
</button>
</div>
</div>
...
@@ -151,21 +87,21 @@
...
@@ -151,21 +87,21 @@
</div>
</div>
<div
<div
class=
"example-container mat-elevation-z8"
class=
"example-container mat-elevation-z8"
style=
"margin-top: 40px"
>
style=
"margin-top: 40px
; overflow-x: hidden
"
>
<mat-form-field
appearance=
"outline"
>
<mat-form-field
appearance=
"outline"
>
<mat-label>
Filt
r
er
</mat-label>
<mat-label>
Filter
</mat-label>
<input
<input
matInput
matInput
(
keyup
)="
applyFilter
($
event
)"
(
keyup
)="
applyFilter
($
event
)"
placeholder=
"Ex.
John Doe
"
placeholder=
"Ex.
ium
"
#
input
/>
#
input
/>
</mat-form-field>
</mat-form-field>
<table
<table
mat-table
mat-table
[
dataSource
]="
dataSource
"
[
dataSource
]="
dataSource
"
matSort
matSort
class=
"mat-elevation-z8"
>
class=
"mat-elevation-z8"
style=
"width: 100%"
>
<!-- Groupe Column -->
<!-- Groupe Column -->
<ng-container
matColumnDef=
"classes"
>
<ng-container
matColumnDef=
"classes"
>
<mat-header-cell
<mat-header-cell
...
@@ -230,10 +166,6 @@
...
@@ -230,10 +166,6 @@
<mat-icon>
more_vert
</mat-icon>
<mat-icon>
more_vert
</mat-icon>
</button>
</button>
<mat-menu
#
menu=
"matMenu"
>
<mat-menu
#
menu=
"matMenu"
>
<!-- <button mat-menu-item (click)="setDefault(element)">
<mat-icon>star</mat-icon>
<span>Définir par défaut</span>
</button> -->
<button
<button
mat-menu-item
mat-menu-item
(
click
)="
inviteCollaborator
(
element
)"
>
(
click
)="
inviteCollaborator
(
element
)"
>
...
@@ -259,7 +191,8 @@
...
@@ -259,7 +191,8 @@
</table>
</table>
<mat-paginator
<mat-paginator
[
pageSizeOptions
]="[
5
,
10
,
50
,
100
,
200
]"
[
pageSizeOptions
]="[
5
,
10
,
50
,
100
,
200
]"
showFirstLastButtons
></mat-paginator>
showFirstLastButtons
>
</mat-paginator>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/app/etablissement/etablissement.component.html
View file @
a49d17d0
<!-- <mat-card appearance="outlined">
<mat-card
class=
"w-100"
>
<mat-card-content>Simple card</mat-card-content>
<mat-card-content>
</mat-card> -->
<router-outlet></router-outlet>
</mat-card-content>
<!-- <div class="card-body mb-4">
</mat-card>
<div class="row">
<div class="col-md-2"></div>
<div
class="d-flex justify-content-between align-items-center"
style="color: white">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#" [routerLink]="['/etablissement/view-etablissement']"
>Etablissement</a
>
</li>
</ol>
</nav>
</div>
</div>
</div> -->
<router-outlet></router-outlet>
src/app/etablissement/etablissement.component.scss
View file @
a49d17d0
.card
{
border-radius
:
0
!
important
;
background-color
:
#ffffff
61
;
}
.text
{
color
:black
;
font-weight
:
bold
;
font-size
:
16px
;
/* Ajustez la taille de la police selon vos besoins */
}
.bold-text
{
color
:rgb
(
0
,
0
,
0
)
;
font-weight
:
bold
;
font-size
:
16px
;
/* Ajustez la taille de la police selon vos besoins */
}
.col-md-2
{
flex
:
0
0
auto
;
width
:
33%
!
important
;
}
button
,
a
{
border-radius
:
0px
!
important
;
}
.example-form
{
width
:
500%
;
max-width
:
1000px
;
margin
:
auto
;
}
.example-full-width
{
width
:
100%
;
}
.form-group-width
{
max-width
:
800px
;
}
.group-width
{
max-width
:
400px
;
}
.card-body
{
background-color
:
#edeff7
;
height
:
50px
;
align-content
:
center
;
margin-right
:
10px
!
important
;
}
\ No newline at end of file
src/app/etablissement/view-etablissement/dialog-etablissement/dialog-etablissement.component.html
View file @
a49d17d0
<!-- <mat-card-content>
<mat-card-subtitle
style=
"text-align: center; font-weight: bolder"
>
<form [formGroup]="myForm" (ngSubmit)="onSubmit()">
<h3
style=
"padding: 10px; margin-bottom: 20px"
>
Ajouter un établissement
</h3>
</mat-card-subtitle>
<mat-card-content>
<form
[
formGroup
]="
establishmentForm
"
(
ngSubmit
)="
onSubmit
()"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div class="col-
md-6 form-field
">
<div
class=
"col-
12
"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Name
</mat-label>
<mat-label>
Name
</mat-label>
<input
matInput
placeholder=
"Name"
formControlName=
"name"
required
/>
<input
matInput
placeholder=
"Name"
formControlName=
"name"
required
/>
<mat-error
<mat-error
*
ngIf=
"
*
ngIf=
"
myForm.controls['name'].invalid && myForm.controls['name'].touched
establishmentForm.controls['name'].invalid &&
establishmentForm.controls['name'].touched
"
>
"
>
Name is required
Name is required
</mat-error>
</mat-error>
</mat-form-field>
</mat-form-field>
</div>
</div>
<div class="col-md-6 form-field">
</div>
<div
class=
"row"
>
<div
class=
"col-12"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Website
</mat-label>
<mat-label>
Website
</mat-label>
<input
matInput
placeholder=
"Website"
formControlName=
"website"
/>
<input
matInput
placeholder=
"Website"
formControlName=
"website"
/>
...
@@ -22,13 +30,16 @@
...
@@ -22,13 +30,16 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div class="col-
md-6 form-field
">
<div
class=
"col-
12
"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Logo
</mat-label>
<mat-label>
Logo
</mat-label>
<input
matInput
placeholder=
"Logo"
formControlName=
"logo"
/>
<input
matInput
placeholder=
"Logo"
formControlName=
"logo"
/>
</mat-form-field>
</mat-form-field>
</div>
</div>
<div class="col-md-6 form-field">
</div>
<div
class=
"row"
>
<div
class=
"col-12"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Phone
</mat-label>
<mat-label>
Phone
</mat-label>
<input
<input
...
@@ -38,8 +49,8 @@
...
@@ -38,8 +49,8 @@
required
/>
required
/>
<mat-error
<mat-error
*
ngIf=
"
*
ngIf=
"
my
Form.controls['phone'].invalid &&
establishment
Form.controls['phone'].invalid &&
my
Form.controls['phone'].touched
establishment
Form.controls['phone'].touched
"
>
"
>
Phone is required
Phone is required
</mat-error>
</mat-error>
...
@@ -48,7 +59,7 @@
...
@@ -48,7 +59,7 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div class="col-
md-6 form-field
">
<div
class=
"col-
12
"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Country
</mat-label>
<mat-label>
Country
</mat-label>
<input
<input
...
@@ -58,20 +69,24 @@
...
@@ -58,20 +69,24 @@
required
/>
required
/>
<mat-error
<mat-error
*
ngIf=
"
*
ngIf=
"
my
Form.controls['country'].invalid &&
establishment
Form.controls['country'].invalid &&
my
Form.controls['country'].touched
establishment
Form.controls['country'].touched
"
>
"
>
Country is required
Country is required
</mat-error>
</mat-error>
</mat-form-field>
</mat-form-field>
</div>
</div>
<div class="col-md-6 form-field">
</div>
<div
class=
"row"
>
<div
class=
"col-12"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
City
</mat-label>
<mat-label>
City
</mat-label>
<input
matInput
placeholder=
"City"
formControlName=
"city"
required
/>
<input
matInput
placeholder=
"City"
formControlName=
"city"
required
/>
<mat-error
<mat-error
*
ngIf=
"
*
ngIf=
"
myForm.controls['city'].invalid && myForm.controls['city'].touched
establishmentForm.controls['city'].invalid &&
establishmentForm.controls['city'].touched
"
>
"
>
City is required
City is required
</mat-error>
</mat-error>
...
@@ -80,7 +95,7 @@
...
@@ -80,7 +95,7 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div class="col-
md-12 form-field
">
<div
class=
"col-
12
"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Address
</mat-label>
<mat-label>
Address
</mat-label>
<input
<input
...
@@ -90,8 +105,8 @@
...
@@ -90,8 +105,8 @@
required
/>
required
/>
<mat-error
<mat-error
*
ngIf=
"
*
ngIf=
"
my
Form.controls['address'].invalid &&
establishment
Form.controls['address'].invalid &&
my
Form.controls['address'].touched
establishment
Form.controls['address'].touched
"
>
"
>
Address is required
Address is required
</mat-error>
</mat-error>
...
@@ -100,171 +115,31 @@
...
@@ -100,171 +115,31 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div class="col-
md-6 form-field
">
<div
class=
"col-
12
"
>
<mat-slide-toggle
<mat-slide-toggle
color=
"primary"
color=
"primary"
formControlName=
"business"
formControlName=
"business"
labelPosition=
"before"
>
labelPosition=
"before"
>
B
usiness
Associer un b
usiness
</mat-slide-toggle>
</mat-slide-toggle>
</div>
</div>
<div class="col-md-6 form-field">
<mat-form-field appearance="outline" class="full-width">
<mat-label>Business Select</mat-label>
<mat-select formControlName="businessSelect">
<mat-option
*ngFor="let option of businessOptions"
[value]="option"
>{{ option }}</mat-option
>
</mat-select>
</mat-form-field>
</div>
</div>
<mat-card-actions
class="d-flex justify-content-between"
id="card-actions-button">
<button
mat-button
type="button"
class="btn btn-danger"
(click)="onCancel()">
Cancel <mat-icon>cancel</mat-icon>
</button>
<button
mat-button
type="submit"
class="btn btn-success"
[disabled]="myForm.invalid">
Save <mat-icon>save</mat-icon>
</button>
</mat-card-actions>
</form>
</mat-card-content> -->
<div
mat-card-avatar
class=
"example-header-image"
></div>
<mat-card-subtitle
style=
"text-align: center; font-weight: bolder"
>
<h3
style=
"padding: 10px; margin-bottom: 20px"
>
Ajouter un TPE
</h3>
</mat-card-subtitle>
<mat-card-content>
<form
[
formGroup
]="
myForm
"
(
ngSubmit
)="
onSubmit
()"
>
<div
class=
"row"
>
<div
class=
"col-md-6 form-field"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Nom de l'établissement
</mat-label>
<input
matInput
placeholder=
"Nom"
formControlName=
"nom"
required
/>
<mat-error
*
ngIf=
"
myForm.controls['nom'].invalid && myForm.controls['nom'].touched
"
>
Nom de l'établissement est obligatoire
</mat-error>
</mat-form-field>
</div>
<div
class=
"col-md-6 form-field"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Site internet
</mat-label>
<input
matInput
placeholder=
"Site web"
formControlName=
"website"
required
/>
<mat-error
*
ngIf=
"
myForm.controls['website'].invalid &&
myForm.controls['website'].touched
"
>
Site internet est obligatoire
</mat-error>
</mat-form-field>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-6 form-field"
>
<div
class=
"col-12"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Numéro de téléphone
</mat-label>
<input
matInput
placeholder=
"Phone"
formControlName=
"phone"
required
/>
<mat-error
*
ngIf=
"
myForm.controls['phone'].invalid &&
myForm.controls['phone'].touched
"
>
Numéro de téléphone est obligatoire
</mat-error>
</mat-form-field>
</div>
<div
class=
"col-md-6 form-field"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Pays
</mat-label>
<mat-label>
Business
</mat-label>
<mat-select
formControlName=
"country"
required
>
<mat-select
formControlName=
"business"
required
>
<mat-option
*
ngFor=
"let count of country"
[
value
]="
country
"
>
{{
<mat-option
country
*
ngFor=
"let business of business"
}}
</mat-option>
[
value
]="
business
.
value
"
>
{{ business.viewValue }}
</mat-option>
</mat-select>
</mat-select>
<mat-error
*
ngIf=
"
myForm.controls['pays'].invalid && myForm.controls['pays'].touched
"
>
Pays est obligatoire
</mat-error>
</mat-form-field>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-6 form-field"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Ville
</mat-label>
<input
matInput
placeholder=
"Ville"
formControlName=
"city"
required
/>
<mat-error
*
ngIf=
"
myForm.controls['city'].invalid && myForm.controls['city'].touched
"
>
Ville est obligatoire
</mat-error>
</mat-form-field>
</div>
<div
class=
"col-md-6 form-field"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Localisation
</mat-label>
<input
matInput
placeholder=
"Address"
formControlName=
"address"
required
/>
<mat-error
*
ngIf=
"
myForm.controls['address'].invalid &&
myForm.controls['address'].touched
"
>
Localisation obligatoire
</mat-error>
</mat-form-field>
</mat-form-field>
</div>
</div>
</div>
</div>
<div
class=
"row"
id=
"rowStatus"
>
<div
class=
"col-md-6 form-field"
id=
"statusId"
>
<mat-slide-toggle
color=
"primary"
[(
ngModel
)]="
isChecked
"
labelPosition=
"before"
>
Statut
</mat-slide-toggle
>
</div>
</div>
<mat-card-actions
<mat-card-actions
class=
"d-flex justify-content-between"
class=
"d-flex justify-content-between"
id=
"card-actions-button"
>
id=
"card-actions-button"
>
...
@@ -273,14 +148,14 @@
...
@@ -273,14 +148,14 @@
type=
"button"
type=
"button"
class=
"btn btn-danger"
class=
"btn btn-danger"
(
click
)="
onCancel
()"
>
(
click
)="
onCancel
()"
>
Annuler
<mat-icon>
cancel
</mat-icon>
Cancel
<mat-icon>
cancel
</mat-icon>
</button>
</button>
<button
<button
mat-button
mat-button
type=
"submit"
type=
"submit"
class=
"btn btn-success"
class=
"btn btn-success"
[
disabled
]="
my
Form
.
invalid
"
>
[
disabled
]="
establishment
Form
.
invalid
"
>
Enregistrer
<mat-icon>
save
</mat-icon>
Save
<mat-icon>
save
</mat-icon>
</button>
</button>
</mat-card-actions>
</mat-card-actions>
</form>
</form>
...
...
src/app/etablissement/view-etablissement/dialog-etablissement/dialog-etablissement.component.ts
View file @
a49d17d0
...
@@ -5,6 +5,7 @@ import {
...
@@ -5,6 +5,7 @@ import {
FormGroup
,
FormGroup
,
FormsModule
,
FormsModule
,
ReactiveFormsModule
,
ReactiveFormsModule
,
Validators
,
}
from
'@angular/forms'
;
}
from
'@angular/forms'
;
import
{
MatButtonModule
}
from
'@angular/material/button'
;
import
{
MatButtonModule
}
from
'@angular/material/button'
;
import
{
MatCardModule
}
from
'@angular/material/card'
;
import
{
MatCardModule
}
from
'@angular/material/card'
;
...
@@ -49,12 +50,42 @@ import { AuthService } from 'src/app/_helpers/services/auth.service';
...
@@ -49,12 +50,42 @@ import { AuthService } from 'src/app/_helpers/services/auth.service';
styleUrl
:
'./dialog-etablissement.component.scss'
,
styleUrl
:
'./dialog-etablissement.component.scss'
,
})
})
export
class
DialogEtablissementComponent
{
export
class
DialogEtablissementComponent
{
form
:
FormGroup
;
onSubmit
()
{
throw
new
Error
(
'Method not implemented.'
);
}
onCancel
()
{
throw
new
Error
(
'Method not implemented.'
);
}
establishmentForm
:
FormGroup
;
countries
=
[
countries
=
[
{
value
:
'CI'
,
viewValue
:
"Cote d'ivoire"
},
{
value
:
'CI'
,
viewValue
:
"Cote d'ivoire"
},
{
value
:
'SN'
,
viewValue
:
'Senegal'
},
{
value
:
'SN'
,
viewValue
:
'Senegal'
},
// Ajoutez les autres pays ici
{
value
:
'ML'
,
viewValue
:
'Mali'
},
{
value
:
'GN'
,
viewValue
:
'Guinée'
},
{
value
:
'BF'
,
viewValue
:
'Burkina Faso'
},
{
value
:
'NE'
,
viewValue
:
'Niger'
},
{
value
:
'TG'
,
viewValue
:
'Togo'
},
{
value
:
'BJ'
,
viewValue
:
'Bénin'
},
{
value
:
'CM'
,
viewValue
:
'Cameroun'
},
{
value
:
'CD'
,
viewValue
:
'Congo RDC CDF'
},
{
value
:
'KM'
,
viewValue
:
'Comores'
},
{
value
:
'FR'
,
viewValue
:
'France'
},
];
business
=
[
{
value
:
'CI'
,
viewValue
:
"Cote d'ivoire"
},
{
value
:
'SN'
,
viewValue
:
'Senegal'
},
{
value
:
'ML'
,
viewValue
:
'Mali'
},
{
value
:
'GN'
,
viewValue
:
'Guinée'
},
{
value
:
'BF'
,
viewValue
:
'Burkina Faso'
},
{
value
:
'NE'
,
viewValue
:
'Niger'
},
{
value
:
'TG'
,
viewValue
:
'Togo'
},
{
value
:
'BJ'
,
viewValue
:
'Bénin'
},
{
value
:
'CM'
,
viewValue
:
'Cameroun'
},
{
value
:
'CD'
,
viewValue
:
'Congo RDC CDF'
},
{
value
:
'KM'
,
viewValue
:
'Comores'
},
{
value
:
'FR'
,
viewValue
:
'France'
},
];
];
hide
=
true
;
hide
=
true
;
...
@@ -64,7 +95,7 @@ export class DialogEtablissementComponent {
...
@@ -64,7 +95,7 @@ export class DialogEtablissementComponent {
fonctions
:
any
;
fonctions
:
any
;
services
:
any
;
services
:
any
;
groupes
:
any
;
groupes
:
any
;
isChecked
:
any
;
isChecked
!
:
boolean
;
country
:
any
;
country
:
any
;
constructor
(
constructor
(
...
@@ -73,24 +104,22 @@ export class DialogEtablissementComponent {
...
@@ -73,24 +104,22 @@ export class DialogEtablissementComponent {
private
dialogRef
:
MatDialogRef
<
DialogEtablissementComponent
>
,
private
dialogRef
:
MatDialogRef
<
DialogEtablissementComponent
>
,
private
router
:
Router
private
router
:
Router
)
{
)
{
this
.
f
orm
=
this
.
fb
.
group
({
this
.
establishmentF
orm
=
this
.
fb
.
group
({
n
om
:
[
''
],
n
ame
:
[
''
,
Validators
.
required
],
website
:
[
''
],
website
:
[
''
],
logo
:
[
''
],
logo
:
[
''
],
phone
:
[
''
],
phone
:
[
''
],
country
:
[
''
],
country
:
[
''
,
Validators
.
required
],
city
:
[
''
],
city
:
[
''
],
address
:
[
''
],
address
:
[
''
,
Validators
.
required
],
business
:
[
false
],
business
:
[
false
],
businessSelect
:
[
''
],
businessSelect
:
[
''
],
schoolLevels
:
this
.
fb
.
group
({
maternelle
:
this
.
fb
.
array
([]),
primaire
:
this
.
fb
.
array
([]),
college
:
this
.
fb
.
array
([]),
lycee
:
this
.
fb
.
array
([]),
}),
});
});
}
}
onSubmit
()
{
throw
new
Error
(
'Method not implemented.'
);
}
businessOptions
:
any
;
onCancel
()
{
throw
new
Error
(
'Method not implemented.'
);
}
}
}
src/app/etablissement/view-etablissement/view-etablissement.component.html
View file @
a49d17d0
<div
class=
"card-body mb-4"
>
<div
class=
"card-body mb-4"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-2"
></div>
<div
class=
"col-md-2"
></div>
...
...
src/app/etablissement/view-etablissement/view-etablissement.component.scss
View file @
a49d17d0
.card
{
border-radius
:
0
!
important
;
background-color
:
#ffffff
61
;
}
.text
{
color
:black
;
font-weight
:
bold
;
font-size
:
16px
;
/* Ajustez la taille de la police selon vos besoins */
}
.bold-text
{
.bold-text
{
color
:rgb
(
0
,
0
,
0
)
;
color
:rgb
(
0
,
0
,
0
)
;
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
16px
;
/* Ajustez la taille de la police selon vos besoins */
font-size
:
16px
;
/* Ajustez la taille de la police selon vos besoins */
}
}
.col-md-2
{
flex
:
0
0
auto
;
width
:
33%
!
important
;
}
button
,
a
{
border-radius
:
0px
!
important
;
}
.example-form
{
width
:
500%
;
max-width
:
1000px
;
margin
:
auto
;
}
.example-full-width
{
width
:
100%
;
}
.form-group-width
{
max-width
:
800px
;
}
.group-width
{
max-width
:
400px
;
}
src/app/etablissement/view-etablissement/view-etablissement.component.ts
View file @
a49d17d0
...
@@ -163,7 +163,7 @@ export class ViewEtablissementComponent {
...
@@ -163,7 +163,7 @@ export class ViewEtablissementComponent {
public
openDialog
()
{
public
openDialog
()
{
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const
dialogRef
=
this
.
dialog
.
open
(
DialogEtablissementComponent
,
{
const
dialogRef
=
this
.
dialog
.
open
(
DialogEtablissementComponent
,
{
width
:
'
8
00px'
,
width
:
'
10
00px'
,
height
:
'1000px'
,
height
:
'1000px'
,
});
});
}
}
...
...
src/app/tpe/ajout-tpe/ajout-tpe.component.scss
View file @
a49d17d0
...
@@ -14,10 +14,3 @@
...
@@ -14,10 +14,3 @@
button
{
button
{
border-radius
:
0px
!
important
border-radius
:
0px
!
important
}
}
// .mat-mdc-dialog-container .mdc-dialog__surface {
// width: 0px !important;
// height: 0px !important;
// }
//div.
\ No newline at end of file
src/app/tpe/create-tpe/create-tpe.component.html
View file @
a49d17d0
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<mat-card-content>
<mat-card-content>
<form
[
formGroup
]="
myForm
"
(
ngSubmit
)="
onSubmit
()"
>
<form
[
formGroup
]="
myForm
"
(
ngSubmit
)="
onSubmit
()"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-
md-6 form-field
"
>
<div
class=
"col-
12
"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Groupe
</mat-label>
<mat-label>
Groupe
</mat-label>
<mat-select
formControlName=
"groupe"
required
>
<mat-select
formControlName=
"groupe"
required
>
...
@@ -24,7 +24,10 @@
...
@@ -24,7 +24,10 @@
</mat-error>
</mat-error>
</mat-form-field>
</mat-form-field>
</div>
</div>
<div
class=
"col-md-6 form-field"
>
</div>
<div
class=
"row"
>
<div
class=
"col-12"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Service
</mat-label>
<mat-label>
Service
</mat-label>
<mat-select
formControlName=
"service"
required
>
<mat-select
formControlName=
"service"
required
>
...
@@ -44,7 +47,7 @@
...
@@ -44,7 +47,7 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-
md-6 form-field
"
>
<div
class=
"col-
12
"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Nom
</mat-label>
<mat-label>
Nom
</mat-label>
<input
matInput
placeholder=
"Nom"
formControlName=
"nom"
required
/>
<input
matInput
placeholder=
"Nom"
formControlName=
"nom"
required
/>
...
@@ -56,7 +59,10 @@
...
@@ -56,7 +59,10 @@
</mat-error>
</mat-error>
</mat-form-field>
</mat-form-field>
</div>
</div>
<div
class=
"col-md-6 form-field"
>
</div>
<div
class=
"row"
>
<div
class=
"col-12"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Fonction
</mat-label>
<mat-label>
Fonction
</mat-label>
<mat-select
formControlName=
"fonction"
required
>
<mat-select
formControlName=
"fonction"
required
>
...
@@ -76,7 +82,7 @@
...
@@ -76,7 +82,7 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-
md-6 form-field
"
>
<div
class=
"col-
12
"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Activite
</mat-label>
<mat-label>
Activite
</mat-label>
<mat-select
formControlName=
"activite"
required
>
<mat-select
formControlName=
"activite"
required
>
...
@@ -93,7 +99,10 @@
...
@@ -93,7 +99,10 @@
</mat-error>
</mat-error>
</mat-form-field>
</mat-form-field>
</div>
</div>
<div
class=
"col-md-6 form-field"
>
</div>
<div
class=
"row"
>
<div
class=
"col-12"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-form-field
appearance=
"outline"
class=
"full-width"
>
<mat-label>
Solde
</mat-label>
<mat-label>
Solde
</mat-label>
<input
<input
...
@@ -113,13 +122,13 @@
...
@@ -113,13 +122,13 @@
</div>
</div>
<div
class=
"row"
id=
"rowStatus"
>
<div
class=
"row"
id=
"rowStatus"
>
<div
class=
"col-
md-6 form-field
"
id=
"statusId"
>
<div
class=
"col-
12
"
id=
"statusId"
>
<mat-slide-toggle
<mat-slide-toggle
color=
"primary"
color=
"primary"
[(
ngModel
)]="
isChecked
"
[(
ngModel
)]="
isChecked
"
labelPosition=
"before"
>
labelPosition=
"before"
>
Statut
</mat-slide-toggle
Statut
>
</mat-slide-toggle
>
</div>
</div>
</div>
</div>
...
...
src/app/tpe/create-tpe/create-tpe.component.ts
View file @
a49d17d0
src/app/tpe/gerer-mes-tpe/gerer-mes-tpe.component.html
View file @
a49d17d0
...
@@ -71,8 +71,10 @@
...
@@ -71,8 +71,10 @@
Exporter
<i
class=
"fa fa-download m-1"
></i>
Exporter
<i
class=
"fa fa-download m-1"
></i>
</button>
</button>
</div>
</div>
<button
(
click
)="
openDialog
()"
class=
"btn btn-sl btn-success m-5"
>
<button
(
click
)="
openDialog
()"
class=
"btn btn-sl btn-success m-5"
>
Ajouter
<mat-icon>
add
</mat-icon>
Ajouter un TPE
</button>
</button>
</div>
</div>
<div
<div
...
...
src/app/utilisateurs/view-user/view-user.component.html
View file @
a49d17d0
...
@@ -96,14 +96,6 @@
...
@@ -96,14 +96,6 @@
<mat-cell
*
matCellDef=
"let user"
>
{{ user.email }}
</mat-cell>
<mat-cell
*
matCellDef=
"let user"
>
{{ user.email }}
</mat-cell>
</ng-container>
</ng-container>
<!-- <ng-container matColumnDef="reference">
<mat-header-cell *matHeaderCellDef mat-sort-header class="bold-text"
>Réference</mat-header-cell
>
<mat-cell *matCellDef="let transaction">{{
transaction.reference
}}</mat-cell>
</ng-container> -->
<ng-container
matColumnDef=
"role"
>
<ng-container
matColumnDef=
"role"
>
<mat-header-cell
<mat-header-cell
...
@@ -139,11 +131,7 @@
...
@@ -139,11 +131,7 @@
>
Actions
</mat-header-cell
>
Actions
</mat-header-cell
>
>
<mat-cell
*
matCellDef=
"let user"
style=
"text-align: right"
>
<mat-cell
*
matCellDef=
"let user"
style=
"text-align: right"
>
<!-- <a href="#" class="m-2" [routerLink]="['view-user']"
><mat-icon style="color: blue" title="Voir"
>remove_red_eye</mat-icon
></a
> -->
<a
<a
href=
"#"
href=
"#"
class=
"m-2"
class=
"m-2"
...
@@ -171,4 +159,4 @@
...
@@ -171,4 +159,4 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!-- </div> -->
src/styles.scss
View file @
a49d17d0
...
@@ -441,8 +441,10 @@ tr.mat-mdc-row {
...
@@ -441,8 +441,10 @@ tr.mat-mdc-row {
border-radius
:
0px
!
important
;
border-radius
:
0px
!
important
;
width
:
auto
!
important
;
width
:
auto
!
important
;
height
:
auto
!
important
;
height
:
auto
!
important
;
margin-top
:
-500px
!
important
;
margin
:
auto
!
important
;
// koffi sayni
margin-left
:
-300px
!
important
;
position
:
absolute
!
important
;
// margin-top: 50px !important;
// margin-left: -300px !important;
}
}
...
@@ -750,3 +752,6 @@ mat-row:hover {
...
@@ -750,3 +752,6 @@ mat-row:hover {
background-color
:
#f5f5f5
!
important
;
/* Couleur de fond lors du survol */
background-color
:
#f5f5f5
!
important
;
/* Couleur de fond lors du survol */
cursor
:
pointer
!
important
;
/* Changer le curseur pour indiquer que la ligne est interactable */
cursor
:
pointer
!
important
;
/* Changer le curseur pour indiquer que la ligne est interactable */
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment