templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>k7 {% block title %}{% endblock %}</title>
  6. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  7. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
  8. <script type="text/javascript" src="{{ asset('js/jeasyui/jquery.min.js') }}"></script>
  9. <link rel="stylesheet" type="text/css" href="{{ asset('css/miniclick.css') }}">
  10. {% block stylesheets %}{% endblock %}
  11. </head>
  12. <body>
  13. {% for type, flash_messages in app.session.flashBag.all %}
  14. {% for msg in flash_messages %}
  15. <div class="alert alert-{{ type }}">
  16. {{ msg|raw }}
  17. </div>
  18. {% endfor %}
  19. {% endfor %}
  20. {% block body %}{% endblock %}
  21. {% block javascripts %}{% endblock %}
  22. {% if (do_datagrid_reload is defined) or (do_close_modale is defined) %}
  23. <div id="app-config"
  24. data-datagrid-reload="{{ do_datagrid_reload is defined ? '1' : '0' }}"
  25. data-close-modale="{{ do_close_modale is defined ? '1' : '0' }}">
  26. </div>
  27. <script>
  28. $(function() {
  29. const $config = $('div#app-config');
  30. // init by twig
  31. const doDatagridReload = $config.data('datagrid-reload') == 1;
  32. const doCloseModale = $config.data('close-modale') == 1;
  33. if (
  34. doDatagridReload &&
  35. window.parent &&
  36. typeof window.parent.reloadData === 'function'
  37. ) {
  38. window.parent.reloadData();
  39. }
  40. if (
  41. doCloseModale &&
  42. window.parent &&
  43. window.parent.$
  44. ) {
  45. const modal = window.parent.$('#modale_window');
  46. if (
  47. modal.length &&
  48. typeof modal.window === 'function'
  49. ) {
  50. setTimeout(function () {modal.window('close');}, 1500);
  51. }
  52. }
  53. }) ;
  54. </script>
  55. {% endif %}
  56. </body>
  57. </html>