Commit 97c82eb7 authored by Mat's avatar Mat

twig template mainDisplay, mise en place de la partie javascript

parent 63037ca6
{% extends "@Techno/layout.html.twig" %}
{% block body %}
<table id="table-owners">
<thead>
<tr>
......@@ -13,7 +12,20 @@
</thead>
<tbody>
</tbody>
</table>
{% endblock %}
{% block customJS %}
<script type="text/javascript">
let ownersURL = '{{ path('api_owner_read') }}';
let table = document.querySelector("table#table-owners");
let tbody = table.querySelector("tbody");
console.log(ownersURL);
console.log(table);
</script>
{% endblock %}
......@@ -124,6 +124,7 @@
{% block javascripts %}
<script src="{{ asset('js/script.js') }}"></script>
{% block customJS %}{% endblock %}
{% endblock %}
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment