step2.hbs 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. <h2>{{t admin.highAvailability.wizard.step2.header}}</h2>
  19. <div class="alert alert-info">
  20. {{t admin.highAvailability.wizard.step2.body}}
  21. </div>
  22. <div class="assign-masters">
  23. <div class="select-hosts span7">
  24. <form class="form-horizontal" autocomplete="off">
  25. <!-- View for array controller -->
  26. {{#each servicesMasters}}
  27. <div class="control-group">
  28. <label class="control-label">
  29. {{#if isCurNameNode}}
  30. {{t common.current}}
  31. {{/if}}
  32. {{#if isAddNameNode}}
  33. {{t common.additional}}
  34. {{/if}}
  35. {{display_name}}:
  36. </label>
  37. <div class="controls">
  38. {{#if view.shouldUseInputs}}
  39. {{view App.InputHostView
  40. componentBinding="this"
  41. disabledBinding="isInstalled" }}
  42. {{else}}
  43. {{view App.SelectHostView
  44. componentBinding="this"
  45. disabledBinding="isInstalled"
  46. optionValuePath="content.host_name"
  47. optionLabelPath="content.host_info" }}
  48. {{/if}}
  49. {{#if showAddControl}}
  50. {{view App.AddControlView componentNameBinding="component_name"}}
  51. {{/if}}
  52. {{#if showRemoveControl}}
  53. {{view App.RemoveControlView componentNameBinding="component_name" serviceComponentIddBinding="serviceComponentId"}}
  54. {{/if}}
  55. </div>
  56. </div>
  57. {{/each}}
  58. </form>
  59. </div>
  60. <div class="host-assignments span5">
  61. {{#each masterHostMapping}}
  62. <div class="mapping-box round-corners well">
  63. <div class="hostString"><span>{{hostInfo}}</span></div>
  64. {{#each masterServices}}
  65. <span {{bindAttr class="isInstalled:assignedService:newService :round-corners"}}>{{display_name}}</span>
  66. {{/each}}
  67. </div>
  68. {{/each}}
  69. {{#if remainingHosts}}
  70. <div class="remaining-hosts round-corners well">
  71. <span><strong>{{remainingHosts}}</strong> {{t installer.step5.attention}}</span></div>
  72. {{/if}}
  73. </div>
  74. <div style="clear: both;"></div>
  75. </div>
  76. <div class="btn-area">
  77. <a class="btn" {{action back}}>&larr; {{t common.back}}</a>
  78. <a class="btn btn-success pull-right" {{bindAttr disabled="submitDisabled"}} {{action submit target="controller"}}>{{t common.next}} &rarr;</a>
  79. </div>