style: optimize the style of the create dialog 43/96843/1
authorcyuamber <xuranyjy@chinamobile.com>
Thu, 10 Oct 2019 07:03:00 +0000 (15:03 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Thu, 10 Oct 2019 07:03:08 +0000 (15:03 +0800)
Change-Id: If8f27ebee4717ac7b49b4f7511d1aee859ad0ced
Issue-ID: USECASEUI-307
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.html
usecaseui-portal/src/app/views/services/services-list/create-model/create-model.component.less

index aa2cb06..e093b3b 100644 (file)
@@ -1,60 +1,59 @@
 <nz-modal nzWidth="428" [(nzVisible)]="isVisible" nzTitle=" {{'i18nTextDefine_ServiceCreation' | translate}} "
-        (nzOnCancel)="handleCancel()"
-        (nzOnOk)="handleOk()" nzClassName="serviceCreationModel"
-        nzCancelText=" {{'i18nTextDefine_Cancel' | translate}} "
-        nzOkText=" {{'i18nTextDefine_modelOk' | translate}} ">
+    (nzOnCancel)="handleCancel()"
+    (nzOnOk)="handleOk()" nzClassName="serviceCreationModel"
+    nzCancelText=" {{'i18nTextDefine_Cancel' | translate}} "
+    nzOkText=" {{'i18nTextDefine_modelOk' | translate}} "
+>
+    <div class="select-list">
+        <span> {{"i18nTextDefine_Customer" | translate}} : </span>
+        <nz-select [(ngModel)]="currentCustomer.name" nzAllowClear
+            (ngModelChange)="customerChange()">
+            <nz-option *ngFor="let item of customerList" [nzValue]="item.name" [nzLabel]="item.name"></nz-option>
+        </nz-select>
+    </div>
+    <div class="select-list">
+        <span> {{"i18nTextDefine_ServiceType" | translate}} : </span>
+        <nz-select [(ngModel)]="currentServiceType.name" nzAllowClear>
+            <nz-option *ngFor="let item of serviceTypes" [nzValue]="item.name" [nzLabel]="item.name">
+            </nz-option>
+        </nz-select>
+    </div>
+    <div class="select-list">
+        <span> {{"i18nTextDefine_UseCase" | translate}} : </span>
+        <nz-select [(ngModel)]="templateTypeSelected" nzAllowClear
+            (ngModelChange)="choseTemplateType()">
+            <nz-option nzValue="SOTN" nzLabel="SOTN"></nz-option>
+            <nz-option nzValue="CCVPN" nzLabel="CCVPN"></nz-option>
+            <nz-option nzValue="E2E Service" nzLabel="E2E Service"></nz-option>
+            <nz-option nzValue="Network Service" nzLabel="Network Service"></nz-option>
+        </nz-select>
+    </div>
+    <div class="select-list">
+        <span> {{"i18nTextDefine_Template" | translate}} : </span>
+        <nz-select [(ngModel)]="currentTemplate" nzAllowClear>
+            <nz-option *ngFor="let item of templates" [nzValue]="item" [nzLabel]="item.name"></nz-option>
+        </nz-select>
+    </div>
+    <div *ngIf="templateTypeSelected === 'E2E Service'">
         <div class="select-list">
-            <span style="display:inline-block;" class="label"> {{"i18nTextDefine_Customer" | translate}} : </span>
-            <nz-select style="width: 176px;float: right;" [(ngModel)]="currentCustomer.name" nzAllowClear
-                (ngModelChange)="customerChange()">
-                <nz-option *ngFor="let item of customerList" [nzValue]="item.name" [nzLabel]="item.name"></nz-option>
+            <span> {{"i18nTextDefine_Orchestrator" | translate}} : </span>
+            <nz-select [(ngModel)]="orchestratorSelected" nzAllowClear>
+                <nz-option *ngFor="let item of orchestratorList" [nzValue]="item" [nzLabel]="item.name"></nz-option>
             </nz-select>
         </div>
-        <div class="select-list">
-            <span style="display:inline-block;"> {{"i18nTextDefine_ServiceType" | translate}} : </span>
-            <nz-select style="width: 176px;float: right;" [(ngModel)]="currentServiceType.name" nzAllowClear>
-              <nz-option *ngFor="let item of serviceTypes" [nzValue]="item.name" [nzLabel]="item.name">
-              </nz-option>
-            </nz-select>
-        </div>
-        <div class="select-list">
-            <span style="display:inline-block;"> {{"i18nTextDefine_UseCase" | translate}} : </span>
-            <nz-select style="width: 176px;float: right;" [(ngModel)]="templateTypeSelected" nzAllowClear
-                (ngModelChange)="choseTemplateType()">
-                <nz-option nzValue="SOTN" nzLabel="SOTN"></nz-option>
-                <nz-option nzValue="CCVPN" nzLabel="CCVPN"></nz-option>
-                <nz-option nzValue="E2E Service" nzLabel="E2E Service"></nz-option>
-                <nz-option nzValue="Network Service" nzLabel="Network Service"></nz-option>
-            </nz-select>
-        </div>
-        <div class="select-list">
-            <span style="display:inline-block;width:70px;"> {{"i18nTextDefine_Template" | translate}} : </span>
-            <nz-select style="width: 176px;float: right;" [(ngModel)]="currentTemplate" nzAllowClear>
-                <nz-option *ngFor="let item of templates" [nzValue]="item" [nzLabel]="item.name"></nz-option>
-            </nz-select>
-        </div>
-        <div *ngIf="templateTypeSelected === 'E2E Service'">
-            <div class="select-list">
-                <span style="display:inline-block;width:70px;"> {{"i18nTextDefine_Orchestrator" | translate}} : </span>
-                <nz-select style="width: 176px;float: right;" [(ngModel)]="orchestratorSelected" nzAllowClear>
-                    <nz-option *ngFor="let item of orchestratorList" [nzValue]="item" [nzLabel]="item.name"></nz-option>
-                </nz-select>
-            </div>
-        </div>
-        <div *ngIf="templateTypeSelected === 'E2E Service'">
-            <div class="check-box" style="margin:30px; height: 50px">
-                <input class="check-box-style" style="zoom: 1.8; width: 70px" type="checkbox"
-                    [(ngModel)]="isSol005Interface" value="true" nzAllowClear>
-                <label class="label" style="font-size: 20px; color: rgb(60,79,140,0.5)">Sol005</label>
-            </div>
-        </div>
-        <div class="select-list" style="color: red;margin-left: 66px;" *ngIf="temParametersTips">
-            {{"i18nTextDefine_Templateparsingfailed" | translate}}
+        <div class="checkbox select-list">
+            <span>Sol005 :</span>
+            <input type="checkbox"
+                [(ngModel)]="isSol005Interface" value="true" nzAllowClear>
+            
         </div>
-        
-    </nz-modal>
-    <div class="loading" *ngIf="loadingAnimateShow">
-      <img src="assets/images/loading-animate2.gif" alt="loading">
-      <p>Please wating……</p>
-  </div>
+    </div>
+    <div class="select-list" *ngIf="temParametersTips">
+        {{"i18nTextDefine_Templateparsingfailed" | translate}}
+    </div>
+</nz-modal>
+<div class="loading" *ngIf="loadingAnimateShow">
+    <img src="assets/images/loading-animate2.gif" alt="loading">
+    <p>Please wating……</p>
+</div>
 
index a42c412..fdee93c 100644 (file)
@@ -1,14 +1,30 @@
-select-list{\r
+.select-list{\r
   width: 320px;\r
   height: 32px;\r
   line-height: 32px;\r
   margin: 35px auto;\r
   .select-list>span{\r
+    display:inline-block;\r
     text-align: right;\r
-    width: 110px!important;\r
     line-height: 32px;\r
   }\r
+  nz-select{\r
+    width: 176px;\r
+    float: right;\r
+  }\r
+  &.checkbox{ \r
+    margin: 0 auto;\r
+    line-height: 32px;\r
+    input[type="checkbox"]{\r
+      zoom: 1.3; \r
+      width: 140px;\r
+    }\r
+  }\r
+}\r
+::ng-deep nz-modal button.ant-btn {\r
+  margin-top:20px !important;\r
 }\r
+\r
 .loading{\r
   width: 100%;\r
   height: 100%;\r