From a6e1ace2b6bdba8c08a4acfa42433f3ac073b747 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Tue, 21 Mar 2017 10:16:22 +0000
Subject: [PATCH] #3527 feature - Added all catalogs and working fine

---
 securis/src/main/webapp/src/app/forms/organization.form.html |   49 ++++++++++++++++++-------------------------------
 1 files changed, 18 insertions(+), 31 deletions(-)

diff --git a/securis/src/main/webapp/src/app/forms/organization.form.html b/securis/src/main/webapp/src/app/forms/organization.form.html
index 6299a7c..41d02bc 100644
--- a/securis/src/main/webapp/src/app/forms/organization.form.html
+++ b/securis/src/main/webapp/src/app/forms/organization.form.html
@@ -3,24 +3,11 @@
 		<button md-icon-button (click)="goBack()" color="accent">
 			<md-icon>arrow_back</md-icon>
 		</button>
-		<span class="md-title" [innerText]="form_title"></span>
+		<span [innerText]="form_title"></span>
 		<span flex></span>
 		<button md-icon-button (click)="save()"><md-icon>save</md-icon></button>
 	</md-toolbar>
-	<!--
-			code: 'CICS',
-  creation_timestamp: 1418384439000,
-  description: 'Wellbore integrity analysis software',
-  id: 1,
-  license_filename: 'config_server.lic',
-  name: 'CurisIntegrity',
-  metadata: 
-   [ { key: 'max_docs',
-       value: '250000',
-       readonly: true,
-       mandatory: true } ] 
-}
-		-->
+	
 	<div class="margin" layout-align-gt-xs="center start" layout-fill="" layout-gt-xs="row">
 		<md-card flex="70">
 			<md-card-title>
@@ -31,8 +18,8 @@
 				<form #form="ngForm" class="inset">
 					<div layout="column" layout-align="start center">
 						<div layout="row" layout-fill layout-padding>
-							<field-readonly [value]="data.id" label="field.id" flex="15" *ngIf="!isNew"></field-readonly>
-							<div layout="column" layout-fill flex>
+							<field-readonly [value]="data.id" label="field.id" flex="10" *ngIf="!isNew"></field-readonly>
+							<div layout="column" layout-fill flex="30">
 								<md-input-container>
 									<input #firstField mdInput maxLength="50" type="text" [(ngModel)]="data.code" name="code" required [readonly]="!isNew" />
 									<md-placeholder>
@@ -41,8 +28,6 @@
 								</md-input-container>
 								<error-checker [fieldName]="getFieldName('code')" [formField]="form.controls.code"></error-checker>
 							</div>
-						</div>
-						<div layout="row" layout-fill layout-padding>
 							<div layout="column" layout-fill flex>
 								<md-input-container flex>
 									<input mdInput type="text" [(ngModel)]="data.name" name="name" required />
@@ -51,15 +36,6 @@
 									</md-placeholder>
 								</md-input-container>
 								<error-checker [fieldName]="getFieldName('name')" [formField]="form.controls.name"></error-checker>
-							</div>
-							<div layout="column" layout-fill flex>
-								<md-input-container flex>
-									<input mdInput type="text" [(ngModel)]="data.license_filename" name="license_filename" required />
-									<md-placeholder>
-										<span i18n="field.license_filename"></span>
-									</md-placeholder>
-								</md-input-container>
-								<error-checker [fieldName]="getFieldName('license_filename')" [formField]="form.controls.license_filename"></error-checker>
 							</div>
 						</div>
 						<div layout="row" layout-fill layout-padding>
@@ -73,10 +49,21 @@
 								</md-input-container>
 							</div>
 						</div>
-						<div layout="row" layout-fill layout-padding *ngIf="!isNew">
-							<field-readonly [value]="data.creation_timestamp | date: 'medium'" label="field.creation_timestamp" flex></field-readonly>
+						<div layout="row" layout-fill layout-padding >
+							<div layout="column" layout-fill flex>
+								<md-select [placeholder]="getFieldName('org_parent_id')" flex [(ngModel)]="data.org_parent_id" name="org_parent_id">
+									<md-option *ngFor="let org of parentOrganizations" [value]="org.id">
+										{{org.label}}
+									</md-option>
+								</md-select>
+								<error-checker [fieldName]="getFieldName('org_parent_id')" [formField]="form.controls.org_parent_id"></error-checker>
+							</div>
 						</div>
-						<metadata-manager addOrDelete="true" editKeys="true" [metadata]="data.metadata" ></metadata-manager>
+						<div layout="row" layout-fill layout-padding >
+							<td-chips flex [mdTooltip]="$L.get('Users with access to this organization')" [placeholder]="$L.get('Select users')" 
+										[items]="usernames" [(ngModel)]="data.users_ids" name="users_ids" requireMatch>
+							</td-chips>
+						</div>
 					</div>
 				</form>
 			</md-card-content>

--
Gitblit v1.3.2