step3.hbs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. <a class="btn btn-info"
  35. href="#" {{action mockBtn target="controller" }}>
  36. mockData
  37. </a>
  38. <a class="btn btn-info"
  39. href="#" {{action pollBtn target="controller" }}>
  40. pollData
  41. </a>
  42. <div id="host-filter" class="dropdown pull-right">
  43. {{view Ember.Select class="pull-right"
  44. contentBinding="controller.categories"
  45. selectionBinding="controller.category"
  46. }}
  47. <h5 class="pull-right">Show:</h5>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="pre-scrollable" style="max-height: 440px;">
  52. <table class="table table-bordered table-striped">
  53. <thead>
  54. <tr>
  55. <th class="span1">{{view Ember.Checkbox checkedBinding="allChecked"}}</th>
  56. <th class="span2">Status</th>
  57. <!-- given by the parsing function that parses data from bootstrap call -->
  58. <th class="span4">Host</th>
  59. <!-- retrieved from local storage initially -->
  60. <th class="span2">Message</th>
  61. <!-- given by the parsing function that parses data from bootstrap call, dynamically assign the color -->
  62. <th class="span3">Action</th>
  63. <!-- trash icon -->
  64. <!-- retry icon -->
  65. </tr>
  66. </thead>
  67. <tbody>
  68. {{#each host in visibleHosts}}
  69. {{#view App.WizardHostView categoryBinding="controller.category" hostInfoBinding="host"}}
  70. <td>
  71. {{view Ember.Checkbox checkedBinding="host.isChecked"}}
  72. </td>
  73. <td>
  74. {{host.bootStatus}}
  75. </td>
  76. <td>
  77. {{host.name}}
  78. </td>
  79. <td>
  80. <a href="javascript:void(null)"
  81. data-toggle="modal" {{action hostLogPopup target="controller"}}>{{host.message}}</a>
  82. </td>
  83. <td>
  84. {{#if view.isRemovable}}<a class="btn btn-mini" {{action remove target="view"}}><i class="icon-trash"></i>
  85. Remove</a>{{/if}}
  86. {{#if view.isRetryable}}<a class="btn btn-mini" {{action retry target="view"}}><i class="icon-repeat"></i>
  87. Retry</a>{{/if}}
  88. </td>
  89. {{/view}}
  90. {{/each}}
  91. </tbody>
  92. </table>
  93. </div>
  94. <div class="box-footer">
  95. <hr/>
  96. <div class="footer-pagination">
  97. </div>
  98. </div>
  99. </div>
  100. <div class="btn-area">
  101. <a class="btn pull-left" {{action back}}>&larr; Back</a>
  102. <a class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}} {{action submit target="controller"}}>Next &rarr;</a>
  103. </div>
  104. </div>