step7.hbs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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 id="serviceConfig">
  19. <h2>{{t installer.step7.header}}</h2>
  20. <div class="alert alert-info">
  21. {{t installer.step7.body}}
  22. </div>
  23. <ul class="nav nav-tabs">
  24. {{#each service in controller.stepConfigs}}
  25. {{#view App.WizardStep7.ServiceConfigTab}}
  26. <a class="active" href="#{{unbound service.serviceName}}"
  27. data-toggle="tab" {{action selectService service target="view"}}>
  28. {{service.displayName}}{{#if service.errorCount}}<span
  29. class="badge badge-important">{{service.errorCount}}</span>{{/if}}</a>
  30. {{/view}}
  31. {{/each}}
  32. </ul>
  33. <div class="accordion">
  34. {{#each category in selectedService.configCategories}}
  35. <div class="accordion-group {{unbound category.name}}">
  36. <div class="accordion-heading" {{action "onToggleBlock" category target="view"}}>
  37. {{#if category.isCollapsed}}
  38. <i class='icon-caret-left pull-right accordion-toggle'></i>
  39. {{else}}
  40. <i class='icon-caret-down pull-right accordion-toggle'></i>
  41. {{/if}}
  42. <a class="accordion-toggle">
  43. {{category.name}}
  44. </a>
  45. </div>
  46. {{#unless category.isForSlaveComponent}}
  47. {{#view App.WizardStep7.ServiceConfigsByCategoryView categoryBinding="category" serviceConfigsBinding="selectedService.configs"}}
  48. <form class="form-horizontal">
  49. {{#each view.categoryConfigs}}
  50. {{#if isVisible}}
  51. <div {{bindAttr class="errorMessage:error: :control-group"}}>
  52. <label class="control-label">{{displayName}}</label>
  53. <div class="controls">
  54. {{view viewClass serviceConfigBinding="this" categoryConfigsBinding="view.categoryConfigs"}}
  55. <span class="help-inline">{{errorMessage}}</span>
  56. </div>
  57. </div>
  58. {{/if}}
  59. {{/each}}
  60. </form>
  61. {{/view}}
  62. {{/unless}}
  63. {{#if category.isForSlaveComponent}}
  64. {{#view App.WizardStep7.ServiceConfigsByCategoryView categoryBinding="category" serviceConfigsBinding="selectedService.configs" controllerBinding="App.router.slaveComponentGroupsController"}}
  65. <div class="slave-component-group-menu">
  66. {{view App.SlaveComponentGroupsMenu}}
  67. </div>
  68. {{#view App.AddSlaveComponentGroupButton slaveComponentNameBinding="category.name"}}
  69. <a
  70. class="btn add-slave-component-group btn-large" {{action addSlaveComponentGroup target="controller"}}><i
  71. class="icon-plus"></i></a>
  72. {{/view}}
  73. <div class="remove-group-error control-group warning">
  74. <span class="help-inline">You cannot delete this group since there are hosts assigned to it. You must assign them to another group before you can delete this group.</span>
  75. </div>
  76. <form class="form-horizontal">
  77. {{#view App.SlaveComponentChangeGroupNameView}}
  78. <label class="control-label">Group name</label>
  79. <div class="controls">
  80. <div class="span6">
  81. <input class="span9"
  82. type="text" {{bindAttr value="view.content.name"}}>
  83. <button class="btn" {{action changeGroupName target="view"}}>Save
  84. </button>
  85. </div>
  86. <span class="help-inline">{{view.errorMessage}}</span>
  87. </div>
  88. {{/view}}
  89. {{#view App.SlaveGroupPropertiesView}}
  90. {{#each view.groupConfigs}}
  91. {{#if this.isVisible}}
  92. <div {{bindAttr class="errorMessage:error: :control-group"}}>
  93. <label class="control-label">{{this.displayName}}</label>
  94. <div class="controls">
  95. {{view this.viewClass serviceConfigBinding="this"}}
  96. <span class="help-inline">{{this.errorMessage}}</span>
  97. </div>
  98. </div>
  99. {{/if}}
  100. {{/each}}
  101. {{/view}}
  102. </form>
  103. {{/view}}
  104. {{/if}}
  105. </div>
  106. {{/each}}
  107. </div>
  108. {{#if isSubmitDisabled}}
  109. <div class="alert">{{t installer.step7.attentionNeeded}}</div>
  110. {{/if}}
  111. <div class="btn-area">
  112. <a class="btn" {{action back}}>&larr; Back</a>
  113. <a
  114. class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}}
  115. {{action submit target="controller"}}>Next &rarr;</a>
  116. </div>
  117. </div>