step7.hbs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. {{#if service.showConfig}}
  26. {{#view App.WizardStep7.ServiceConfigTab}}
  27. <a class="active" href="#{{unbound service.serviceName}}"
  28. data-toggle="tab" {{action selectService service target="view"}}>
  29. {{service.displayName}}{{#if service.errorCount}}<span
  30. class="badge badge-important">{{service.errorCount}}</span>{{/if}}</a>
  31. {{/view}}
  32. {{/if}}
  33. {{/each}}
  34. </ul>
  35. <div class="accordion">
  36. {{#each category in selectedService.configCategories}}
  37. <div class="accordion-group {{unbound category.name}}">
  38. <div class="accordion-heading" {{action "onToggleBlock" category target="view"}}>
  39. {{#if category.isCollapsed}}
  40. <i class='icon-caret-right pull-left accordion-toggle'></i>
  41. {{else}}
  42. <i class='icon-caret-down pull-left accordion-toggle'></i>
  43. {{/if}}
  44. <a class="accordion-toggle">
  45. {{category.name}}
  46. </a>
  47. </div>
  48. {{#view App.WizardStep7.ServiceConfigsByCategoryView categoryBinding="category" serviceConfigsBinding="selectedService.configs"}}
  49. <form class="form-horizontal">
  50. {{#each view.categoryConfigs}}
  51. {{#if isVisible}}
  52. <div {{bindAttr class="errorMessage:error: :control-group"}}>
  53. <label class="control-label">{{displayName}}</label>
  54. <div class="controls">
  55. {{view viewClass serviceConfigBinding="this" categoryConfigsBinding="view.categoryConfigs"}}
  56. <span class="help-inline">{{errorMessage}}</span>
  57. </div>
  58. </div>
  59. {{/if}}
  60. {{/each}}
  61. </form>
  62. {{/view}}
  63. </div>
  64. {{/each}}
  65. </div>
  66. {{#if isSubmitDisabled}}
  67. <div class="alert">{{t installer.step7.attentionNeeded}}</div>
  68. {{/if}}
  69. <div class="btn-area">
  70. <a class="btn" {{action back}}>&larr; Back</a>
  71. <a
  72. class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}}
  73. {{action submit target="controller"}}>Next &rarr;</a>
  74. </div>
  75. </div>