notifications_configs.hbs 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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="accordion-heading" {{action "onToggleBlock" category target="view"}}>
  19. <i {{bindAttr class=":pull-left :accordion-toggle view.category.isCollapsed:icon-caret-right:icon-caret-down"}}></i>
  20. <a class="accordion-toggle">{{view.category.displayName}}</a>
  21. </div>
  22. <div class="accordion-body collapse in" {{bindAttr style="view.isCategoryBodyVisible"}}>
  23. <div class="accordion-inner service-config-section">
  24. <form class="form-horizontal" autocomplete="off">
  25. <div class="entry-row">
  26. {{view Ember.RadioButton name="createNotification" selectionBinding="view.createNotification" value="no"}} {{t installer.step7.misc.notification.configure.later}}
  27. </div>
  28. <div class="entry-row">
  29. {{view Ember.RadioButton name="createNotification" selectionBinding="view.createNotification" value="yes"}} {{t installer.step7.misc.notification.configure}}
  30. </div>
  31. {{#each view.categoryConfigs}}
  32. <div {{bindAttr class=":entry-row rowStyleClass isUserProperty:indent-1"}}>
  33. <span {{bindAttr class="errorMessage:error: :control-group :control-label-span"}}>
  34. <label class="control-label">
  35. {{formatWordBreak displayName}}
  36. </label>
  37. </span>
  38. <div {{bindAttr class="showLabel:controls"}}>
  39. <div {{bindAttr class="errorMessage:error: warnMessage:warning: :control-group"}}>
  40. {{view viewClass serviceConfigBinding="this" categoryConfigsAllBinding="view.categoryConfigsAll" }}
  41. {{#if isRemovable}}
  42. {{#isAccessible ADMIN}}
  43. {{#unless this.isComparison}}
  44. <a class="btn-small" href="#" data-toggle="tooltip"
  45. {{action "removeProperty" this target="view"}}
  46. {{translateAttr data-original-title="common.remove"}}>
  47. <i class="icon-minus-sign"></i>
  48. </a>
  49. {{/unless}}
  50. {{/isAccessible}}
  51. {{/if}}
  52. <span class="help-inline">{{errorMessage}}</span>
  53. <span class="help-inline">{{warnMessage}}</span>
  54. </div>
  55. </div>
  56. </div>
  57. {{/each}}
  58. <div class="entry-row indent-1">
  59. {{view Ember.RadioButton name="tlsOrSsl" disabledBinding="view.configsAreDisabled" selectionBinding="view.tlsOrSsl" value="tls"}} {{t installer.step7.misc.notification.use_tls}}
  60. </div>
  61. <div class="entry-row indent-1">
  62. {{view Ember.RadioButton name="tlsOrSsl" disabledBinding="view.configsAreDisabled" selectionBinding="view.tlsOrSsl" value="ssl"}} {{t installer.step7.misc.notification.use_ssl}}
  63. </div>
  64. {{#isAccessible ADMIN}}
  65. {{#if view.canEdit}}
  66. {{#unless view.configsAreDisabled}}
  67. <div class="entry-row indent-1">
  68. <a href="#" {{action "showAddPropertyWindow" this target="view" }} >{{t installer.step7.config.addProperty}}...</a>
  69. </div>
  70. {{/unless}}
  71. {{/if}}
  72. {{/isAccessible}}
  73. </form>
  74. </div>
  75. </div>