step7.hbs 3.1 KB

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