-
Notifications
You must be signed in to change notification settings - Fork 0
/
pushInternalRequestModal.html
59 lines (52 loc) · 2.51 KB
/
pushInternalRequestModal.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
<div class="modal-header {{attr.modalHeaderClass}}">
<button type="button" class="close modal-close" aria-label="Close" ng-click="cancelPushFeatureRequest()">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Push Internal Request (Feature Request)</h4>
</div>
<form name="internalRequestForms.push" ng-submit="pushFeatureRequest()" novalidate>
<alerts seconds="60" channels="internal/request/push,products" types="WARNING,ERROR" exclusive></alerts>
<validationmessage results="internalRequestForms.getResults()"></validationmessage>
<div class="modal-body">
<validatedinput
id="featureRequestTitle"
model="featureRequestToPush"
property="title"
placeholder="Title of the Feature Request"
label="Title"
disabled="'true'"
form="internalRequest.push"
validations="internalRequestForms.validations"
results="internalRequestForms.getResults()"
autocomplete="off">
</validatedinput>
<validatedinput
id="featureRequestDescription"
model="featureRequestToPush"
property="description"
placeholder="Description of the Feature Request"
label="Description"
disabled="'true'"
form="internalRequest.push"
validations="internalRequestForms.validations"
results="internalRequestForms.getResults()"e
autocomplete="off">
</validatedinput>
<div class="form-group">
<label for="productId">Associate Product</label>
<select name="productId" class="form-control" ng-model="featureRequestToPush.productId" ng-options="product.id as product.name for product in products | orderBy:'name'" ng-change="selectRemoteProducts()" ng-disabled="remoteProductsLoading">
<option value="" selected>None</option>
</select>
</div>
<div class="form-group" ng-if="featureRequestToPush.productId">
<label for="scopeId">Associate Remote Product</label>
<select name="scopeId" class="form-control" ng-model="featureRequestToPush.scopeId" ng-options="remoteProduct.id as remoteProduct.name for remoteProduct in remoteProducts" ng-disabled="remoteProductsLoading">
<option value="" selected>None</option>
</select>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" ng-click="cancelPushFeatureRequest()">Cancel</button>
<button type="submit" class="btn btn-success" ng-disabled="!internalRequestForms.push.$dirty || internalRequestForms.push.$invalid || !featureRequestToPush.scopeId">Push</button>
</div>
</form>