Modal.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!--
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. -->
  17. <div class="modal-dialog {{mainClass}}{{modal-full-screen}} " style="width:{{width}}" role="document">
  18. <div class="modal-content">
  19. {{#if title}}
  20. <div class="modal-header">
  21. <a class="close">&times;</a>
  22. {{#if headerButtons}}
  23. <div class="header-button">
  24. {{#each headerButtons}}
  25. <button type="button" data-index={{@index}} {{#if this.title}} title="{{this.title}}" {{/if}} class="btn {{this.btnClass}}">{{this.text}}</button>
  26. {{/each}}
  27. </div>
  28. {{/if}}
  29. <h4 class="modal-title">
  30. {{#if titleHtml}}
  31. {{{tt title}}}
  32. {{else}}
  33. {{tt title}}
  34. {{/if}}
  35. </h4>
  36. </div>
  37. {{/if}} {{#if contentWithFooter}} {{else}}
  38. <div class="modal-body">{{#if contentHtml}} {{{content}}} {{else}} {{content}} {{/if}}
  39. </div>
  40. {{#if showFooter}}
  41. <div class="modal-footer">
  42. {{#if buttons}} {{#each buttons}}
  43. <button type="button" {{#if this.title}} title="{{this.title}}" {{/if}} class="btn {{this.btnClass}}">{{this.text}}</button>
  44. {{/each}} {{else}} {{#if allowCancel}} {{#if cancelText}}
  45. <button type="button" class="btn btn-action cancel">{{tt cancelText}}</button>
  46. {{/if}} {{/if}}
  47. <button type="button" class="btn btn-atlas ok">{{tt okText}}</button>
  48. {{/if}}
  49. </div>
  50. {{/if}} {{/if}}
  51. </div>
  52. </div>