This repository has been archived by the owner on Aug 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 251
/
customWidgetModal.html
56 lines (55 loc) · 3.38 KB
/
customWidgetModal.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
<div class="modal-header">
<!-- <button type="button" class="close" data-dismiss="modal">×</button>-->
<h4 class="modal-title">Add Custom Widget</h4>
</div>
<div class="modal-body">
<!-- Add ng-model, ng-show, ng-disabled, ng-class, ng-change and delay accordingly -->
<form role="form" name="form">
<!--
<div class="input-group input-group-lg target">
<span class="input-group-addon">Name</span>
<input type="text" class="form-control" id="widgetNameInput" name="widgetTitle" data-content="Please enter the name of the custom widget." rel="popover" data-placement="bottom" ng-model="customWidgetOptions.title" required>
</div>
-->
<div class="input-group input-group-lg target">
<span class="input-group-addon">Select Metric</span>
<!-- ng-repeat to be added to generate metric list and typeahead to be included -->
<!-- <select class="form-control" name="metricName" ng-options="metricMetadata.name for metricMetadata in metricsMetadata track by metricMetadata.name" ng-model="selected" required></select>-->
<input type="text" name="metricName" class="form-control" uib-typeahead="metricMetadata as metricMetadata.name for metricMetadata in metricsMetadata | filter:{name:$viewValue} | limitTo:8" autocomplete="off" ng-model="selected" required>
</div>
<div class="input-group input-group-lg target"><h4>{{ selected['text-oneline'] }}</h4></div>
<div class="input-group input-group-lg target">
<span class="input-group-addon">Type</span>
<select id="metricList" ng-model="widgetOptions.dataModelType" class="form-control" required>
<option value="MetricDataModel">MetricDataModel</option>
<option value="CumulativeMetricDataModel">CumulativeMetricDataModel</option>
<!-- <option value="MultipleMetricDataModel">MultipleMetricDataModel</option>-->
<!-- <option value="MultipleCumulativeMetricDataModel">MultipleCumulativeMetricDataModel</option>-->
</select>
</div>
<!--
<div class="input-group input-group-lg target">
<div class="checkbox checkbox-primary">
<input name="dataModelType" type="checkbox">
<label for="dataModelType">
CumulativeMetricDataModel
</label>
</div>
</div>
-->
<!--
<div class="input-group input-group-lg target">
<span class="input-group-addon">Group</span>
<input type="text" class="form-control" id="widgetNameInput" name="groupName" data-content="Please enter the name of the group." rel="popover" data-placement="bottom" ng-model="widgetOptions.group" value="Custom" required>
</div>
-->
<div class="input-group input-group-lg">
<button type="button" class="btn btn-lg btn-default">Advanced Options <i class="fa fa-plus-square-o"></i></button>
<button type="button" class="btn btn-lg btn-default">UI Options <i class="fa fa-plus-square-o"></i></button>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-lg btn-default" data-ng-click="modalOptions.close()">Cancel</button>
<button type="button" class="btn btn-lg btn-default btn-primary" ng-disabled="form.$invalid" ng-class="{ 'disabled': form.$invalid }" delay="2000" data-ng-click="modalOptions.ok();">Add</button>
</div>