step3.hbs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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="span2">Status</th>
  59. <!-- given by the parsing function that parses data from bootstrap call -->
  60. <th class="span4">Host</th>
  61. <!-- retrieved from local storage initially -->
  62. <th class="span2">Message</th>
  63. <!-- given by the parsing function that parses data from bootstrap call, dynamically assign the color -->
  64. <th class="span3">Action</th>
  65. <!-- trash icon -->
  66. <!-- retry icon -->
  67. </tr>
  68. </thead>
  69. <tbody>
  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.bootStatus}}
  77. </td>
  78. <td>
  79. {{host.name}}
  80. </td>
  81. <td>
  82. <a href="javascript:void(null)"
  83. data-toggle="modal" {{action hostLogPopup target="controller"}}>{{host.message}}</a>
  84. </td>
  85. <td>
  86. {{#if view.isRemovable}}<a class="btn btn-mini" {{action remove target="view"}}><i class="icon-trash"></i>
  87. Remove</a>{{/if}}
  88. {{#if view.isRetryable}}<a class="btn btn-mini" {{action retry target="view"}}><i class="icon-repeat"></i>
  89. Retry</a>{{/if}}
  90. </td>
  91. {{/view}}
  92. {{/each}}
  93. </tbody>
  94. </table>
  95. </div>
  96. <div class="box-footer">
  97. <hr/>
  98. <div class="footer-pagination">
  99. </div>
  100. </div>
  101. </div>
  102. <div class="btn-area">
  103. <a class="btn pull-left" {{action back}}>&larr; Back</a>
  104. <a class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}} {{action submit target="controller"}}>Next &rarr;</a>
  105. </div>
  106. </div>