blob: 1c1e766b0838754240007103d85c6475a2d1a300 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<!--
/*******************************************************************************
* 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
*******************************************************************************/
-->
<form class="form-horizontal">
<div class="form-group row">
<label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.TIMER_TYPE' | translate}}</label>
<div class="col-md-9">
<label class="plx-radio-container">
<input type="radio" class="plx-radio" [checked]="checkedType === timeType[timeType.timeDuration]"
(click)="timeTypeChange(timeType[timeType.timeDuration])">
<div class="radio-substitute"></div>
<span>{{'WORKFLOW.TIMER_CYCLE' | translate}}</span>
</label>
<label class="plx-radio-container">
<input type="radio" class="plx-radio" [checked]="checkedType === timeType[timeType.timeDate]"
(click)="timeTypeChange(timeType[timeType.timeDate])">
<div class="radio-substitute"></div>
<span>{{'WORKFLOW.TIMER_DATE' | translate}}</span>
</label>
</div>
</div>
<div *ngIf="checkedType === timeType[timeType.timeDuration]">
<!--<div class="form-group row">
<label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.TIMER_YEAR' | translate}}</label>
<div class="col-md-9">
<plx-text-input type="number" name="year" min="0" width="336px"
[(ngModel)]="timeCycle.year" (change)="transformTimeDurationToString()"></plx-text-input>
</div>
</div>-->
<div class="form-group row">
<label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.TIMER_MONTH' | translate}}</label>
<div class="col-md-9">
<plx-text-input type="number" name="month" min="0" max="12" width="336px"
[(ngModel)]="timeDuration.month" (change)="transformTimeDurationToString()"></plx-text-input>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.TIMER_DAY' | translate}}</label>
<div class="col-md-9">
<plx-text-input type="number" name="day" min="0" max="31" width="336px"
[(ngModel)]="timeDuration.day" (change)="transformTimeDurationToString()"></plx-text-input>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.TIMER_HOUR' | translate}}</label>
<div class="col-md-9">
<plx-text-input type="number" name="hour" min="0" max="23" width="336px"
[(ngModel)]="timeDuration.hour" (change)="transformTimeDurationToString()"></plx-text-input>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.TIMER_MINUTE' | translate}}</label>
<div class="col-md-9">
<plx-text-input type="number" name="minute" min="0" max="59" width="336px"
[(ngModel)]="timeDuration.minute" (change)="transformTimeDurationToString()"></plx-text-input>
</div>
</div>
<div class="form-group row">
<label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.TIMER_SECOND' | translate}}</label>
<div class="col-md-9">
<plx-text-input type="number" name="second" min="0" max="59" width="336px"
[(ngModel)]="timeDuration.second" (change)="transformTimeDurationToString()"></plx-text-input>
</div>
</div>
<!--<div class="form-group row">
<label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.TIMER_CYCLE_INDEX' | translate}}</label>
<div class="col-md-9">
<plx-text-input type="number" name="time" min="1" width="336px"
[(ngModel)]="timeCycle.time" (change)="transformTimeDurationToString()"></plx-text-input>
</div>
</div>-->
</div>
<div *ngIf="checkedType === timeType[timeType.timeDate]" class="form-group row">
<label class="col-md-3 form-control-label text-md-right">{{'WORKFLOW.TIMER_DATE' | translate}}</label>
<div class="col-md-9">
<plx-datepicker name="date" [(ngModel)]="timeDate" [locale]="locale" (onConfirm)="timeDateChange()" showTime="true"
showSeconds='true' dateFormat="YYYY/MM/DD HH:mm:ss"></plx-datepicker>
</div>
</div>
</form>
|