notification_edit.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <navbar model="ctrl.navModel"></navbar>
  2. <div class="page-container">
  3. <div class="page-header">
  4. <page-h1 model="ctrl.navModel"></page-h1>
  5. </div>
  6. <form name="ctrl.theForm" ng-if="ctrl.notifiers">
  7. <div class="gf-form-group">
  8. <div class="gf-form">
  9. <span class="gf-form-label width-12">Name</span>
  10. <input type="text" required class="gf-form-input max-width-15" ng-model="ctrl.model.name" required></input>
  11. </div>
  12. <div class="gf-form">
  13. <span class="gf-form-label width-12">Type</span>
  14. <div class="gf-form-select-wrapper width-15">
  15. <select class="gf-form-input" ng-model="ctrl.model.type" ng-options="t.type as t.name for t in ctrl.notifiers" ng-change="ctrl.typeChanged(notification, $index)">
  16. </select>
  17. </div>
  18. </div>
  19. <gf-form-switch
  20. class="gf-form"
  21. label="Send on all alerts"
  22. label-class="width-12"
  23. checked="ctrl.model.isDefault"
  24. tooltip="Use this notification for all alerts">
  25. </gf-form-switch>
  26. <gf-form-switch
  27. class="gf-form"
  28. label="Include image"
  29. label-class="width-12"
  30. checked="ctrl.model.settings.uploadImage"
  31. tooltip="Captures an image and include it in the notification">
  32. </gf-form-switch>
  33. </div>
  34. <div class="gf-form-group" ng-include src="ctrl.notifierTemplateId">
  35. </div>
  36. <div class="gf-form-group">
  37. <div class="gf-form-inline">
  38. <div class="gf-form width-8">
  39. <button type="submit" ng-click="ctrl.save()" class="btn btn-success width-7">Save</button>
  40. </div>
  41. <div class="gf-form width-8">
  42. <button type="submit" ng-click="ctrl.testNotification()" class="btn btn-secondary width-7">Send Test</button>
  43. </div>
  44. </div>
  45. </div>
  46. </form>
  47. </div>