bosun.org@v0.0.0-20210513094433-e25bc3e69a1f/cmd/bosun/web/static/partials/annotation.html (about)

     1  <div class="row">
     2       <form class="form-horizontal">
     3          <div class="form-group">
     4              <label class="col-sm-2 control-label" ng-click="switch()">StartDate</label>
     5              <div class="col-sm-6">
     6                  <input type="text" class="form-control" ng-model="annotation.StartDate">
     7                  <p class="help-block">Format: YYYY-MM-DDTHH:mm:ssZ (RFC3339). If StartDate and EndDate are blank, the time is set to now. If one of the two is blank, the blank field will be set to the time of the other.</p>
     8              </div>
     9          </div>
    10          <div class="form-group">
    11              <label class="col-sm-2 control-label" ng-click="switch()">EndDate</label>
    12              <div class="col-sm-6">
    13                  <input type="text" class="form-control" ng-model="annotation.EndDate">
    14              </div>
    15          </div>
    16          <div class="form-group">
    17              <label class="col-sm-2 control-label">CreationUser</label>
    18              <div class="col-sm-6">
    19                  <username-input></username-input>
    20              </div>
    21          </div>
    22          <div class="form-group">
    23              <label class="col-sm-2 control-label">Url</label>
    24              <div class="col-sm-6">
    25                  <input type="text" class="form-control" ng-model="annotation.Url">
    26              </div>
    27          </div>
    28          <div class="form-group">
    29              <label class="col-sm-2 control-label">Host</label>
    30              <div class="col-sm-6">
    31                  <input type="text" class="form-control" ng-model="annotation.Host" bs-options="h for h in hosts" bs-typeahead>
    32              </div>
    33          </div>
    34          <div class="form-group">
    35              <label class="col-sm-2 control-label">Owner</label>
    36              <div class="col-sm-6">
    37                  <input type="text" class="form-control" ng-model="annotation.Owner" bs-options="o for o in owners" bs-typeahead>
    38              </div>
    39          </div>
    40              <div class="form-group">
    41              <label class="col-sm-2 control-label">Category</label>
    42              <div class="col-sm-6">
    43                  <input type="text" class="form-control" ng-model="annotation.Category" bs-options="c for c in categories" bs-typeahead>
    44              </div>
    45          </div>
    46          <div class="form-group">
    47              <label class="col-sm-2 control-label">Message</label>
    48              <div class="col-sm-10">
    49                  <textarea class="form-control" ng-model="annotation.Message"></textarea>
    50              </div>
    51          </div>
    52          <div class="form-group">
    53          <button type="button" class="btn btn-primary" ng-click="submitAnnotation()">Save changes</button>
    54          <button type="button" class="btn btn-danger" ng-click="deleteAnnotation()">Delete</button>
    55          </div>
    56      </form>
    57  </div>
    58  <div class="row">
    59  	<div class="col-lg-12">
    60  		<div ng-show="submitSuccess" class="alert alert-success">Annotation Sucessfully Submitted</div>
    61  		<div ng-show="deleteSuccess" class="alert alert-success">Annotation Sucessfully Deleted</div>
    62          <div ng-show="error" class="alert alert-danger" ng-bind="error"></div>
    63  	</div>
    64  </div>