step3.hbs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 decommission" {{bindAttr disabled="noHostsSelected"}}
  25. href="#" {{action retrySelectedHosts target="controller"}}><i
  26. class="icon-repeat icon-white"></i>
  27. Retry
  28. </a>
  29. <a class="btn btn-primary" {{bindAttr disabled="noHostsSelected"}}
  30. href="#" {{action removeSelectedHosts target="controller" }}><i
  31. class="icon-trash icon-white"></i>
  32. Remove
  33. </a>
  34. {{#if App.testMode}}
  35. <a class="btn btn-info"
  36. href="#" {{action mockBtn target="controller" }}>
  37. mockData
  38. </a>
  39. <a class="btn btn-info"
  40. href="#" {{action pollBtn target="controller" }}>
  41. pollData
  42. </a>
  43. {{/if}}
  44. <div id="host-filter" class="dropdown pull-right">
  45. {{view Ember.Select class="pull-right"
  46. contentBinding="controller.categories"
  47. selectionBinding="controller.category"
  48. }}
  49. <h5 class="pull-right">Show:</h5>
  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">Host</th>
  59. <!-- retrieved from local storage initially -->
  60. <th class="span3">Progress</th>
  61. <th class="span2">Status</th>
  62. <!-- given by the parsing function that parses data from bootstrap call, dynamically assign the color -->
  63. <th class="span3">Action</th>
  64. <!-- trash icon -->
  65. <!-- retry icon -->
  66. </tr>
  67. </thead>
  68. <tbody>
  69. {{#each host in visibleHosts}}
  70. {{#view App.WizardHostView categoryBinding="controller.category" hostInfoBinding="host"}}
  71. <td>
  72. {{view Ember.Checkbox checkedBinding="host.isChecked"}}
  73. </td>
  74. <td>
  75. {{host.name}}
  76. </td>
  77. <td>
  78. <div {{bindAttr class="host.bootBarColor host.isBootDone::progress-striped host.isBootDone::active :progress"}}>
  79. <div class="bar" style="width:100%">
  80. </div>
  81. </div>
  82. </td>
  83. <td>
  84. <a href="javascript:void(null)"
  85. data-toggle="modal" {{action hostLogPopup host target="controller"}}>{{host.bootStatusForDisplay}}</a>
  86. </td>
  87. <td>
  88. {{#if view.isRemovable}}<a class="btn btn-mini" {{action remove target="view"}}><i class="icon-trash"></i>
  89. Remove</a>{{/if}}
  90. {{#if view.isRetryable}}<a class="btn btn-mini" {{action retry target="view"}}><i class="icon-repeat"></i>
  91. Retry</a>{{/if}}
  92. </td>
  93. {{/view}}
  94. {{/each}}
  95. </tbody>
  96. </table>
  97. </div>
  98. <div class="box-footer">
  99. <hr/>
  100. <div class="footer-pagination">
  101. </div>
  102. </div>
  103. </div>
  104. <div class="btn-area">
  105. <a class="btn pull-left" {{action back}}>&larr; Back</a>
  106. <a class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}} {{action submit target="controller"}}>Next &rarr;</a>
  107. </div>
  108. </div>