templates/layout/_mdl-modal.html.twig line 1

Open in your IDE?
  1. {#<div class="modal fade bd-example-modal-lg" id="mdl_default_modal" tabindex="-1" role="dialog"#}
  2. {#     aria-labelledby="exampleModalLongTitle"#}
  3. {#     aria-hidden="true">#}
  4. {#    <div class="modal-dialog modal-lg" role="document">#}
  5. {#        <div class="modal-content">#}
  6. {#            <div class="modal-header">#}
  7. {#                <h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5>#}
  8. {#                <button type="button" class="close" data-dismiss="modal" aria-label="Close">#}
  9. {#                    <span aria-hidden="true">&times;</span>#}
  10. {#                </button>#}
  11. {#            </div>#}
  12. {#            <div class="modal-body">#}
  13. {#                ...#}
  14. {#            </div>#}
  15. {#            <div class="modal-footer">#}
  16. {#                <button type="button" class="btn btn-secondary mdl_close" data-dismiss="modal">Хаах</button>#}
  17. {#                <button type="button" class="btn btn-primary mdl_submit" onclick="return mdlModal.proceed()">#}
  18. {#                    ХАДГАЛАХ#}
  19. {#                </button>#}
  20. {#            </div>#}
  21. {#        </div>#}
  22. {#    </div>#}
  23. {#</div>#}
  24. <div id="mdl_default_modal" class="modal" tabindex="-1">
  25.     <div class="modal-dialog modal-xl modal-dialog-centered">
  26.         <div class="modal-content">
  27.             <div class="modal-header">
  28.                 <h5 class="modal-title">Modal title</h5>
  29.                 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  30.                     <span aria-hidden="true">&times;</span>
  31.                 </button>
  32. {#                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">x</button>#}
  33.             </div>
  34.             <div class="modal-body">
  35.                 <p>Modal body text goes here.</p>
  36.             </div>
  37.         </div>
  38.     </div>
  39. </div>
  40. <script src="{{ asset('asset/mdl/mdl-modal.js') }}" type="text/javascript"></script>
  41. <script type="text/javascript">
  42.     var mdlModal;
  43.     var loader = $('.preloader');
  44.     $(document).ready(function () {
  45.         mdlModal = new MdlModal();
  46.         mdlModal.init({
  47.             modalId: "mdl_default_modal",
  48.             loader: loader,
  49.             responseHandler: function (response) {
  50.                 processResponse(response);
  51.             }
  52.         });
  53.     });
  54.     function processResponse(response) {
  55.         console.log(response);
  56.     }
  57. </script>