Search template and Metadata form 15/77715/1
authorezhil <ezhrajam@in.ibm.com>
Fri, 1 Feb 2019 12:17:42 +0000 (17:47 +0530)
committerezhil <ezhrajam@in.ibm.com>
Fri, 1 Feb 2019 12:17:56 +0000 (17:47 +0530)
Change-Id: I19d6b5080f07a123387c4681b32ec32f2b6d2c9c
Issue-ID: CCSDK-703
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.html
cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.scss
cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts
cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.component.html

index b4aca6b..81c6349 100644 (file)
@@ -19,6 +19,20 @@ limitations under the License.
 ============LICENSE_END============================================
 -->
 
-<p>
-  metadata works!
-</p>
+<form [formGroup]="CBAMetadata">
+  <mat-form-field class="form-field">
+    <input matInput placeholder="CBA File Name" formControlName="CBA_File_Name">
+  </mat-form-field>
+  <mat-form-field class="form-field">
+    <input matInput placeholder="CBA Version" formControlName="CBA_Version">
+  </mat-form-field>
+  <mat-form-field class="form-field">
+    <input matInput placeholder="CSAR Version" formControlName="CSAR_Version">
+  </mat-form-field>
+  <mat-form-field class="form-field">
+    <input matInput placeholder="Entry Definition" formControlName="entry_Definition">
+  </mat-form-field>
+  <mat-form-field class="form-field">
+    <input matInput placeholder="Author" formControlName="author">
+  </mat-form-field>
+  </form>
index 22941b5..fa7f2bf 100644 (file)
@@ -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
index e20dde1..b8f57cb 100644 (file)
@@ -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
index 5be6979..fbf0baa 100644 (file)
@@ -18,6 +18,4 @@ See the License for the specific language governing permissions and
 limitations under the License.
 ============LICENSE_END============================================
 -->
-<p>
-  search-template works!
-</p>
+<app-file-upload></app-file-upload>