{% extends 'base.html.twig' %} {% block body %}

{{scrum.name}}

{% endblock %} {% block localjavascript %} $(document).ready(function() { $("#issue").select2(); $("#block").select2(); }); function lock() { console.log($("#issue").val()); console.log($("#block").val()); $.ajax({ method: "POST", url: "{{path("app_scrumissue_block")}}", data: { id:$("#issue").val(), issueblocked:$("#block").val(), }, success: function(data) { } }); } function unlock() { $.ajax({ method: "POST", url: "{{path("app_scrumissue_unblock")}}", data: { id:$("#issue").val(), }, success: function(data) { } }); } {% endblock %}