From 39d538bd30e4b5ba47e93c6387430b84d4c14558 Mon Sep 17 00:00:00 2001 From: Philippe Robert Date: Fri, 18 Jan 2019 11:58:02 -0500 Subject: [PATCH] feat(#243) Add picture to fire safety department --- .../department/department.component.html | 13 +++++++++++++ .../shared/models/firesafetydepartment.model.ts | 3 +++ 2 files changed, 16 insertions(+) diff --git a/src/app/management-system/department/department.component.html b/src/app/management-system/department/department.component.html index 5c21a16c..214cb4e0 100644 --- a/src/app/management-system/department/department.component.html +++ b/src/app/management-system/department/department.component.html @@ -28,6 +28,12 @@ + + @@ -39,6 +45,9 @@ + + + @@ -50,4 +59,8 @@ (valueChanged)="field.setValue($event.value);"> +
+ {{'picture' | translate}}: + +
diff --git a/src/app/management-system/shared/models/firesafetydepartment.model.ts b/src/app/management-system/shared/models/firesafetydepartment.model.ts index 4489bca0..2ee360f2 100644 --- a/src/app/management-system/shared/models/firesafetydepartment.model.ts +++ b/src/app/management-system/shared/models/firesafetydepartment.model.ts @@ -1,9 +1,12 @@ import { WithLocalization } from '../../../shared/models/with-localization'; +import {Picture} from '../../../shared/models/picture.model'; export class FireSafetyDepartment extends WithLocalization { idCounty: string; language: string; + idPicture: string = null; + picture: Picture; static fromJSON(data: object): FireSafetyDepartment { const department = new FireSafetyDepartment();