mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-31 00:04:40 +02:00
Added a basic show category parts page with datatable
This commit is contained in:
parent
8c8bbbbd86
commit
ba33399b20
20 changed files with 11091 additions and 19 deletions
|
@ -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>
|
||||
|
|
15
templates/parts_list.html.twig
Normal file
15
templates/parts_list.html.twig
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue