step7.hbs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. {{#view App.ServiceConfigTabs}}
  24. <ul class="nav nav-tabs">
  25. {{#each service in controller}}
  26. <li><a class="active" {{bindAttr href="service.serviceName"}}
  27. data-toggle="tab" {{action selectService service on="click" target="view"}}>{{service.displayName}}{{#if service.errorCount}}<span
  28. class="badge badge-important">{{service.errorCount}}</span>{{/if}}</a>
  29. </li>
  30. {{/each}}
  31. </ul>
  32. {{/view}}
  33. <div class="accordion">
  34. {{#each category in selectedService.configCategories}}
  35. <div class="accordion-group">
  36. <div class="accordion-heading">
  37. <a class="accordion-toggle">
  38. {{category.name}}
  39. </a>
  40. </div>
  41. {{#view App.ServiceConfigsByCategoryView categoryBinding="category" serviceConfigsBinding="selectedService.configs"}}
  42. <div class="accordion-body collapse in">
  43. <div class="accordion-inner">
  44. <form class="form-horizontal">
  45. {{#each view.categoryConfigs}}
  46. <div {{bindAttr class="errorMessage:error: :control-group"}}>
  47. <label class="control-label">{{displayName}}</label>
  48. <div class="controls">
  49. {{view viewClass serviceConfigBinding="this"}}
  50. <span class="help-inline">{{errorMessage}}</span>
  51. </div>
  52. </div>
  53. {{/each}}
  54. </form>
  55. </div>
  56. </div>
  57. {{/view}}
  58. </div>
  59. {{#if category.isForSlaveComponent}}
  60. {{#view App.AddSlaveComponentGroupButton slaveComponentNameBinding="category.name"}}
  61. <a
  62. class="btn add-slave-component-group" {{action showAddSlaveComponentGroup category.name target="App.router.slaveComponentGroupsController"}}><i
  63. class="icon-plus-sign"></i> Add a {{category.name}} Group</a>
  64. {{/view}}
  65. {{/if}}
  66. {{/each}}
  67. </div>
  68. {{#if isSubmitDisabled}}
  69. <div class="alert">{{t installer.step7.attentionNeeded}}</div>
  70. {{/if}}
  71. <div class="btn-area">
  72. <a class="btn" {{action back}}>&larr; Back</a>
  73. <div style="float:right">
  74. <a {{bindAttr class=":btn :btn-success"}} {{bindAttr disabled="isSubmitDisabled"}} {{action submit target="controller"}}>Next &rarr;</a>
  75. </div>
  76. </div>
  77. </div>