notifications_configs.hbs 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. <span class="help-inline">{{errorMessage}}</span>
  42. <span class="help-inline">{{warnMessage}}</span>
  43. </div>
  44. </div>
  45. </div>
  46. {{/each}}
  47. <div class="entry-row indent-1">
  48. {{view Ember.RadioButton name="tlsOrSsl" disabledBinding="view.configsAreDisabled" selectionBinding="view.tlsOrSsl" value="tls"}} {{t installer.step7.misc.notification.use_tls}}
  49. </div>
  50. <div class="entry-row indent-1">
  51. {{view Ember.RadioButton name="tlsOrSsl" disabledBinding="view.configsAreDisabled" selectionBinding="view.tlsOrSsl" value="ssl"}} {{t installer.step7.misc.notification.use_ssl}}
  52. </div>
  53. {{#isAccessible ADMIN}}
  54. {{#if view.canEdit}}
  55. {{#unless view.configsAreDisabled}}
  56. <div class="entry-row indent-1">
  57. <a href="#" {{action "showAddPropertyWindow" this target="view" }} >{{t installer.step7.config.addProperty}}...</a>
  58. </div>
  59. {{/unless}}
  60. {{/if}}
  61. {{/isAccessible}}
  62. </form>
  63. </div>
  64. </div>