Fixed annotations.

This commit is contained in:
Alexander Zobnin
2016-03-19 15:09:13 +03:00
parent e74824f840
commit af59f87246
3 changed files with 28 additions and 24 deletions

View File

@@ -8,7 +8,7 @@
</li>
<li>
<input type="text"
ng-model="annotation.group"
ng-model="ctrl.annotation.group"
class="input-large tight-form-input">
</li>
<li class="tight-form-item" style="width: 50px">
@@ -16,7 +16,7 @@
</li>
<li>
<input type="text"
ng-model="annotation.host"
ng-model="ctrl.annotation.host"
class="input-large tight-form-input last">
</li>
</ul>
@@ -29,7 +29,7 @@
</li>
<li>
<input type="text"
ng-model="annotation.application"
ng-model="ctrl.annotation.application"
class="input-large tight-form-input">
</li>
<li class="tight-form-item" style="width: 50px">
@@ -37,7 +37,7 @@
</li>
<li>
<input type="text"
ng-model="annotation.trigger"
ng-model="ctrl.annotation.trigger"
class="input-large tight-form-input last">
</li>
</ul>
@@ -52,10 +52,10 @@
<div class="editor-option">
<label class="small">Minimum severity
</label>
<select class="small" style="width: 113px" ng-init='annotation.minseverity = annotation.minseverity || 0' ng-model='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>
<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>
<editor-opt-bool text="Show OK events" model="annotation.showOkEvents"></editor-opt-bool>
<editor-opt-bool text="Hide acknowledged events" model="annotation.hideAcknowledged"></editor-opt-bool>
<editor-opt-bool text="Show hostname" model="annotation.showHostname"></editor-opt-bool>
<editor-opt-bool text="Show OK events" model="ctrl.annotation.showOkEvents"></editor-opt-bool>
<editor-opt-bool text="Hide acknowledged events" model="ctrl.annotation.hideAcknowledged"></editor-opt-bool>
<editor-opt-bool text="Show hostname" model="ctrl.annotation.showHostname"></editor-opt-bool>
</div>
</div>