Fixed annotation editor styles (used native Grafana 3.0).
This commit is contained in:
@@ -1,61 +1,65 @@
|
|||||||
<div class="editor-row">
|
<div class="gf-form-group">
|
||||||
<div class="section tight-form-container" style="margin-bottom: 20px">
|
<h6>Filter Triggers</h6>
|
||||||
<h5>Filter Triggers</h5>
|
<div class="gf-form-inline">
|
||||||
<div class="tight-form">
|
<div class="gf-form">
|
||||||
<ul class="tight-form-list">
|
<span class="gf-form-label width-10">Group</span>
|
||||||
<li class="tight-form-item" style="width: 80px">
|
|
||||||
Group
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<input type="text"
|
<input type="text"
|
||||||
ng-model="ctrl.annotation.group"
|
class="gf-form-input max-width-16"
|
||||||
class="input-large tight-form-input">
|
ng-model="ctrl.annotation.group">
|
||||||
</li>
|
</input>
|
||||||
<li class="tight-form-item" style="width: 50px">
|
|
||||||
Host
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<input type="text"
|
|
||||||
ng-model="ctrl.annotation.host"
|
|
||||||
class="input-large tight-form-input last">
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="tight-form">
|
|
||||||
<ul class="tight-form-list">
|
|
||||||
<li class="tight-form-item" style="width: 80px">
|
|
||||||
Application
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<input type="text"
|
|
||||||
ng-model="ctrl.annotation.application"
|
|
||||||
class="input-large tight-form-input">
|
|
||||||
</li>
|
|
||||||
<li class="tight-form-item" style="width: 50px">
|
|
||||||
Trigger
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<input type="text"
|
|
||||||
ng-model="ctrl.annotation.trigger"
|
|
||||||
class="input-large tight-form-input last">
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="editor-row">
|
<div class="gf-form">
|
||||||
<div class="section">
|
<span class="gf-form-label width-10">Host</span>
|
||||||
<h5>Options</h5>
|
<input type="text"
|
||||||
<div class="editor-option">
|
class="gf-form-input max-width-16"
|
||||||
<label class="small">Minimum severity
|
ng-model="ctrl.annotation.host">
|
||||||
</label>
|
</input>
|
||||||
<select class="small" style="width: 113px" ng-init='ctrl.annotation.minseverity = ctrl.annotation.minseverity || 0' ng-model='ctrl.annotation.minseverity' ng-options="v as k for (k, v) in {'Not classified': 0, 'Information': 1, 'Warning': 2, 'Average': 3, 'High': 4, 'Disaster': 5}" ng-change="render()"></select>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="gf-form-inline">
|
||||||
|
<div class="gf-form">
|
||||||
|
<span class="gf-form-label width-10">Application</span>
|
||||||
|
<input type="text"
|
||||||
|
class="gf-form-input max-width-16"
|
||||||
|
ng-model="ctrl.annotation.application">
|
||||||
|
</input>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="gf-form">
|
||||||
|
<span class="gf-form-label width-10">Trigger</span>
|
||||||
|
<input type="text"
|
||||||
|
class="gf-form-input max-width-16"
|
||||||
|
ng-model="ctrl.annotation.trigger">
|
||||||
|
</input>
|
||||||
</div>
|
</div>
|
||||||
<editor-opt-bool text="Show OK events" model="ctrl.annotation.showOkEvents"></editor-opt-bool>
|
</div>
|
||||||
<editor-opt-bool text="Hide acknowledged events" model="ctrl.annotation.hideAcknowledged"></editor-opt-bool>
|
</div>
|
||||||
<editor-opt-bool text="Show hostname" model="ctrl.annotation.showHostname"></editor-opt-bool>
|
<div class="gf-form-group">
|
||||||
|
<div class="gf-form">
|
||||||
|
<span class="gf-form-label width-10">Minimum severity</span>
|
||||||
|
<div class="gf-form-select-wrapper">
|
||||||
|
<select class="gf-form-input gf-size-auto"
|
||||||
|
ng-init='ctrl.annotation.minseverity = ctrl.annotation.minseverity || 0'
|
||||||
|
ng-model='ctrl.annotation.minseverity'
|
||||||
|
ng-options="v as k for (k, v) in {
|
||||||
|
'Not classified': 0,
|
||||||
|
'Information': 1,
|
||||||
|
'Warning': 2,
|
||||||
|
'Average': 3,
|
||||||
|
'High': 4,
|
||||||
|
'Disaster': 5
|
||||||
|
}"
|
||||||
|
ng-change="render()">
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="gf-form-group">
|
||||||
|
<h6>Options</h6>
|
||||||
|
<div class="gf-form">
|
||||||
|
<editor-checkbox text="Show OK events" model="ctrl.annotation.showOkEvents"></editor-checkbox>
|
||||||
|
<editor-checkbox text="Hide acknowledged events" model="ctrl.annotation.hideAcknowledged"></editor-checkbox>
|
||||||
|
<editor-checkbox text="Show hostname" model="ctrl.annotation.showHostname"></editor-checkbox>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user