-
Notifications
You must be signed in to change notification settings - Fork 59
/
decide.html
88 lines (88 loc) · 3.09 KB
/
decide.html
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
<p>
Bitte entscheiden Sie über folgenden Versicherungsantrag.
</p>
<form class="form-horizontal">
<script cam-script type="text/form-script">
inject([ '$scope', '$http', 'Uri', function($scope, $http, Uri) {
camForm.on('variables-fetched', function() {
// load deserialized value of risk HashMap to be able to process it in JavaScript
$http({
method: 'GET',
url: Uri.appUri('engine://engine/:engine/task/' + camForm.taskId + '/variables/' + 'risk' + '?deserializeValue=true')
}).success(function(riskVariable ) {
$scope.risk = riskVariable.value;
});
});
}]);
</script>
<div class="control-group">
<label class="control-label">Name</label>
<div class="controls">
<input type="text"
cam-variable-name="name"
cam-variable-type="String"
readonly="true"
class="form-control" />
</div>
</div>
<div class="control-group">
<label class="control-label">E-Mail</label>
<div class="controls">
<input type="text"
cam-variable-name="email"
cam-variable-type="String"
readonly="true"
class="form-control" />
</div>
</div>
<div class="control-group">
<label class="control-label">Alter</label>
<div class="controls">
<input type="text"
cam-variable-name="age"
cam-variable-type="Integer"
readonly="true"
class="form-control" />
</div>
</div>
<div class="control-group">
<label class="control-label">KFZ-Hersteller</label>
<div class="controls">
<select cam-variable-name="carManufacturer"
cam-variable-type="String"
disabled="true">
<option>BMW</option>
<option>Porsche</option>
<option>VW</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">KFZ-Typ</label>
<div class="controls">
<select cam-variable-name="carType"
cam-variable-type="String"
disabled="true">
<option>X3</option>
<option>911</option>
<option>Golf 5</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">Erkanntes Risiko</label>
<div class="controls">
<input type="text" ng-model="risk.description" readonly="true" />
</div>
</div>
<div class="control-group">
<label class="control-label">Antrag annehmen?</label>
<div class="controls">
<input type="checkbox"
cam-variable-name="approved"
cam-variable-type="Boolean"
name="approved"
class="form-control" />
</div>
</div>
</form>