2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 13:56:30 +00:00

Render filter options as a template

- This allows the values to be seen by the translation layer
- Also means that whenever a new option is added, it will be automatically available to the front-end!
This commit is contained in:
Oliver Walters
2020-04-11 13:24:23 +10:00
parent 57c5d6c97a
commit c1b59eeaab
5 changed files with 78 additions and 46 deletions

View File

@ -1,4 +1,5 @@
{% load static %}
{% load i18n %}
<!DOCTYPE html>
<html lang="en">
@ -116,7 +117,10 @@ InvenTree
{% block js_load %}
{% endblock %}
{% include "table_filters.html" %}
<script type='text/javascript'>
$(document).ready(function () {
{% block js_ready %}
{% endblock %}
@ -125,6 +129,7 @@ $(document).ready(function () {
showCachedAlerts();
});
</script>
{% block js %}