configs.hbs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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="serviceConfig">
  19. {{#if dataIsLoaded}}
  20. {{#if App.supports.hostOverrides}}
  21. {{#if controller.content.isRestartRequired}}
  22. <div>
  23. <div class="alert alert-warning clearfix">
  24. <i class="icon-refresh"></i> {{{view.needToRestartMessage}}} <a href="#" {{action showComponentsShouldBeRestarted target="controller"}}>{{view.componentsCount}} {{t common.components}}</a> {{t on}} <a href="#" {{action showHostsShouldBeRestarted target="controller"}}>{{view.hostsCount}} {{t dashboard.services.hosts}}</a> {{t services.service.config.restartService.needToRestartEnd}}
  25. <button class="btn btn-warning restart-components pull-right" {{action restartComponents target="controller"}}>
  26. {{t hosts.host.details.needToRestart.button}}
  27. </button>
  28. </div>
  29. </div>
  30. {{/if}}
  31. <div class="pull-right">
  32. {{view App.FilterComboboxView filterBinding="controller.filter" columnsBinding="controller.filterColumns" }}
  33. </div>
  34. {{/if}}
  35. <div class="clearfix"></div>
  36. {{view App.ServiceConfigView filterBinding="controller.filter" columnsBinding="controller.filterColumns"}}
  37. {{#if App.isAdmin}}
  38. <p class="pull-right">
  39. <!--<input class="btn btn-primary" type="button" value="Save" {{!bindAttr disabled="isSubmitDisabled"}} />-->
  40. <a class="btn" {{action doCancel target="controller"}}>{{t common.cancel}}</a>
  41. <a class="btn btn-primary" {{bindAttr disabled="isSubmitDisabled"}}
  42. {{action restartServicePopup target="controller"}}>{{t common.save}}</a>
  43. </p>
  44. {{/if}}
  45. {{else}}
  46. <div class="spinner"></div>
  47. {{/if}}
  48. </div>