From 1a5cc2ed4e98b0f77376e31bb50dda75a8850d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Andr=C3=A9?= Date: Mon, 28 Oct 2019 12:15:25 +0100 Subject: [PATCH] 1e jet du formulaire d'ajout de sauts --- .../skydivelogs-app/src/app/app.component.css | 4 ++ .../src/app/app.component.html | 8 ---- Front/skydivelogs-app/src/app/app.module.ts | 29 +++++++++++- .../src/app/new-jump/new-jump.component.css | 7 +++ .../src/app/new-jump/new-jump.component.html | 47 ++++++++++++++++++- .../src/app/new-jump/new-jump.component.ts | 27 ++++++++--- 6 files changed, 103 insertions(+), 19 deletions(-) diff --git a/Front/skydivelogs-app/src/app/app.component.css b/Front/skydivelogs-app/src/app/app.component.css index 667ef05..dfda4a8 100644 --- a/Front/skydivelogs-app/src/app/app.component.css +++ b/Front/skydivelogs-app/src/app/app.component.css @@ -11,6 +11,10 @@ body { fill: #ffff; } +.hamburger__icon__fill { + fill: #594e78 +} + .side-menu-disactive { display: none !important; } diff --git a/Front/skydivelogs-app/src/app/app.component.html b/Front/skydivelogs-app/src/app/app.component.html index 9cd9d07..7cfb3fd 100644 --- a/Front/skydivelogs-app/src/app/app.component.html +++ b/Front/skydivelogs-app/src/app/app.component.html @@ -1,14 +1,6 @@
- - - * { diff --git a/Front/skydivelogs-app/src/app/new-jump/new-jump.component.html b/Front/skydivelogs-app/src/app/new-jump/new-jump.component.html index 5f8c070..3c3f880 100644 --- a/Front/skydivelogs-app/src/app/new-jump/new-jump.component.html +++ b/Front/skydivelogs-app/src/app/new-jump/new-jump.component.html @@ -1,5 +1,4 @@
-

Basic native select

Choose the jump type @@ -9,7 +8,6 @@ -

Basic native select

Choose the aircraft @@ -17,4 +15,49 @@ Option 2 + + + Choose the DZ + + Option 1 + Option 2 + + + + With a cutaway ? + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts b/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts index 9053be3..d49997b 100644 --- a/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts +++ b/Front/skydivelogs-app/src/app/new-jump/new-jump.component.ts @@ -1,15 +1,28 @@ -import { Component, OnInit } from "@angular/core"; -import { ServiceComm } from "../../services/serviceComm"; +import { Component, OnInit } from '@angular/core'; +import { FormControl } from '@angular/forms'; + +import { ServiceComm } from '../../services/serviceComm'; + @Component({ - selector: "app-new-jump", - templateUrl: "./new-jump.component.html", - styleUrls: ["./new-jump.component.css"] + selector: 'app-new-jump', + templateUrl: './new-jump.component.html', + styleUrls: ['./new-jump.component.css'] }) export class NewJumpComponent implements OnInit { - constructor(private serviceComm: ServiceComm) {} + date: FormControl; + defaultExitAltitude: number; + defaultDeployAltitude: number; + countOfJumps: number; + + constructor(private serviceComm: ServiceComm) { + this.date = new FormControl(new Date()); + this.defaultExitAltitude = 4000; + this.defaultDeployAltitude = 1000; + this.countOfJumps = 0; + } ngOnInit() { - this.serviceComm.updatedComponentTitle("Add a new jump"); + this.serviceComm.updatedComponentTitle('Add a new jump'); } }