step6.hbs 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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>{{view.title}}</h2>
  20. <div class="alert alert-info">{{{view.label}}}</div>
  21. {{#if errorMessage}}
  22. <div class="alert alert-error">{{errorMessage}}</div>
  23. {{/if}}
  24. {{#if controller.isLoaded}}
  25. {{#if view.isLoaded}}
  26. <div class="pre-scrollable">
  27. <table class="table table-striped" id="component_assign_table">
  28. <thead>
  29. <tr>
  30. <th>{{t common.host}}</th>
  31. {{#each header in controller.headers}}
  32. <th>
  33. <a href="#" {{bindAttr class="header.allChecked:selected:deselected"}}
  34. {{action "selectAllNodes" header target="controller"}}>{{t all}}</a>&nbsp;|&nbsp;<a href="#" {{bindAttr class="header.noChecked:selected:deselected"}}
  35. {{action "deselectAllNodes" header target="controller"}}>{{t none}}</a>
  36. </th>
  37. {{/each}}
  38. </tr>
  39. </thead>
  40. <tbody>
  41. {{#if view.pageContent}}
  42. {{#each host in view.pageContent}}
  43. <tr>
  44. {{#view App.WizardStep6HostView hostBinding="host" }}
  45. {{host.hostName}}
  46. {{#if host.hasMaster}}
  47. <i class=icon-asterisks>&#10037;</i>
  48. {{/if}}
  49. {{/view}}
  50. {{#each checkbox in host.checkboxes}}
  51. <td>
  52. <label class="checkbox">
  53. {{#view view.checkboxView checkboxBinding="checkbox"}}
  54. {{checkbox.title}}
  55. {{/view}}
  56. </label>
  57. </td>
  58. {{/each}}
  59. </tr>
  60. {{/each}}
  61. {{/if}}
  62. </tbody>
  63. </table>
  64. </div>
  65. <div id="hosts">
  66. <div class="page-bar">
  67. <div class="items-on-page">
  68. <label>{{t common.show}}: {{view view.rowsPerPageSelectView selectionBinding="view.displayLength"}}</label>
  69. </div>
  70. <div class="info">{{view.paginationInfo}}</div>
  71. <div class="paging_two_button">
  72. {{view view.paginationFirst}}
  73. {{view view.paginationLeft}}
  74. {{view view.paginationRight}}
  75. {{view view.paginationLast}}
  76. </div>
  77. </div>
  78. </div>
  79. {{else}}
  80. <div class="spinner"></div>
  81. {{/if}}
  82. {{else}}
  83. <div class="spinner"></div>
  84. {{/if}}
  85. <div class="btn-area">
  86. <a class="btn" {{action back}}>&larr; {{t common.back}}</a>
  87. <a class="btn btn-success pull-right" {{action next}}>{{t common.next}} &rarr;</a>
  88. </div>
  89. </div>