manage_alert_notifications_popup.hbs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. {{#if controller.isLoaded}}
  19. <div class="row-fluid manage-configuration-group-content">
  20. <div class="span12">
  21. <div class="row-fluid">
  22. <div class="span4">
  23. <span>&nbsp;</span>
  24. {{view Em.Select
  25. contentBinding="alertNotifications"
  26. optionLabelPath="content.name"
  27. multiple="multiple"
  28. class="group-select"
  29. selectionBinding="view.selectedAlertNotification"
  30. }}
  31. <div class="btn-toolbar pull-right">
  32. <button rel="button-info" class="btn"
  33. {{translateAttr data-original-title="alerts.actions.manage_alert_notifications_popup.addButton"}}
  34. {{action addAlertNotification target="controller"}}><i class="icon-plus"></i></button>
  35. <button rel="button-info" class="btn"
  36. {{translateAttr data-original-title="alerts.actions.manage_alert_notifications_popup.removeButton"}}
  37. {{bindAttr disabled="view.isRemoveButtonDisabled"}}
  38. {{action deleteAlertNotification target="controller"}}><i class="icon-minus"></i></button>
  39. <div class="btn-group">
  40. <button class="btn dropdown-toggle" data-toggle="dropdown">
  41. <i class="icon-cog"></i>&nbsp;<span class="caret"></span>
  42. </button>
  43. <ul class="dropdown-menu">
  44. <li {{bindAttr class="view.isEditButtonDisabled:disabled"}}>
  45. <a href="" rel="button-info-dropdown"
  46. {{translateAttr data-original-title="alerts.actions.manage_alert_notifications_popup.editButton"}}
  47. {{action editAlertNotification target="controller"}}>{{t common.edit}}</a>
  48. </li>
  49. <li {{bindAttr class="view.isDuplicateButtonDisabled:disabled"}}>
  50. <a href="" rel="button-info-dropdown"
  51. {{translateAttr data-original-title="alerts.actions.manage_alert_notifications_popup.duplicateButton"}}
  52. {{action duplicateAlertNotification target="controller"}}>{{t common.duplicate}}</a>
  53. </li>
  54. </ul>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="span8">
  59. <span>&nbsp;</span>
  60. <div class="row-fluid">
  61. <div class="span12 pull-right">
  62. {{#if selectedAlertNotification}}
  63. <div class="row-fluid">
  64. <div class="span3">{{t common.name}}</div>
  65. <div class="span9">{{selectedAlertNotification.name}}</div>
  66. </div>
  67. <div class="row-fluid">
  68. <div class="span3">{{t common.groups}}</div>
  69. <div class="span9">{{view.selectedAlertNotificationGroups}}</div>
  70. </div>
  71. <div class="row-fluid">
  72. <div class="span3">{{t alerts.actions.manage_alert_notifications_popup.method}}</div>
  73. <div class="span9">{{selectedAlertNotification.type}}</div>
  74. </div>
  75. {{#if view.showEmailDetails}}
  76. <div class="row-fluid">
  77. <div class="span3">{{t alerts.actions.manage_alert_notifications_popup.email}}</div>
  78. <div class="span9">{{selectedAlertNotification.properties.email}}</div>
  79. </div>
  80. {{/if}}
  81. {{#if view.showSNMPDetails}}
  82. {{/if}}
  83. <div class="row-fluid">
  84. <div class="span3">{{t common.description}}</div>
  85. <div class="span9">{{selectedAlertNotification.description}}</div>
  86. </div>
  87. {{/if}}
  88. </div>
  89. </div>
  90. </div>
  91. <div class="clearfix"></div>
  92. <div class="row-fluid">
  93. <div class="span12 text-error" id="manage-alert-notifications-error">
  94. {{#if controller.errorMessage}}
  95. {{controller.errorMessage}}
  96. {{else}}
  97. &nbsp;
  98. {{/if}}
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. {{else}}
  105. <div class="spinner"></div>
  106. {{/if}}