懒羊羊
2023-08-30 1ac2bc1590406d9babec036e154d8d08f34a6aa1
提交 | 用户 | 时间
1ac2bc 1
2 <div class="modal" ng-controller="KisBpmTaskListenersPopupCtrl">
3     <div class="modal-dialog modal-wide">
4         <div class="modal-content">
5             <div class="modal-header">
6                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;</button>
7                 <h2>{{'PROPERTY.PROPERTY.EDIT.TITLE' | translate:property}}</h2>
8             </div>
9             <div class="modal-body">
10             
11                 <div class="row row-no-gutter">
12                     <div class="col-xs-6">
13                         <div ng-if="translationsRetrieved" class="kis-listener-grid" ng-grid="gridOptions"></div>
14                         <div class="pull-right">
15                             <div class="btn-group">
16                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.MOVE.UP | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="moveListenerUp()"><i class="glyphicon glyphicon-arrow-up"></i></a>
17                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.MOVE.DOWN | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="moveListenerDown()"><i class="glyphicon glyphicon-arrow-down"></i></a>
18                             </div>
19                             <div class="btn-group">
20                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.ADD | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="addNewListener()"><i class="glyphicon glyphicon-plus"></i></a>
21                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.REMOVE | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="removeListener()"><i class="glyphicon glyphicon-minus"></i></a>
22                             </div>
23                         </div>
24                     </div>
25             
26                     <div class="col-xs-6">
27                         <div ng-show="selectedListeners.length > 0">
28             
29                             <div class="form-group">
30                                    <label for="eventField">{{'PROPERTY.TASKLISTENERS.EVENT' | translate}}</label>
31                                    <select id="eventField" class="form-control" ng-model="selectedListeners[0].event">
32                                     <option>create</option>
33                                     <option>assignment</option>
34                                     <option>complete</option>
35                                     <option>delete</option>
36                                 </select>
37                             </div>
38                             <div class="form-group">
39                                    <label for="classField">{{'PROPERTY.TASKLISTENERS.CLASS' | translate}}</label>
40                                    <input type="text" id="classField" class="form-control" ng-model="selectedListeners[0].className" ng-change="listenerDetailsChanged()" placeholder="{{'PROPERTY.TASKLISTENERS.CLASS.PLACEHOLDER' | translate}}" />
41                             </div>
42                             <div class="form-group">
43                                    <label for="expressionField">{{'PROPERTY.TASKLISTENERS.EXPRESSION' | translate}}</label>
44                                    <input type="text" id="expressionField" class="form-control" ng-model="selectedListeners[0].expression" ng-change="listenerDetailsChanged()" placeholder="{{'PROPERTY.TASKLISTENERS.EXPRESSION.PLACEHOLDER' | translate}}" />
45                             </div>
46                             <div class="form-group">
47                                    <label for="delegateExpressionField">{{'PROPERTY.TASKLISTENERS.DELEGATEEXPRESSION' | translate}}</label>
48                                    <input type="text" id="delegateExpressionField" class="form-control" ng-model="selectedListeners[0].delegateExpression" ng-change="listenerDetailsChanged()" placeholder="{{'PROPERTY.TASKLISTENERS.DELEGATEEXPRESSION.PLACEHOLDER' | translate}}" />
49                             </div>
50                         </div>
51                         <div ng-show="selectedListeners.length == 0" class="muted no-property-selected" translate>PROPERTY.TASKLISTENERS.UNSELECTED</div>
52                     </div>
53                 </div>
54                 
55                 <div class="row row-no-gutter">
56                     <div class="col-xs-6">
57                         <div ng-if="translationsRetrieved" class="kis-field-grid" ng-grid="gridFieldOptions"></div>
58                         <div class="pull-right">
59                             <div class="btn-group">
60                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.MOVE.UP | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="moveFieldUp()"><i class="glyphicon glyphicon-arrow-up"></i></a>
61                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.MOVE.DOWN | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="moveFieldDown()"><i class="glyphicon glyphicon-arrow-down"></i></a>
62                             </div>
63                             <div class="btn-group">
64                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.ADD | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="addNewField()"><i class="glyphicon glyphicon-plus"></i></a>
65                                 <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.REMOVE | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="removeField()"><i class="glyphicon glyphicon-minus"></i></a>
66                             </div>
67                         </div>
68                     </div>
69             
70                     <div class="col-xs-6">
71                         <div ng-show="selectedFields.length > 0">
72             
73                             <div class="form-group">
74                                    <label for="nameField">{{'PROPERTY.TASKLISTENERS.FIELDS.NAME' | translate}}</label>
75                                    <input type="text" id="nameField" class="form-control" ng-model="selectedFields[0].name" placeholder="{{'PROPERTY.TASKLISTENERS.FIELDS.NAME.PLACEHOLDER' | translate}}" />
76                             </div>
77                             <div class="form-group">
78                                    <label for="stringValueField">{{'PROPERTY.TASKLISTENERS.FIELDS.STRINGVALUE' | translate}}</label>
79                                    <input type="text" id="stringValueField" class="form-control" ng-model="selectedFields[0].stringValue" ng-change="fieldDetailsChanged()" placeholder="{{'PROPERTY.TASKLISTENERS.FIELDS.STRINGVALUE.PLACEHOLDER' | translate}}" />
80                             </div>
81                             <div class="form-group">
82                                    <label for="expressionField">{{'PROPERTY.TASKLISTENERS.FIELDS.EXPRESSION' | translate}}</label>
83                                    <input type="text" id="expressionField" class="form-control" ng-model="selectedFields[0].expression" ng-change="fieldDetailsChanged()" placeholder="{{'PROPERTY.TASKLISTENERS.FIELDS.EXPRESSION.PLACEHOLDER' | translate}}" />
84                             </div>
85                             <div class="form-group">
86                                    <label for="stringField">{{'PROPERTY.TASKLISTENERS.FIELDS.STRING' | translate}}</label>
87                                    <textarea id="stringField" class="form-control" ng-model="selectedFields[0].string" ng-change="fieldDetailsChanged()" placeholder="{{'PROPERTY.TASKLISTENERS.FIELDS.STRING.PLACEHOLDER' | translate}}"></textarea>
88                             </div>
89                             
90                         </div>
91                         <div ng-show="selectedFields.length == 0" class="muted no-property-selected"translate>PROPERTY.TASKLISTENERS.FIELDS.EMPTY</div>
92                     </div>
93                 </div>
94             
95             </div>
96             <div class="modal-footer">
97                 <button ng-click="cancel()" class="btn btn-primary" translate>ACTION.CANCEL</button>
98                 <button ng-click="save()" class="btn btn-primary" translate>ACTION.SAVE</button>
99             </div>
100         </div>
101     </div>
102 </div>