step3.hbs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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="confirm-hosts">
  19. <h2>{{t installer.step3.header}}</h2>
  20. <p class="alert alert-info">{{t installer.step3.body}}</p>
  21. <div class="box">
  22. <div class="box-header">
  23. <div class="button-section">
  24. <a class="btn btn-primary" {{bindAttr disabled="noHostsSelected"}}
  25. href="#" {{action removeSelectedHosts target="controller" }}><i
  26. class="icon-trash icon-white"></i>
  27. {{t installer.step3.removeSelected}}
  28. </a>
  29. {{#unless isRetryDisabled}}
  30. <a class="btn btn-primary decommission"
  31. href="#" {{action retrySelectedHosts target="controller"}}><i
  32. class="icon-repeat icon-white"></i>
  33. {{t installer.step3.retryFailed}}
  34. </a>
  35. {{/unless}}
  36. <div id="host-filter" class="pull-right">
  37. <ul class="clearfix">
  38. <li class="first">{{t common.show}}:</li>
  39. {{#each category in controller.categories}}
  40. <li {{bindAttr class="category.itemClass"}}>
  41. <a {{action selectCategory category target="controller"}} href="#">
  42. {{category.label}}
  43. </a>
  44. </li>
  45. {{#unless category.last}}
  46. <li>|</li>
  47. {{/unless}}
  48. {{/each}}
  49. </ul>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="pre-scrollable" style="max-height: 440px;">
  54. <table class="table table-bordered table-striped">
  55. <thead>
  56. <tr>
  57. <th class="span1">{{view Ember.Checkbox checkedBinding="allChecked"}}</th>
  58. <th class="span3">{{t common.host}}</th>
  59. <!-- retrieved from local storage initially -->
  60. <th class="span3">{{t common.progress}}</th>
  61. <th class="span2">{{t common.status}}</th>
  62. <!-- given by the parsing function that parses data from bootstrap call, dynamically assign the color -->
  63. <th class="span3">{{t common.action}}</th>
  64. <!-- trash icon -->
  65. <!-- retry icon -->
  66. </tr>
  67. </thead>
  68. <tbody>
  69. {{#if visibleHosts.length}}
  70. {{#each host in visibleHosts}}
  71. {{#view App.WizardHostView categoryBinding="controller.category" hostInfoBinding="host"}}
  72. <td>
  73. {{view Ember.Checkbox checkedBinding="host.isChecked"}}
  74. </td>
  75. <td>
  76. {{host.name}}
  77. </td>
  78. <td>
  79. <div {{bindAttr class="host.bootBarColor host.isBootDone::progress-striped host.isBootDone::active :progress"}}>
  80. <div class="bar" style="width:100%">
  81. </div>
  82. </div>
  83. </td>
  84. <td>
  85. <a href="javascript:void(null)"
  86. data-toggle="modal" {{action hostLogPopup host target="controller"}}><span {{bindAttr class="host.bootStatusColor"}}>{{host.bootStatusForDisplay}}</span></a>
  87. </td>
  88. <td>
  89. {{#if view.isRemovable}}<a class="btn btn-mini" {{action remove target="view"}}><i class="icon-trash"></i>
  90. {{t common.remove}}</a>{{/if}}
  91. {{#if view.isRetryable}}<a class="btn btn-mini" {{action retry target="view"}}><i class="icon-repeat"></i>
  92. {{t common.retry}}</a>{{/if}}
  93. </td>
  94. {{/view}}
  95. {{/each}}
  96. {{else}}
  97. <tr>
  98. <td colspan="5"><p>{{t installer.step3.hosts.noHosts}}</p></td>
  99. </tr>
  100. {{/if}}
  101. </tbody>
  102. </table>
  103. </div>
  104. <div class="box-footer">
  105. <hr/>
  106. <div class="footer-pagination">
  107. </div>
  108. </div>
  109. </div>
  110. {{#if isWarningsBoxVisible}}
  111. <div {{bindAttr class=":alert view.status"}}>
  112. {{view.message}}
  113. <a href="#" {{action hostWarningsPopup warnings target="controller"}}>{{view.linkText}}</a>
  114. </div>
  115. {{/if}}
  116. <div class="btn-area">
  117. <a class="btn pull-left" {{bindAttr disabled="isInstallInProgress"}} {{action back target="controller"}}>&larr; {{t common.back}}</a>
  118. <a class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}} {{action submit target="controller"}}>{{t common.next}} &rarr;</a>
  119. </div>
  120. </div>