step6.hbs 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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="step6">
  19. <h2>{{t installer.step6.header}}</h2>
  20. <div class="alert alert-info">{{{view.label}}}</div>
  21. {{#if errorMessage}}
  22. <div class="alert alert-error">{{errorMessage}}</div>
  23. {{/if}}
  24. <div class="pre-scrollable">
  25. <table class="table table-striped">
  26. <thead>
  27. <tr>
  28. <th>Host</th>
  29. <th>
  30. <a href="#" {{bindAttr class="isAllDataNodes:selected:deselected"}}
  31. {{action selectAllDataNodes target="controller"}}>all</a> |
  32. <a href="#" {{bindAttr class="isNoDataNodes:selected:deselected"}}
  33. {{action deselectAllDataNodes target="controller"}}>none</a>
  34. </th>
  35. {{#if controller.isMrSelected}}
  36. <th>
  37. <a href="#" {{bindAttr class="isAllTaskTrackers:selected:deselected"}}
  38. {{action selectAllTaskTrackers target="controller"}}>all</a> |
  39. <a href="#" {{bindAttr class="isNoTaskTrackers:selected:deselected"}}
  40. {{action deselectAllTaskTrackers target="controller"}}>none</a>
  41. </th>
  42. {{/if}}
  43. {{#if controller.isHbSelected}}
  44. <th>
  45. <a href="#" {{bindAttr class="isAllRegionServers:selected:deselected"}}
  46. {{action selectAllRegionServers target="controller"}}>all</a> |
  47. <a href="#" {{bindAttr class="isNoRegionServers:selected:deselected"}}
  48. {{action deselectAllRegionServers target="controller"}}>none</a>
  49. </th>
  50. {{/if}}
  51. <th>
  52. <a href="#" {{bindAttr class="isAllClients:selected:deselected"}} {{action selectAllClients target="controller"}}>all</a>
  53. |
  54. <a href="#" {{bindAttr class="isNoClients:selected:deselected"}} {{action deselectAllClients target="controller"}}>none</a>
  55. </th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. {{#each hosts}}
  60. <tr>
  61. {{#view App.WizardStep6HostView hostBinding = "this" }}
  62. {{hostName}}
  63. {{#if isMaster}}
  64. <i class=icon-asterisks>&#10037</i>
  65. {{/if}}
  66. {{/view}}
  67. <td><label class="checkbox">{{view Ember.Checkbox checkedBinding="isDataNode"}}DataNode</label></td>
  68. {{#if controller.isMrSelected}}
  69. <td><label class="checkbox">{{view Ember.Checkbox checkedBinding="isTaskTracker"}}TaskTracker</label></td>
  70. {{/if}}
  71. {{#if controller.isHbSelected}}
  72. <td><label class="checkbox">{{view Ember.Checkbox checkedBinding="isRegionServer"}}RegionServer</label></td>
  73. {{/if}}
  74. <td><label class="checkbox">{{view Ember.Checkbox checkedBinding="isClient"}}Client</label></td>
  75. </tr>
  76. {{/each}}
  77. </tbody>
  78. </table>
  79. </div>
  80. <div class="btn-area">
  81. <a class="btn" {{action back href="true"}}>&larr; Back</a>
  82. <a class="btn btn-success pull-right" {{action next}}>Next &rarr;</a>
  83. </div>
  84. </div>