From 3589d69998e773f239144b7e7e3c2302ca1d0385 Mon Sep 17 00:00:00 2001 From: ezhil Date: Fri, 1 Feb 2019 17:47:42 +0530 Subject: Search template and Metadata form Change-Id: I19d6b5080f07a123387c4681b32ec32f2b6d2c9c Issue-ID: CCSDK-703 Signed-off-by: ezhil --- .../select-template/metadata/metadata.component.html | 20 +++++++++++++++++--- .../select-template/metadata/metadata.component.scss | 6 +++++- .../select-template/metadata/metadata.component.ts | 15 ++++++++++++--- .../search-template/search-template.component.html | 4 +--- 4 files changed, 35 insertions(+), 10 deletions(-) (limited to 'cds-ui/client/src/app/feature-modules/blueprint') diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.html b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.html index b4aca6bcf..81c634970 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.html +++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.html @@ -19,6 +19,20 @@ limitations under the License. ============LICENSE_END============================================ --> -

- metadata works! -

+
+ + + + + + + + + + + + + + + +
diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.scss b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.scss index 22941b5fa..fa7f2bf83 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.scss +++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.scss @@ -17,4 +17,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ============LICENSE_END============================================ -*/ \ No newline at end of file +*/ +.form-field{ + width: 50%; + margin: 10px; +} \ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts index e20dde13b..b8f57cb5f 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts @@ -19,7 +19,8 @@ limitations under the License. ============LICENSE_END============================================ */ -import { Component, OnInit } from '@angular/core'; +import { Component, OnInit} from '@angular/core'; +import {FormBuilder, FormGroup, Validators} from '@angular/forms'; @Component({ selector: 'app-metadata', @@ -27,10 +28,18 @@ import { Component, OnInit } from '@angular/core'; styleUrls: ['./metadata.component.scss'] }) export class MetadataComponent implements OnInit { + CBAMetadata: FormGroup; - constructor() { } + constructor(private _formBuilder: FormBuilder) { } ngOnInit() { + this.CBAMetadata = this._formBuilder.group({ + CBA_File_Name: ['', Validators.required], + CBA_Version: ['', Validators.required], + CSAR_Version: ['', Validators.required], + entry_Definition: ['', Validators.required], + author: ['', Validators.required] + }); } -} +} \ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.component.html b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.component.html index 5be69791f..fbf0baa77 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.component.html +++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.component.html @@ -18,6 +18,4 @@ See the License for the specific language governing permissions and limitations under the License. ============LICENSE_END============================================ --> -

- search-template works! -

+ -- cgit 1.2.3-korg