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 125 126 127 128 129 130 131 132 133 134
|
<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 Trends
</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="checkbox">
<label>
<input type="checkbox"
ng-model="params.assumeinitialstates">
Assume Initial States
</label>
</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.assumestatesduringnotrunning">
Assume States During Program Downtime
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox"
ng-model="params.includesoftstates">
Include Soft States
</label>
</div>
<div class="form-group">
<label>
First Assumed State
</label>
<select class="form-control"
ng-model="params.initialassumedstate"
ng-options="st.value as st.label for st in initialAssumedStates[params.reporttype]">
<option value="">
{{params.reporttype == "" ? "-- Select Report Type First --" : "-- Select First Assumed State --"}}
</option>
</select>
</div>
<div class="form-group">
<label for="backtrack">
Backtracked Archives (To Scan for Initial
States)
</label>
<input type="number" class="form-control"
ng-model="params.backtrack"
placeholder="Number of backtracked archives">
</div>
<div class="checkbox">
<label>
<input type="checkbox" ng-model="params.nomap">
Suppress Image Map
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" ng-model="params.nopopups">
Suppress Popups
</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>
|