Resource template option component 38/77938/1
authorSwapnali Shadanan Pode <sp00501638@techmahindra.com>
Wed, 6 Feb 2019 10:02:34 +0000 (15:32 +0530)
committerSwapnali Shadanan Pode <sp00501638@techmahindra.com>
Wed, 6 Feb 2019 10:02:34 +0000 (15:32 +0530)
Change-Id: Ib1481a3a9abfdadc85c2e8399d3978e3fe8c506d
Issue-ID: CCSDK-804
Signed-off-by: sp00501638 <sp00501638@techmahindra.com>
cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.html [new file with mode: 0644]
cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.scss [new file with mode: 0644]
cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.spec.ts [new file with mode: 0644]
cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.ts [new file with mode: 0644]

diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.html b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.html
new file mode 100644 (file)
index 0000000..a0e6b15
--- /dev/null
@@ -0,0 +1,24 @@
+<!--\r
+* ============LICENSE_START=======================================================\r
+* ONAP : CDS\r
+* ================================================================================\r
+* Copyright 2019 TechMahindra\r
+*=================================================================================\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+*     http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+* ============LICENSE_END=========================================================\r
+-->\r
+<mat-radio-group>\r
+  <mat-radio-button value="1" (click)="selected(1)">Upload Resource File</mat-radio-button><br><br>\r
+  <mat-radio-button value="2" (click)="selected(2)">New Resource</mat-radio-button><br><br>\r
+  <mat-radio-button value="3" (click)="selected(3)">Existing Model Resource</mat-radio-button>\r
+</mat-radio-group>\r
diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.scss b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.scss
new file mode 100644 (file)
index 0000000..2205ac8
--- /dev/null
@@ -0,0 +1,19 @@
+/*\r
+* ============LICENSE_START=======================================================\r
+* ONAP : CDS\r
+* ================================================================================\r
+* Copyright 2019 TechMahindra\r
+*=================================================================================\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+*     http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+* ============LICENSE_END=========================================================\r
+*/
\ No newline at end of file
diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.spec.ts b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.spec.ts
new file mode 100644 (file)
index 0000000..2061ed2
--- /dev/null
@@ -0,0 +1,45 @@
+/*\r
+* ============LICENSE_START=======================================================\r
+* ONAP : CDS\r
+* ================================================================================\r
+* Copyright 2019 TechMahindra\r
+*=================================================================================\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+*     http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+* ============LICENSE_END=========================================================\r
+*/\r
+\r
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';\r
+\r
+import { ResourceTemplateOptionsComponent } from './resource-template-options.component';\r
+\r
+describe('ResourceTemplateOptionsComponent', () => {\r
+  let component: ResourceTemplateOptionsComponent;\r
+  let fixture: ComponentFixture<TemplateOptionsComponent>;\r
+\r
+  beforeEach(async(() => {\r
+    TestBed.configureTestingModule({\r
+      declarations: [ ResourceTemplateOptionsComponent ]\r
+    })\r
+    .compileComponents();\r
+  }));\r
+\r
+  beforeEach(() => {\r
+    fixture = TestBed.createComponent(ResourceTemplateOptionsComponent);\r
+    component = fixture.componentInstance;\r
+    fixture.detectChanges();\r
+  });\r
+\r
+  it('should create', () => {\r
+    expect(component).toBeTruthy();\r
+  });\r
+});\r
diff --git a/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.ts b/cds-ui/client/src/app/feature-modules/resource-definition/resource-creation/resource-template-options/resource-template-options.component.ts
new file mode 100644 (file)
index 0000000..1c6efc9
--- /dev/null
@@ -0,0 +1,44 @@
+/*\r
+* ============LICENSE_START=======================================================\r
+* ONAP : CDS\r
+* ================================================================================\r
+* Copyright 2019 TechMahindra\r
+*=================================================================================\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+*     http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+* ============LICENSE_END=========================================================\r
+*/\r
+\r
+import { Component, OnInit, Output, EventEmitter} from '@angular/core';\r
+import { HttpClient } from '@angular/common/http';\r
+@Component({\r
+  selector: 'app-resource-template-options',\r
+  templateUrl: './resource-template-options.component.html',\r
+  styleUrls: ['./resource-template-options.component.scss']\r
+})\r
+export class ResourceTemplateOptionsComponent implements OnInit {\r
+  selectedOption: string;\r
+  @Output() option = new EventEmitter();\r
+\r
+  constructor() { }\r
+\r
+  ngOnInit() {\r
+  }\r
+\r
+  selected(value){\r
+    console.log(value);\r
+    this.option.emit(value);\r
+  }\r
+  // loadTemplateData() {\r
+  //  // to do\r
+  // }\r
+}\r