mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
39 lines
1.6 KiB
HTML
39 lines
1.6 KiB
HTML
|
|
<h5 class="section-heading text-center">Add annotation</h5>
|
|
|
|
<form name="ctrl.form" class="text-center">
|
|
<div style="display: inline-block">
|
|
<div class="gf-form">
|
|
<span class="gf-form-label width-7">Title</span>
|
|
<input type="text" ng-model="ctrl.annotation.title" class="gf-form-input max-width-20" required>
|
|
</div>
|
|
<!-- single event -->
|
|
<div ng-if="!ctrl.annotation.isRegion">
|
|
<div class="gf-form">
|
|
<span class="gf-form-label width-7">Time</span>
|
|
<input type="text" ng-model="ctrl.annotation.time" class="gf-form-input max-width-20" input-datetime required>
|
|
</div>
|
|
</div>
|
|
<!-- region event -->
|
|
<div ng-if="ctrl.annotation.isRegion">
|
|
<div class="gf-form">
|
|
<span class="gf-form-label width-7">Start</span>
|
|
<input type="text" ng-model="ctrl.annotation.time" class="gf-form-input max-width-20" input-datetime required>
|
|
</div>
|
|
<div class="gf-form">
|
|
<span class="gf-form-label width-7">End</span>
|
|
<input type="text" ng-model="ctrl.annotation.timeEnd" class="gf-form-input max-width-20" input-datetime required>
|
|
</div>
|
|
</div>
|
|
<div class="gf-form gf-form--v-stretch">
|
|
<span class="gf-form-label width-7">Description</span>
|
|
<textarea class="gf-form-input width-20" rows="3" ng-model="ctrl.annotation.text" placeholder="Event description"></textarea>
|
|
</div>
|
|
|
|
<div class="gf-form-button-row">
|
|
<button type="submit" class="btn gf-form-btn btn-success" ng-click="ctrl.save()">Save</button>
|
|
<a class="btn-text" ng-click="ctrl.close();">Cancel</a>
|
|
</div>
|
|
</div>
|
|
</form>
|