aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/components/menus/menus.component.html
blob: 9537bfd724c673b02ab01d240bad35d3b48f0a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!--
/**
 * Copyright (c) 2017 ZTE Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * and the Apache License 2.0 which both accompany this distribution,
 * and are available at http://www.eclipse.org/legal/epl-v10.html
 * and http://www.apache.org/licenses/LICENSE-2.0
 *
 * Contributors:
 *     ZTE - initial API and implementation and/or initial documentation
 */
-->

<div>
  <label class="wf-name">{{name}}</label>
  <!-- <button type="button" class="btn white btn-right" (click)="showRestConfigModal()">
    <i class="fa fa-cog"></i>{{ 'WORKFLOW.SETTING' | translate:param }}
  </button> -->
  <button type="button" class="plx-btn btn-right" (click)="checkBack(confirmSave)">
    <i class="fa fa-arrow-left"></i>{{ 'WORKFLOW.BACK' | translate }}
  </button>
  <button type="button" class="plx-btn plx-btn-primary btn-right" (click)="save()" [disabled]="!(canSave && hasRight)">
    <i class="fa fa-save"></i>{{ 'WORKFLOW.SAVE' | translate }}
  </button>
</div>

<wfm-rest-config></wfm-rest-config>

<template #confirmSave let-c="close" let-d="dismiss">
  <div class="modal-header">
      <h4 class="modal-title">{{ 'WORKFLOW.CONFIRM' | translate }}</h4>
      <button type="button" class="close" (click)="d('Cross click')">
          <span class="plx-ico-close-16"></span>
      </button>
  </div>
  <div class="modal-body">
      <div class="row alert-modal">
          <span class="tip-img warning"></span>
          <div class="tip-info">
              <div class="alert-title">{{ 'WORKFLOW.CONFIRM_SAVE1' | translate }}</div>
              <div class="alert-result">{{ 'WORKFLOW.CONFIRM_SAVE2' | translate }}</div>
          </div>
      </div>
  </div>
  <div class="modal-footer">
      <div class="form-group">
          <div class="btnGroup modal-btn">
              <button type="button" class="plx-btn plx-btn-guide" (click)="saveBack();">{{ 'WORKFLOW.CONFIRM_SAVE_BACK' | translate }}</button>
              <button type="button" class="plx-btn" (click)="back();">{{ 'WORKFLOW.CONFIRM_BACK' | translate }}</button>
          </div>
      </div>
  </div>
</template>