selectCreateConfigGroup.hbs 2.7 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 id="config-group-select-create-dialog">
  19. <div class="alert alert-info">
  20. {{view.parentView.subTitle}}
  21. </div>
  22. <div class="text-warning">
  23. {{view.parentView.warningMessage}}
  24. </div>
  25. <label class="radio">
  26. {{view view.selectConfigGroupRadioButton}}
  27. <span {{bindAttr class="view.parentView.hasExistedGroups::message"}}>{{view.parentView.selectExistingGroupLabel}}</span>
  28. </label>
  29. {{#if view.parentView.availableConfigGroups.length}}
  30. <div class="select-create-config-group-div">
  31. <span class="btn-group">
  32. <button class="btn" {{bindAttr disabled="view.parentView.optionCreateConfigGroup"}}>{{view.parentView.selectedConfigGroup.name}}</button>
  33. <button class="btn dropdown-toggle" data-toggle="dropdown" {{bindAttr disabled="view.parentView.optionCreateConfigGroup"}}>
  34. <span class="caret"></span>
  35. </button>
  36. <ul class="dropdown-menu">
  37. <!-- available config group menu links -->
  38. {{#each configGroup in view.parentView.availableConfigGroups}}
  39. <li>
  40. <a href="#" {{action "doSelectConfigGroup" configGroup target="view.parentView"}}>
  41. {{configGroup.name}}
  42. </a>
  43. </li>
  44. {{/each}}
  45. </ul>
  46. </span>
  47. <div class="message">{{t config.group.selection.dialog.option.select.msg}}</div>
  48. </div>
  49. {{else}}
  50. <div class="select-create-config-group-div">
  51. <div class="alert alert-block">{{view.parentView.noGroups}}</div>
  52. </div>
  53. {{/if}}
  54. <label class="radio">
  55. {{view view.createConfigGroupRadioButton}}
  56. {{view.parentView.createNewGroupLabel}}
  57. </label>
  58. <div class="select-create-config-group-div">
  59. {{view Ember.TextField valueBinding="view.parentView.newConfigGroupName"
  60. disabledBinding="view.parentView.optionSelectConfigGroup" maxlength="255" class="span5"}}
  61. <div class="message">{{view.parentView.createNewGroupDescription}}</div>
  62. </div>
  63. </div>