Parent: [719ff2] (diff)

Child: [bd5300] (diff)

Download this file

appRules.html    79 lines (76 with data), 3.5 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
<!-- made by Miguel Rodrigues @ KBZ miguel.rodrigues@knowledgebiz.pt -->
<h1>Application Rules for {{appId}}</h1>
<br>
<div class="alert alert-danger" role="alert" ng-if="error">
<strong>{{error}}</strong>
</div>
<div class="row" ng-if="!error">
<div class="col-xs-12">
<div class="text-right">
<button type="button" class="btn btn-outline-primary" ng-click="redirectAppManager()">Application Manager for {{developerid}}</button>
</div>
</div>
</div>
<br>
<!-- APP RULES REGISTRATION FORM -->
<div class="container" ng-if="!error">
<form>
<div class="form-group row has-danger">
<label class="col-sm-2 col-form-label">Description</label>
<div class="col-sm-5">
<input type="text" class="form-control form-control-danger" ng-model="description" placeholder="Same Description">
<div ng-if="successDescription == 1"><font color="green">Success! You've done it.</font></div>
<div ng-if="successDescription == 2"><font color="red">Fail! Wrong Input, cannot be null</font></div>
</div>
</div>
<div class="form-group row has-danger">
<label class="col-sm-2 col-form-label">Parameter</label>
<div class="col-sm-5">
<input type="text" class="form-control form-control-danger" ng-model="parameter" placeholder="Which Parameter">
<div ng-if="successParameter == 1"><font color="green">Success! You've done it.</font></div>
<div ng-if="successParameter == 2"><font color="red">Fail! Wrong Input, cannot be null</font></div>
</div>
</div>
<div class="form-group row has-danger">
<label class="col-sm-2 col-form-label">Condition Value</label>
<div class="col-sm-5">
<select class="form-control form-control-danger" ng-model="conditionValue" ng-init="conditionValue='<'">
<option value="<">Less (<)</option>
<option value="<=">Less or Equal (<=)</option>
<option value=">">Bigger (>)</option>
<option value=">=">Bigger or Equal (>=)</option>
</select>
</div>
</div>
<div class="form-group row has-danger">
<label class="col-sm-2 col-form-label">Control Value</label>
<div class="col-sm-5">
<input type="text" class="form-control form-control-danger" ng-model="controlValue" placeholder="20">
<div ng-if="successControlValue == 1"><font color="green">Success! You've done it.</font></div>
<div ng-if="successControlValue == 2"><font color="red">Fail! Wrong Input, only numbers</font></div>
</div>
</div>
<div class="form-group row has-danger">
<label class="col-sm-2 col-form-label">Notification Type</label>
<div class="col-sm-5">
<select class="form-control form-control-danger" ng-model="notificationType" ng-init="notificationType='1'">
<option value="1" selected>End of Month (1)</option>
<option value="2">End of Two Weeks (2)</option>
<option value="3">End of Week (3)</option>
<option value="4">End of Three Days (4)</option>
<option value="5">Urgent - Immediately (5)</option>
</select>
</div>
</div>
<center>
<button class="btn btn-primary" type="button" value="Send" ng-click="postdata(description, parameter, conditionValue, controlValue, notificationType)" ng-if="!error">Register Rules</button>
</center>
</form>
</div>
<br><br>
<div class="alert alert-success" ng-if="show" ng-if="!error">
<strong>Success!</strong> You have successfully created the Rule.
</div>
<div class="alert alert-danger" ng-if="showError" ng-if="!error">
<strong>Error!</strong> Error to creating a Rule.
</div>