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 124
|
<form role="form">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
ng-click="cancel()">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<h4 class="modal-title" id="nagiosTrendsLabel">
Nagios Histogram
</h4>
</div>
<div class="modal-body">
<tabset>
<tab heading="Standard">
<div class="form-group">
<label>Report Type</label>
<select class="form-control"
ng-model="params.reporttype">
<option value="">
-- Select Report Type --
</option>
<option value="hosts">Host</option>
<option value="services">Service</option>
</select>
</div>
<div class="form-group" ng-show="showHost()">
<label>Host</label>
<select name="host" class="form-control"
ng-model="params.host"
ng-options="host for host in hostlist track by host">
<option value="">-- Select Host --</option>
</select>
</div>
<div class="form-group" ng-show="showService()">
<label>Service</label>
<select name="service" class="form-control"
ng-model="params.service"
ng-options="service for service in servicelist track by service">
<option value="">
{{params.host == "" ? "-- Select Host First --" : "-- Select Service --"}}
</option>
</select>
</div>
<div class="form-group" ng-show="showTimeperiod()">
<label>Report Period</label>
<select name="timeperiod" class="form-control"
ng-model="params.timeperiod"
ng-options="tp.value as tp.label for tp in timeperiodlist">
<option value="">-- Select Timeperiod --</option>
</select>
</div>
<div class="form-group" ng-show="showDates()">
<label>Start Date (inclusive)</label>
<input type="date" class="form-control"
ng-model="params.startDate">
</div>
<div class="form-group" ng-show="showDates()">
<label>End Date (inclusive)</label>
<input type="date" class="form-control"
ng-model="params.endDate">
</div>
</tab>
<tab heading="Advanced">
<div class="form-group">
<label>Statistics Breakdown</label>
<select name="breakdown" class="form-control"
ng-model="params.breakdown"
ng-options="bd.value as bd.label for bd in statisticsBreakdown">
<option value="">
-- Select Statistics Breakdown --
</option>
</select>
</div>
<div class="form-group">
<label>Events To Graph</label>
<select name="graphevents" class="form-control"
ng-model="params.events"
ng-options="evt.value as evt.label for evt in eventslist">
<option value="">-- Select Graph Events --</option>
</select>
</div>
<div class="form-group">
<label>State Types To Graph</label>
<select name="graphstatetypes" class="form-control"
ng-model="params.graphstatetypes">
<option value="">-- Select State Types --</option>
<option value="2">Hard states</option>
<option value="1">Soft states</option>
<option value="3" selected>
Hard and soft states
</option>
</select>
</div>
<div class="checkbox">
<label>
<input type="checkbox"
ng-model="params.assumestateretention">
Assume State Retention
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox"
ng-model="params.initialstateslogged">
Initial State Logged
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox"
ng-model="params.ignorerepeatedstates">
Ignore Repeated States
</label>
</div>
</tab>
</tabset>
</div>
<div class="modal-footer">
<button id="submit" type="submit" class="btn btn-default"
ng-disabled="disableApply()" ng-click="apply()">
Apply
</button>
</div>
</form>
|