step6.hbs 2.7 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="step6">
  19. <h2>{{t installer.step6.header}}</h2>
  20. <div class="alert alert-info">{{t installer.step6.body}}</div>
  21. {{#if errorMessage}}
  22. <div class="alert alert-error">{{errorMessage}}</div>
  23. {{/if}}
  24. <table class="table table-striped">
  25. <thead>
  26. <tr>
  27. <th>Host</th>
  28. <th>
  29. <a href="#" {{bindAttr class="isAllDataNodes:selected:deselected"}} {{action selectAllDataNodes target="controller"}}>all</a> | <a href="#" {{bindAttr class="isNoDataNodes:selected:deselected"}} {{action deselectAllDataNodes target="controller"}}>none</a>
  30. </th>
  31. <th>
  32. <a href="#" {{bindAttr class="isAllTaskTrackers:selected:deselected"}} {{action selectAllTaskTrackers target="controller"}}>all</a> | <a href="#" {{bindAttr class="isNoTaskTrackers:selected:deselected"}} {{action deselectAllTaskTrackers target="controller"}}>none</a>
  33. </th>
  34. {{#if showHbase}}
  35. <th>
  36. <a href="#" {{bindAttr class="isAllRegionServers:selected:deselected"}} {{action selectAllRegionServers target="controller"}}>all</a> | <a href="#" {{bindAttr class="isNoRegionServers:selected:deselected"}} {{action deselectAllRegionServers target="controller"}}>none</a>
  37. </th>
  38. {{/if}}
  39. </tr>
  40. </thead>
  41. <tbody>
  42. {{#each hosts}}
  43. <tr>
  44. <td>{{hostname}}</td>
  45. <td><label class="checkbox">{{view Ember.Checkbox checkedBinding="isDataNode"}}DataNode</label></td>
  46. <td><label class="checkbox">{{view Ember.Checkbox checkedBinding="isTaskTracker"}}TaskTracker</label></td>
  47. {{#if controller.showHbase}}
  48. <td><label class="checkbox">{{view Ember.Checkbox checkedBinding="isRegionServer"}}RegionServer</label></td>
  49. {{/if}}
  50. </tr>
  51. {{/each}}
  52. </tbody>
  53. </table>
  54. <div class="btn-area">
  55. <a class="btn" {{action back}}>&larr; Back</a>
  56. <a class="btn btn-success" style="float:right" {{action submit target="controller"}}>Next &rarr;</a>
  57. </div>
  58. </div>