event_editor.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <div class="graph-annotation">
  2. <div class="graph-annotation__header">
  3. <div class="graph-annotation__user" bs-tooltip="'Created by {{ctrl.login}}'">
  4. </div>
  5. <div class="graph-annotation__title">
  6. <span ng-if="!ctrl.event.id">Add annotation</span>
  7. <span ng-if="ctrl.event.id">Edit annotation</span>
  8. </div>
  9. <div class="graph-annotation__time">{{ctrl.timeFormated}}</div>
  10. </div>
  11. <form name="ctrl.form" class="graph-annotation__body text-center">
  12. <div style="display: inline-block">
  13. <div class="gf-form gf-form--v-stretch">
  14. <span class="gf-form-label width-7">Description</span>
  15. <textarea class="gf-form-input width-20" rows="2" ng-model="ctrl.event.text" placeholder="Description"></textarea>
  16. </div>
  17. <div class="gf-form">
  18. <span class="gf-form-label width-7">Tags</span>
  19. <bootstrap-tagsinput ng-model="ctrl.event.tags" tagclass="label label-tag" placeholder="add tags">
  20. </bootstrap-tagsinput>
  21. </div>
  22. <div class="gf-form-button-row">
  23. <button type="submit" class="btn btn-primary" ng-click="ctrl.save()">Save</button>
  24. <button ng-if="ctrl.event.id && ctrl.canDelete()" type="submit" class="btn btn-danger" ng-click="ctrl.delete()">Delete</button>
  25. <a class="btn-text" ng-click="ctrl.close();">Cancel</a>
  26. </div>
  27. </div>
  28. </form>
  29. </div>