From 0e001cf680e583ce6d37cd52254ccf9363792d31 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 14 Jun 2018 11:22:07 +0200 Subject: [PATCH] Externalize operation edit template. --- src/operations/operationEdit.component.html | 79 ++++++++++++++++++++ src/operations/operationEdit.component.ts | 81 +-------------------- 2 files changed, 80 insertions(+), 80 deletions(-) create mode 100644 src/operations/operationEdit.component.html diff --git a/src/operations/operationEdit.component.html b/src/operations/operationEdit.component.html new file mode 100644 index 0000000..1eed38f --- /dev/null +++ b/src/operations/operationEdit.component.html @@ -0,0 +1,79 @@ + +
+
+
+
+ + + + +
+ + The operation date is required. + +
+
+ +
+ + + + +
+ + The operation label is required. + +
+
+ +
+ + + + +
+ + The operation value is required. + +
+
+ +
+ + + + +
+ + The operation category is required. + +
+
+ + + + +
+
+
diff --git a/src/operations/operationEdit.component.ts b/src/operations/operationEdit.component.ts index d47413c..5e19d8a 100644 --- a/src/operations/operationEdit.component.ts +++ b/src/operations/operationEdit.component.ts @@ -12,86 +12,7 @@ import { OperationService } from './operation.service'; @Component({ selector: 'operation-edit', - template: ` -
-
-
-
- - - - -
- - The operation date is required. - -
-
- -
- - - - -
- - The operation label is required. - -
-
- -
- - - - -
- - The operation value is required. - -
-
- -
- - - - -
- - The operation category is required. - -
-
- - - - -
-
-
- ` + templateUrl: './operationEdit.component.html' }) export class OperationEditComponent { public operation = new Operation();