From cc3532626edbeee463d661b5721ca5ddc3f69e44 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Mon, 18 Mar 2019 17:50:14 +0530 Subject: Modify Component HTML changes Moved the deploy, save , download, publish, enrich action buttons to common modify-template component Issue-ID: CCSDK-1098 Change-Id: I52d4cb1864d90eecbb7b1fcdadfb17d8be84b86d Signed-off-by: Arundathi Patil --- .../modify-template/editor/editor.component.html | 23 +------ .../modify-template/editor/editor.component.scss | 12 +++- .../modify-template/modify-template.component.html | 74 +++++++--------------- .../modify-template/modify-template.component.scss | 23 +++++++ .../modify-template/modify-template.component.ts | 11 +++- 5 files changed, 69 insertions(+), 74 deletions(-) (limited to 'cds-ui/client/src/app/feature-modules/blueprint/modify-template') diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html index 53bbc6dfa..64b201d81 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html @@ -21,13 +21,10 @@ limitations under the License.
- - -
+
- -
+ \ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss index 58f0ab85d..136c08bfa 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.scss @@ -41,12 +41,20 @@ limitations under the License. overflow: hidden; height: 100% !important; background-color: white !important; - border: 1px solid #3f87a6; - border-left: 5px solid #3f87a6; + border: 1px solid #3f51b5; + // border-left: 5px solid #3f51b5; } .savebtn { color: white; background-color: #3f51b5; position: absolute; bottom: 5px; +} +.save-icon{ + position: absolute; + left: 59em; + color: #3f51b5; + font-size: 24px; + cursor: pointer; + z-index: 1; } \ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.html b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.html index 81a1a851e..a77be5ba0 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.html +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.html @@ -18,58 +18,30 @@ See the License for the specific language governing permissions and limitations under the License. ============LICENSE_END============================================ --> - -
- - -
\ No newline at end of file +
+ +
+
+ +
+
+
+
+
+ + + + + + + + + + +
+
+
\ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.scss b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.scss index 2d9685e24..609d6faf0 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.scss +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.scss @@ -54,4 +54,27 @@ limitations under the License. .editor-selector { width: 100%; +} + +.mat-button-active{ + margin: 0.5em; + background-color: #3f51b5 !important; + color: white !important; + border-radius: 4px; + border: none; + line-height: none !important; + // padding: 0.5em; + min-width: 6em; + cursor: pointer; +} + +.mat-button-disablled { + background-color: #c5cae8 !important; + border-radius: 4px; + color: darkgray !important; + line-height: none !important; + margin: 0.5em; + // padding: 0.5em; + min-width: 6em; + cursor: initial; } \ No newline at end of file diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts index 809f31027..e39ce019c 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/modify-template.component.ts @@ -19,7 +19,9 @@ limitations under the License. ============LICENSE_END============================================ */ -import { Component, OnInit } from '@angular/core'; +import { Component, OnInit, ViewChild } from '@angular/core'; + +import { EditorComponent } from './editor/editor.component'; @Component({ selector: 'app-modify-template', @@ -28,10 +30,13 @@ import { Component, OnInit } from '@angular/core'; }) export class ModifyTemplateComponent implements OnInit { + isEnriched: boolean = false; designerMode: boolean = false; editorMode: boolean = true; viewText: string = "Designer View"; + @ViewChild(EditorComponent) editorComp: EditorComponent; + constructor() { } ngOnInit() { @@ -53,4 +58,8 @@ export class ModifyTemplateComponent implements OnInit { } } + downloadCBA() { + this.editorComp.download(); + } + } -- cgit 1.2.3-korg