rolling_restart_view.hbs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. </div>
  29. <table>
  30. <tr>
  31. <td>{{t common.restart}}</td>
  32. <td>{{view Ember.TextField valueBinding="view.batchSize" class="span1"}}</td>
  33. <td>{{view.batchSizeMessage}}</td>
  34. </tr>
  35. <tr>
  36. <td>{{t rollingrestart.dialog.msg.timegap.prefix}}</td>
  37. <td>{{view Ember.TextField valueBinding="view.interBatchWaitTimeSeconds" class="span1"}}</td>
  38. <td>{{t rollingrestart.dialog.msg.timegap.suffix}}</td>
  39. </tr>
  40. <tr>
  41. <td>{{t rollingrestart.dialog.msg.toleration.prefix}}</td>
  42. <td>{{view Ember.TextField valueBinding="view.tolerateSize" class="span1"}}</td>
  43. <td>{{t rollingrestart.dialog.msg.toleration.suffix}}</td>
  44. </tr>
  45. <tr>
  46. <td>&nbsp;</td>
  47. <td colspan="2">
  48. {{view Ember.Checkbox checkedBinding="view.staleConfigsOnly"}}
  49. {{view.staleConfigsOnlyMessage}}
  50. </td>
  51. </tr>
  52. </table>
  53. {{#if view.errors}}
  54. <div class="alert alert-warn">
  55. <ul>
  56. {{#each error in view.errors}}
  57. <li>{{error}}</li>
  58. {{/each}}
  59. </ul>
  60. </div>
  61. {{/if}}
  62. </div>