rolling_restart_view.hbs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 class="rolling-restart-view">
  19. <div class="alert alert-info">
  20. <p>
  21. {{view.restartMessage}}
  22. </p>
  23. {{#if view.maintainanceMessage}}
  24. <p>
  25. {{view.maintainanceMessage}}
  26. </p>
  27. {{/if}}
  28. {{#if view.suggestTurnOnMaintenanceMsg}}
  29. <p>
  30. {{view.suggestTurnOnMaintenanceMsg}}
  31. </p>
  32. {{/if}}
  33. </div>
  34. {{#if view.isLoaded}}
  35. <table>
  36. <tr>
  37. <td>{{t common.restart}}</td>
  38. <td>{{view Ember.TextField valueBinding="view.batchSize" class="span1"}}</td>
  39. <td>{{view.batchSizeMessage}}</td>
  40. </tr>
  41. <tr>
  42. <td>{{t rollingrestart.dialog.msg.timegap.prefix}}</td>
  43. <td>{{view Ember.TextField valueBinding="view.interBatchWaitTimeSeconds" class="span1"}}</td>
  44. <td>{{t rollingrestart.dialog.msg.timegap.suffix}}</td>
  45. </tr>
  46. <tr>
  47. <td>{{t rollingrestart.dialog.msg.toleration.prefix}}</td>
  48. <td>{{view Ember.TextField valueBinding="view.tolerateSize" class="span1"}}</td>
  49. <td>{{t rollingrestart.dialog.msg.toleration.suffix}}</td>
  50. </tr>
  51. <tr>
  52. <td>&nbsp;</td>
  53. <td colspan="2">
  54. {{view Ember.Checkbox checkedBinding="view.staleConfigsOnly"}}
  55. {{view.staleConfigsOnlyMessage}}
  56. </td>
  57. </tr>
  58. <tr>
  59. <td>&nbsp;</td>
  60. <td colspan="2">
  61. {{#unless view.isServiceInMM}}
  62. {{view Ember.Checkbox checkedBinding="view.turnOnMm"}}
  63. {{view.turnOnMmMsg}}
  64. {{/unless}}
  65. </td>
  66. </tr>
  67. </table>
  68. {{else}}
  69. <div class="spinner"></div>
  70. {{/if}}
  71. {{#if view.errors}}
  72. <div class="alert alert-warn">
  73. <ul>
  74. {{#each error in view.errors}}
  75. <li>{{error}}</li>
  76. {{/each}}
  77. </ul>
  78. </div>
  79. {{/if}}
  80. </div>