Skip to content

Commit 964cf02

Browse files
author
*rkeita31*
committed
formulaire okkk
1 parent 9539581 commit 964cf02

File tree

14 files changed

+73
-12
lines changed

14 files changed

+73
-12
lines changed

src/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { VisiteService } from './services/visite.service';
2020
import { AppService } from './app.service';
2121
import { MatMenuModule } from '@angular/material/menu';
2222
import { MatIconModule } from '@angular/material/icon';
23+
import { MdpComponent } from './mdp/mdp.component';
2324

2425
@NgModule({
2526
imports: [
@@ -36,6 +37,7 @@ import { MatIconModule } from '@angular/material/icon';
3637
declarations: [
3738
AppComponent,
3839
AdminLayoutComponent,
40+
MdpComponent,
3941

4042
],
4143
providers: [AvisService, AppartementService, QuestionService, OffreService, RoleService, UtilisateurService, MaisonService, GarageService, TerrainService, VisiteService, AppService],

src/app/components/login/login.component.html

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,38 @@
11
<style>
2+
*{
3+
/* background-color: rgb(223, 178, 204); */
4+
margin: 0;
5+
6+
}
7+
28
body {
3-
margin-top: 25%;
9+
margin-top: 0%;
410
margin-left: 25%;
511
}
612

713
h1 {
8-
color: rgb(114, 40, 40, 0.48);
14+
color: rgba(197, 106, 53, 0.48);
915
font-size: 70px;
1016
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
1117
}
18+
19+
.form-group {
20+
21+
background-color: none;
22+
margin-top: 5%;
23+
border-width: 10px;
24+
border-color: rgb(194, 93, 53);
25+
border-style:groove;
26+
border-radius: 15px;
27+
28+
29+
}
30+
31+
1232
</style>
1333

1434
<div>
15-
<img src="assets/img/maison.jpg" alt="photoAgence">
35+
<img src="./assets/img/maison.jpg" width ="100%" height = "450px" alt="photoAgence">
1636
</div>
1737

1838
<body>
@@ -28,8 +48,11 @@ <h1>Connectez vous</h1>
2848
<input type="text" class="form-control" [(ngModel)]="credentials.password" name="password">
2949
<br>
3050
</div>
31-
<button class="btn btn-primary" type="submit">Se connecter</button>
51+
<button class="btn btn-warning" type="submit">Se connecter</button>
3252
<p>Pas encore de compte ? <a routerLink="/registration">Inscrivez-vous</a></p>
53+
<p><a routerLink="/mdp">Mot de passe oublié ?</a></p>
3354
</form>
3455
</div>
35-
</body>
56+
57+
</body>
58+

src/app/components/registration/registration.component.html

100644100755
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ <h3 class="card-title">Creer un compte</h3>
4444
<input type="text" class="form-control" [(ngModel)]="utilisateur.password"
4545
name="password">
4646
</div>
47-
<div class="form-group">
48-
<label>Role</label>
49-
<select [(ngModel)]="utilisateur.roles" name="roles">
50-
<option value="">Client</option>
51-
</select>
52-
</div>
5347
</div>
5448
</div>
5549
<div class="row">

src/app/components/registration/registration.component.scss

100644100755
File mode changed.

src/app/components/registration/registration.component.spec.ts

100644100755
File mode changed.

src/app/components/registration/registration.component.ts

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class RegistrationComponent implements OnInit {
1919
utilisateur: Utilisateur = new Utilisateur();
2020
constructor(private utilisateurService: UtilisateurService, private router: Router) { }
2121
ngOnInit(): void {
22-
22+
this.saveUtilisateur();
2323

2424
}
2525

src/app/layouts/admin-layout/admin-layout.routing.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { MapsComponent } from '../../maps/maps.component';
1010
import { NotificationsComponent } from '../../notifications/notifications.component';
1111
import { UpgradeComponent } from '../../upgrade/upgrade.component';
1212
import { RegistrationComponent } from 'app/components/registration/registration.component';
13+
import { MdpComponent } from 'app/mdp/mdp.component';
1314

1415
export const AdminLayoutRoutes: Routes = [
1516
// {
@@ -65,4 +66,5 @@ export const AdminLayoutRoutes: Routes = [
6566
{ path: 'notifications', component: NotificationsComponent },
6667
{ path: 'upgrade', component: UpgradeComponent },
6768
{ path: 'registration', component: RegistrationComponent },
69+
{ path: 'mdp', component: MdpComponent},
6870
];

src/app/mdp/mdp.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<label>Email :</label>
2+
<input type="email" >

src/app/mdp/mdp.component.scss

Whitespace-only changes.

src/app/mdp/mdp.component.spec.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { MdpComponent } from './mdp.component';
4+
5+
describe('MdpComponent', () => {
6+
let component: MdpComponent;
7+
let fixture: ComponentFixture<MdpComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [ MdpComponent ]
12+
})
13+
.compileComponents();
14+
15+
fixture = TestBed.createComponent(MdpComponent);
16+
component = fixture.componentInstance;
17+
fixture.detectChanges();
18+
});
19+
20+
it('should create', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});

0 commit comments

Comments
 (0)