Added a basic show category parts page with datatable

This commit is contained in:
Jan Böhmer 2019-03-05 23:52:45 +01:00
parent 8c8bbbbd86
commit ba33399b20
20 changed files with 11091 additions and 19 deletions

View file

@ -251,6 +251,13 @@
{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
<script src="{{ asset('helper/datatables.js') }}"></script>
{% endblock %}
{% block scripts %}
{% endblock %}
</body>
</html>

View file

@ -0,0 +1,15 @@
{% extends "base.html.twig" %}
{% block content %}
<div id="presidents">Loading...</div>
{% endblock %}
{% block scripts %}
<script>
$( function() {
$('#presidents').initDataTables({{ datatable_settings(datatable) }});
});
</script>
{% endblock %}