notification_edit.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <navbar icon="icon-gf icon-gf-alert" title="Alerting" title-url="alerting">
  2. <a href="alerting/notifications" class="navbar-page-btn">
  3. <i class="fa fa-fw fa-rss"></i>
  4. Notification channels
  5. </a>
  6. </navbar>
  7. <div class="page-container">
  8. <div class="page-header">
  9. <h1 ng-show="ctrl.model.id">Edit Channel</h1>
  10. <h1 ng-show="!ctrl.model.id">New Channel</h1>
  11. </div>
  12. <form name="ctrl.theForm" ng-if="ctrl.notifiers">
  13. <div class="gf-form-group">
  14. <div class="gf-form">
  15. <span class="gf-form-label width-12">Name</span>
  16. <input type="text" required class="gf-form-input max-width-15" ng-model="ctrl.model.name" required></input>
  17. </div>
  18. <div class="gf-form">
  19. <span class="gf-form-label width-12">Type</span>
  20. <div class="gf-form-select-wrapper width-15">
  21. <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)">
  22. </select>
  23. </div>
  24. </div>
  25. <div class="gf-form">
  26. <gf-form-switch
  27. class="gf-form"
  28. label="Send on all alerts"
  29. label-class="width-12"
  30. checked="ctrl.model.isDefault"
  31. tooltip="Use this notification for all alerts">
  32. </gf-form-switch>
  33. </div>
  34. </div>
  35. <div class="gf-form-group" ng-include src="ctrl.notifierTemplateId">
  36. </div>
  37. <div class="gf-form-group">
  38. <div class="gf-form-inline">
  39. <div class="gf-form width-6">
  40. <button type="submit" ng-click="ctrl.save()" class="btn btn-success">Save</button>
  41. </div>
  42. <div class="gf-form width-20">
  43. <div class="gf-form">
  44. <button type="submit" ng-click="ctrl.testNotification()" class="btn btn-secondary">Send Test</button>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. </form>
  50. </div>