From f7cac5003d5e55c58664832bf744cc9a06d806a6 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Mon, 26 Jun 2017 16:48:54 +0000
Subject: [PATCH] #0 fix - Added frozen field to pack form

---
 /dev/null                                            |   31 -------------------------------
 securis/src/main/webapp/src/app/forms/pack.form.html |    5 +++++
 securis/src/main/webapp/src/lang/messages_en.json    |    1 +
 3 files changed, 6 insertions(+), 31 deletions(-)

diff --git a/securis/src/main/webapp/src/app/app.module2.ts b/securis/src/main/webapp/src/app/app.module2.ts
deleted file mode 100644
index f65ab4b..0000000
--- a/securis/src/main/webapp/src/app/app.module2.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { NgModule, Injectable, Component } from '@angular/core';
-import { HttpModule, Http } from '@angular/http';
-import { BrowserModule } from '@angular/platform-browser';
-
-@Component({
-  selector: 'app-home',
-  template: `<h2>Hola</h2>`
-
-})
-export class HomeComponent {
-  constructor(private http : Http) {
-    console.log('Http is injected ok: ' + http)
-  }
-}
-
-@NgModule({
-  imports: [
-    BrowserModule, HttpModule
-  ],
-  declarations: [
-    HomeComponent
-  ],
-  bootstrap: [ HomeComponent ],
-  entryComponents: [  ],
-  providers: [
-  ]
-})
-export class AppModule2 { }
-
-	
-CAIXABANK, S.A.
diff --git a/securis/src/main/webapp/src/app/forms/pack.form.html b/securis/src/main/webapp/src/app/forms/pack.form.html
index cbf7e19..3f55153 100644
--- a/securis/src/main/webapp/src/app/forms/pack.form.html
+++ b/securis/src/main/webapp/src/app/forms/pack.form.html
@@ -44,6 +44,11 @@
 									<span i18n="field.license_preactivation"></span>
 								</md-checkbox>
 							</div>
+							<div layout="column" layout-fill flex>
+								<md-checkbox labelPosition="after" [(ngModel)]="data.frozen" name="frozen">
+									<span i18n="field.frozen"></span>
+								</md-checkbox>
+							</div>
 							<field-readonly [value]="packs.getStatusName(data.status)" label="field.status" flex *ngIf="!isNew"></field-readonly>
 						</div>
 						<div layout="row" layout-fill layout-padding>
diff --git a/securis/src/main/webapp/src/lang/messages_en.json b/securis/src/main/webapp/src/lang/messages_en.json
index acb0550..8f59418 100644
--- a/securis/src/main/webapp/src/lang/messages_en.json
+++ b/securis/src/main/webapp/src/lang/messages_en.json
@@ -36,6 +36,7 @@
 	"field.mandatory": "Required",
 	"field.org_parent_id": "Parent organization",
 	"field.name": "Name",
+	"field.frozen": "Frozen",
 	"field.license_filename": "License filename",
 	"field.description": "Description",
 	"pack.status.CR": "Created",

--
Gitblit v1.3.2