upgrade_options.hbs 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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="upgrade-options-popup-content">
  19. <div class="text version-text">{{{view.versionText}}}</div>
  20. <div class="text method-text">{{t admin.stackVersions.version.upgrade.upgradeOptions.bodyMsg.method}}</div>
  21. <div {{bindAttr class=":row-fluid :method-options view.isInUpgradeWizard:disabled"}}>
  22. {{#each method in view.upgradeMethods}}
  23. <div class="method-option span5">
  24. <div {{bindAttr class="method.allowed::not-allowed method.allowed::not-allowed-by-version
  25. method.isPrecheckFailed:not-allowed method.isPrecheckFailed:check-failed
  26. method.selected:selected method.type :thumbnail"}}
  27. {{action selectMethod method target="view"}}>
  28. <div {{bindAttr class="method.icon :method-icon"}}></div>
  29. <div class="method-name">{{method.displayName}}</div>
  30. <div class="method-description">{{{method.description}}}</div>
  31. {{#unless view.isInUpgradeWizard}}
  32. {{#if method.isCheckRequestInProgress}}
  33. <div class="method-precheck-message checking">
  34. {{view App.SpinnerView message="admin.stackVersions.version.upgrade.upgradeOptions.preCheck.msg.checking"}}
  35. </div>
  36. {{else}}
  37. <div {{bindAttr class=":method-precheck-message method.precheckResultsMessageClass"}}>
  38. <i {{bindAttr class="method.precheckResultsMessageIconClass"}}></i>
  39. <b>{{method.precheckResultsTitle}}</b>&nbsp;
  40. <a {{action runAction method target="view"}}>
  41. {{method.precheckResultsMessage}}
  42. </a>
  43. {{#if method.bypassedFailures}}
  44. <div class="alert-danger">{{t admin.stackVersions.version.upgrade.upgradeOptions.errors_bypassed}}</div>
  45. {{/if}}
  46. </div>
  47. {{/if}}
  48. {{/unless}}
  49. </div>
  50. </div>
  51. {{/each}}
  52. </div>
  53. <div class="text tolerance-text">{{t admin.stackVersions.version.upgrade.upgradeOptions.bodyMsg.tolerance}}
  54. <i class="icon-question-sign failure-tolerance-tooltip" data-toggle="tooltip"></i>
  55. <label class="tolerance-option">{{view Ember.Checkbox checkedBinding="view.parentView.skipSCFailures"}}
  56. {{t admin.stackVersions.version.upgrade.upgradeOptions.tolerance.option2}}</label>
  57. <label class="tolerance-option">{{view Ember.Checkbox checkedBinding="view.parentView.skipComponentFailures"}}
  58. {{t admin.stackVersions.version.upgrade.upgradeOptions.tolerance.option1}}</label>
  59. </div>
  60. </div>