templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>{% block title %}Welcome!{% endblock %}</title>
  6.     <link rel="icon"
  7.           href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
  8.     {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  9.     {% block stylesheets %}
  10.         {{ encore_entry_link_tags('app') }}
  11.     {% endblock %}
  12.     {% block javascripts %}
  13.         {{ encore_entry_script_tags('app') }}
  14.     {% endblock %}
  15.     <!-- CSS only -->
  16.     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"
  17.           integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
  18.     <!-- JavaScript Bundle with Popper -->
  19.     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"
  20.             integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4"
  21.             crossorigin="anonymous"></script>
  22.     <link href="{{ asset('custom.css') }}" rel="stylesheet"/>
  23. </head>
  24. <body class="container">
  25. {% include "_MENU.html.twig" %}
  26. {% block body %}{% endblock %}
  27. <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  28. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  29. <script>
  30.     $(function () {
  31.         $("#sortableList").sortable({
  32.             update: function (event, ui) {
  33.                 var hash = $(this).sortable('serialize');
  34.                 $.ajax({
  35.                     url : "{{ path('app_admin_test') }}",
  36.                     type : "post",
  37.                     data : hash,
  38.                     success: function(feedback){ console.log(feedback) }
  39.                 });
  40.             }
  41.         });
  42.     });
  43. </script>
  44. </body>
  45. </html>