step6.hbs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. {{#each msg in controller.generalErrorMessages}}
  25. <div class="alert alert-error">{{msg}}</div>
  26. {{/each}}
  27. {{#each msg in controller.generalWarningMessages}}
  28. <div class="alert alert-warning">{{msg}}</div>
  29. {{/each}}
  30. <div class="pre-scrollable">
  31. <table class="table" id="component_assign_table">
  32. <thead>
  33. <tr>
  34. <th>{{t common.host}}</th>
  35. {{#each header in controller.headers}}
  36. <th>
  37. <a href="#" {{bindAttr class="header.allChecked:selected:deselected header.isDisabled:remove-link"}}
  38. {{action "selectAllNodes" header target="controller"}}>{{t all}}</a> &nbsp;|&nbsp; <a
  39. href="#" {{bindAttr class="header.noChecked:selected:deselected header.isDisabled:remove-link"}}
  40. {{action "deselectAllNodes" header target="controller"}}>{{t none}}</a>
  41. </th>
  42. {{/each}}
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {{#if view.pageContent}}
  47. {{#each host in view.pageContent}}
  48. <tr>
  49. {{#view App.WizardStep6HostView hostBinding="host" }}
  50. <span class="trim_hostname">{{host.hostName}}</span>
  51. {{#if host.hasMaster}}
  52. <i class=icon-asterisks>&#10037;</i>
  53. {{/if}}
  54. {{/view}}
  55. {{#each checkbox in host.checkboxes}}
  56. <td {{bindAttr class="checkbox.hasErrorMessage:error checkbox.hasWarnMessage:warning"}}>
  57. <label class="checkbox">
  58. <input {{bindAttr checked = "checkbox.checked" disabled="checkbox.isDisabled"}} {{action "checkboxClick" checkbox target="view" }}
  59. type="checkbox"/>{{checkbox.title}}
  60. </label>
  61. </td>
  62. {{/each}}
  63. </tr>
  64. <tr {{bindAttr class="host.anyMessage::hidden"}}>
  65. <td {{bindAttr colspan="view.columnCount"}} class="no-borders">
  66. {{#each errorMsg in host.errorMessages}}
  67. <div class="alert alert-error">{{errorMsg}}</div>
  68. {{/each}}
  69. {{#each warnMsg in host.warnMessages}}
  70. <div class="alert alert-warning">{{warnMsg}}</div>
  71. {{/each}}
  72. </td>
  73. </tr>
  74. {{/each}}
  75. {{/if}}
  76. </tbody>
  77. </table>
  78. </div>
  79. <div id="hosts">
  80. <div class="page-bar">
  81. <div class="items-on-page">
  82. <label>{{t common.show}}: {{view view.rowsPerPageSelectView selectionBinding="view.displayLength"}}</label>
  83. </div>
  84. <div class="info">{{view.paginationInfo}}</div>
  85. <div class="paging_two_button">
  86. {{view view.paginationFirst}}
  87. {{view view.paginationLeft}}
  88. {{view view.paginationRight}}
  89. {{view view.paginationLast}}
  90. </div>
  91. </div>
  92. </div>
  93. <div class="btn-area">
  94. <a class="btn" {{action back}}>&larr; {{t common.back}}</a>
  95. <a class="btn btn-success pull-right" {{bindAttr disabled="submitDisabled"}} {{action next}}>{{t common.next}} &rarr;</a>
  96. </div>
  97. </div>