Select template for CBA wizard 12/77712/1
authorezhil <ezhrajam@in.ibm.com>
Fri, 1 Feb 2019 10:43:56 +0000 (16:13 +0530)
committerezhil <ezhrajam@in.ibm.com>
Fri, 1 Feb 2019 10:44:13 +0000 (16:14 +0530)
Change-Id: I57c5b9af9c0dfa50fcb332ee93a6657baaca4cf1
Issue-ID: CCSDK-703
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.component.html
cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.component.scss
cds-ui/client/src/app/feature-modules/blueprint/select-template/select-template.component.ts

index 2b8b74b..bcd7832 100644 (file)
@@ -18,8 +18,31 @@ See the License for the specific language governing permissions and
 limitations under the License.
 ============LICENSE_END============================================
 -->
-<p>
-  select-template works!
-</p>
+<mat-vertical-stepper linear>
+  <mat-step [stepControl]="step1FormGroup">
+    <ng-template matStepLabel>Choose CBA Template file</ng-template>
+    <app-template-options></app-template-options>
+    <br>
+    <div>
+      <button mat-button matStepperNext class="matStepNextBtn">Proceed</button>
+    </div>
+  </mat-step>
 
+  <mat-step [stepControl]="step2FormGroup">
+    <ng-template matStepLabel>Browse CBA Template file</ng-template>
+    <app-search-template (change)="fileChange(fileupload.files)"></app-search-template>
+    <br>
+    <div>
+      <button mat-button matStepperNext class="matStepNextBtn">Upload</button>
+    </div>
+  </mat-step>
+  <mat-step [stepControl]="step3FormGroup">
+    <ng-template matStepLabel>Enter Metadata details</ng-template>
+    <app-metadata></app-metadata>
+    <br>
+  </mat-step>
+</mat-vertical-stepper>
+<button mat-button matStepperNext class="matStepNextBtn">Next</button>
 <!-- <router-outlet></router-outlet> -->
+
+<!-- </form> -->
\ No newline at end of file
index 22941b5..47ae92a 100644 (file)
@@ -17,4 +17,12 @@ 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
+*/
+
+.matStepNextBtn{
+    color:white;
+    background:gray; 
+    margin-top: 10px; 
+    position: absolute;
+    
+}
\ No newline at end of file
index 78a0d1b..b4356a6 100644 (file)
@@ -19,7 +19,7 @@ limitations under the License.
 ============LICENSE_END============================================
 */
 import { Component, OnInit } from '@angular/core';
-import { Observable} from 'rxjs';
+import { Observable } from 'rxjs';
 import { Store } from '@ngrx/store';
 
 @Component({
@@ -29,10 +29,18 @@ import { Store } from '@ngrx/store';
 })
 export class SelectTemplateComponent implements OnInit {
   blueprint: any
-  constructor() {
-   }
+  myFile: File; /* property of File type */
 
-  ngOnInit() {
+  constructor() {
   }
 
+  ngOnInit() {  
+  }
+  fileChange(files: any) {
+    console.log(files);
+    this.myFile = files[0].nativeElement;
+  }
+  upload(){
+    
+  }
 }