configs.hbs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. <div class="accordion">
  20. {{#each category in selectedService.configCategories}}
  21. <div class="accordion-group {{unbound category.name}}">
  22. <div class="accordion-heading" {{action "onToggleBlock" category target="view"}}>
  23. {{#if category.isCollapsed}}
  24. <i class='icon-caret-right pull-left accordion-toggle'></i>
  25. {{else}}
  26. <i class='icon-caret-down pull-left accordion-toggle'></i>
  27. {{/if}}
  28. <a class="accordion-toggle">
  29. {{category.name}}
  30. </a>
  31. </div>
  32. {{#view App.ServiceConfigsByCategoryView categoryBinding="category" serviceConfigsBinding="selectedService.configs"}}
  33. <form class="form-horizontal">
  34. {{#each view.categoryConfigs}}
  35. {{#if isVisible}}
  36. <div {{bindAttr class="errorMessage:error: :control-group"}}>
  37. <label class="control-label">{{displayName}}</label>
  38. <div class="controls">
  39. {{view viewClass serviceConfigBinding="this" categoryConfigsBinding="view.categoryConfigs"}}
  40. <span class="help-inline">{{errorMessage}}</span>
  41. </div>
  42. </div>
  43. {{/if}}
  44. {{/each}}
  45. </form>
  46. {{/view}}
  47. </div>
  48. {{/each}}
  49. </div>
  50. <p class="pull-right">
  51. <!--<input class="btn btn-primary" type="button" value="Save and apply changes" {{!bindAttr disabled="isSubmitDisabled"}} />-->
  52. <a class="btn btn-primary" {{bindAttr disabled="isSubmitDisabled"}}
  53. {{action restartServicePopup target="controller"}}>Save and apply changes</a>
  54. </p>
  55. </div>