notification_edit.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <navbar icon="fa fa-fw fa-list" title="Alerting" title-url="alerting">
  2. </navbar>
  3. <div class="page-container" >
  4. <div class="page-header">
  5. <h1>Alert notification</h1>
  6. </div>
  7. <div class="gf-form-group section">
  8. <div class="gf-form">
  9. <span class="gf-form-label width-8">Name</span>
  10. <input type="text" class="gf-form-input max-width-12" ng-model="ctrl.notification.name"></input>
  11. </div>
  12. <div class="gf-form">
  13. <span class="gf-form-label width-8">Type</span>
  14. <div class="gf-form-select-wrapper width-12">
  15. <select class="gf-form-input"
  16. ng-model="ctrl.notification.type"
  17. ng-options="t for t in ['webhook', 'email']"
  18. ng-change="ctrl.typeChanged(notification, $index)">
  19. </select>
  20. </div>
  21. </div>
  22. <div class="gf-form">
  23. <gf-form-switch class="gf-form" label-class="width-8" label="Always execute" checked="ctrl.notification.alwaysExecute" on-change=""></gf-form-switch>
  24. </div>
  25. <div class="gf-form">
  26. <gf-form-switch class="gf-form" label-class="width-8" label="Send Warning" checked="ctrl.notification.settings.sendWarn" on-change=""></gf-form-switch>
  27. </div>
  28. <div class="gf-form">
  29. <gf-form-switch class="gf-form" label-class="width-8" label="Send Critical" checked="ctrl.notification.settings.sendCrit" on-change=""></gf-form-switch>
  30. </div>
  31. </div>
  32. <div class="gf-form-group section" ng-show="ctrl.notification.type === 'webhook'">
  33. <div class="gf-form">
  34. <span class="gf-form-label width-6">Url</span>
  35. <input type="text" class="gf-form-input max-width-26" ng-model="ctrl.notification.settings.url"></input>
  36. </div>
  37. <div class="gf-form-inline">
  38. <div class="gf-form">
  39. <span class="gf-form-label width-6">Username</span>
  40. <input type="text" class="gf-form-input max-width-10" ng-model="ctrl.notification.settings.username"></input>
  41. </div>
  42. <div class="gf-form">
  43. <span class="gf-form-label width-6">Password</span>
  44. <input type="text" class="gf-form-input max-width-10" ng-model="ctrl.notification.settings.password"></input>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="gf-form-group section" ng-show="ctrl.notification.type === 'email'">
  49. <div class="gf-form">
  50. <span class="gf-form-label width-8">To</span>
  51. <input type="text" class="gf-form-input max-width-26" ng-model="ctrl.notification.settings.to">
  52. </div>
  53. </div>
  54. <div class="gf-form-button-group">
  55. <button ng-click="ctrl.save()" class="btn btn-success">Save</button>
  56. </div>
  57. </div>