forked from openiap/opencore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorkitem.html
More file actions
123 lines (111 loc) · 4.54 KB
/
Copy pathWorkitem.html
File metadata and controls
123 lines (111 loc) · 4.54 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<div class="row">
<div class="col-sm-20">
<h1 class="pagetitle" translate lib="web">{{ctrl.model.name}}</h1>
</div>
</div>
<style type="text/css">
.list-group-item:hover {
color: #337ab7;
text-shadow: 0 0 1em #337ab7;
cursor: pointer;
}
.listgroupitemselected {
border: 6px;
border-color: black;
background-color: #337ab7;
color: white;
cursor: pointer;
}
textarea {
border: 0 none white;
overflow: hidden;
padding: 0;
outline: none;
background-color: #D0D0D0;
}
textarea.form-control {
min-height: unset !important;
}
.secret {
-webkit-text-security: disc;
}
</style>
<pre ng-show="ErrorMessage!=null">{{ ErrorMessage }}</pre>
<div ng-show="ctrl.errormessage != ''"" class=" alert alert-danger" role="alert">{{ctrl.errormessage}}</div>
<form ng-submit="ctrl.submit()" class="form-horizontal" role="form" autocomplete="off">
<div class="form-group">
<label for="name" class="col-sm-2 control-label" translate lib="web">name</label>
<div class="col-sm-4">
<input ng-model="ctrl.model.name" class="form-control input-md" ng-disabled="ctrl.loading==true" />
</div>
</div>
<div class="form-group">
<label for="name" class="col-sm-2 control-label" translate lib="web">queue</label>
<div class="col-sm-4">
<select id="menucollections" ng-model="ctrl.model.wiq" ng-show="!ctrl.model._id || ctrl.model._id == ''"
ng-options="item.name as item.name for item in ctrl.workitemqueues">
</select>
<span ng-show="ctrl.model._id && ctrl.model._id != ''">{{ctrl.model.wiq}}</span>
</div>
</div>
<div class="form-group" ng-show="ctrl.model._id && ctrl.model._id != ''">
<label for="state" class="col-sm-2 control-label" translate lib="web">state</label>
<div class="col-sm-4">
<select class="form-control" id="country" ng-model="ctrl.model.state" required="required"
ng-disabled="ctrl.loading==true">
<option value="new">New</option>
<option value="failed">Failed</option>
<option value="successful">Successful</option>
<option value="abandoned">Abandoned</option>
<option value="processing">Processing</option>
<option value="retry">Retry</option>
</select>
</div>
</div>
<div class="form-group">
<label for="newpassword" class="col-sm-2 control-label" translate lib="web">payload</label>
<div class="col-sm-4">
<textarea json-text class='form-control' rows='1' data-min-rows='1'
ng-model="ctrl.model.payload"></textarea>
</div>
</div>
<div class="form-group">
<label for="name" class="col-sm-2 control-label" translate lib="web">retries</label>
<div class="col-sm-6">
<input type="number" ng-model="ctrl.model.retries" class="input-md" ng-disabled="true" />
</div>
</div>
<div class="form-group" ng-show="ctrl.model.errormessage && ctrl.model.errormessage != ''">
<label for="newpassword" class="col-sm-2 control-label" translate lib="web">errormessage</label>
<div class="col-sm-4">
<!-- <textarea json-text class='form-control' rows='1' data-min-rows='1'
ng-model="ctrl.model.errormessage"></textarea> -->
{{ctrl.model.errormessage}}
<span ng-show="ctrl.model.errorsource && ctrl.model.errorsource != ''">
at {{ctrl.model.errorsource}}
</span>
</div>
</div>
<div ng-show="ctrl.model._id != ''">
<div class="row">
<label class="col-sm-2 control-label" translate lib="web">files</label>
</div>
<div class="row" ng-repeat="file in ctrl.model.files">
<div class="col-sm-4">
{{ file.name }}
<a ng-href="/download/{{file._id}}" class="table-btn">
<em class="fas fa-file-download"></em>
</a>
</div>
</div>
<div class="row form-group">
<label class="col-sm-2 control-label"></label>
</div>
</div>
<div class="form-group" ng-show="ctrl.model.wiq && ctrl.model.wiq != ''">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" ng-disabled="ctrl.loading==true" class="btn btn-success" translate
lib="web">save</button>
</div>
</div>
</form>