manage_alert_notifications_popup.hbs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {{!
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. }}
  18. <div class="alert alert-info margin-bottom-5">{{t alerts.actions.manageNotifications.info}}</div>
  19. {{#if controller.isLoaded}}
  20. <div class="row-fluid manage-configuration-group-content" id="manage-alert-notification-content">
  21. <div class="span12">
  22. <div class="row-fluid">
  23. <div class="span4 notification-list">
  24. <span>&nbsp;</span>
  25. {{view Em.Select
  26. contentBinding="alertNotifications"
  27. optionLabelPath="content.name"
  28. multiple="multiple"
  29. class="group-select"
  30. selectionBinding="view.selectedAlertNotification"
  31. }}
  32. <div class="btn-toolbar pull-right">
  33. <button rel="button-info" class="btn"
  34. {{translateAttr data-original-title="alerts.actions.manage_alert_notifications_popup.addButton"}}
  35. {{action addAlertNotification target="controller"}}><i class="icon-plus"></i></button>
  36. <button rel="button-info" class="btn"
  37. {{translateAttr data-original-title="alerts.actions.manage_alert_notifications_popup.removeButton"}}
  38. {{bindAttr disabled="view.isRemoveButtonDisabled"}}
  39. {{action deleteAlertNotification target="controller"}}><i class="icon-minus"></i></button>
  40. <div class="btn-group">
  41. <button class="btn dropdown-toggle" data-toggle="dropdown">
  42. <i class="icon-cog"></i>&nbsp;<span class="caret"></span>
  43. </button>
  44. <ul class="dropdown-menu">
  45. <li {{bindAttr class="view.isEditButtonDisabled:disabled"}}>
  46. <a href="" rel="button-info-dropdown"
  47. {{translateAttr data-original-title="alerts.actions.manage_alert_notifications_popup.editButton"}}
  48. {{action editAlertNotification target="controller"}}>{{t common.edit}}</a>
  49. </li>
  50. <li {{bindAttr class="view.isDuplicateButtonDisabled:disabled"}}>
  51. <a href="" rel="button-info-dropdown"
  52. {{translateAttr data-original-title="alerts.actions.manage_alert_notifications_popup.duplicateButton"}}
  53. {{action duplicateAlertNotification target="controller"}}>{{t common.duplicate}}</a>
  54. </li>
  55. </ul>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="span8 notification-info">
  60. <span>&nbsp;</span>
  61. <div class="row-fluid">
  62. <div class="span12 pull-right">
  63. {{#if selectedAlertNotification}}
  64. <div class="row-fluid">
  65. <div class="span3">{{t common.name}}</div>
  66. <div class="span9">{{selectedAlertNotification.name}}</div>
  67. </div>
  68. <div class="row-fluid">
  69. <div class="span3">{{t common.groups}}</div>
  70. <div class="span9">{{view.selectedAlertNotificationGroups}}</div>
  71. </div>
  72. <div class="row-fluid global-info">
  73. <div class="span3">{{t alerts.actions.manage_alert_notifications_popup.global}}</div>
  74. <div class="span9">{{view Em.Checkbox checkedBinding="selectedAlertNotification.global" disabled="disabled" class="global-checkbox"}}</div>
  75. </div>
  76. <div class="row-fluid">
  77. <div class="span3">{{t alerts.actions.manage_alert_notifications_popup.method}}</div>
  78. <div class="span9">{{selectedAlertNotification.type}}</div>
  79. </div>
  80. {{#if view.showEmailDetails}}
  81. <div class="row-fluid">
  82. <div class="span3">{{t alerts.actions.manage_alert_notifications_popup.email}}</div>
  83. <div class="span9">{{selectedAlertNotification.properties.email}}</div>
  84. </div>
  85. {{/if}}
  86. {{#if view.showSNMPDetails}}
  87. {{/if}}
  88. <div class="row-fluid">
  89. <div class="span3">{{t common.description}}</div>
  90. <div class="span9">{{selectedAlertNotification.description}}</div>
  91. </div>
  92. {{/if}}
  93. </div>
  94. </div>
  95. </div>
  96. <div class="clearfix"></div>
  97. <div class="row-fluid">
  98. <div class="span12 text-error" id="manage-alert-notifications-error">
  99. {{#if controller.errorMessage}}
  100. {{controller.errorMessage}}
  101. {{else}}
  102. &nbsp;
  103. {{/if}}
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. {{else}}
  110. <div class="spinner"></div>
  111. {{/if}}