diff --git a/sapl/base/templatetags/common_tags.py b/sapl/base/templatetags/common_tags.py index 4d66190f2..30db1a92f 100644 --- a/sapl/base/templatetags/common_tags.py +++ b/sapl/base/templatetags/common_tags.py @@ -118,3 +118,11 @@ def ultima_filiacao(value): return ultima_filiacao.partido else: return None + + +@register.filter +def get_config_not_exists(user): + if not AppConfig.objects.all().exists(): + return True + else: + return False diff --git a/sapl/templates/base/appconfig_list.html b/sapl/templates/base/appconfig_list.html new file mode 100644 index 000000000..7bfdfb225 --- /dev/null +++ b/sapl/templates/base/appconfig_list.html @@ -0,0 +1,49 @@ +{% extends "crud/list.html" %} +{% load i18n %} +{% load common_tags %} + +
{{ NO_ENTRIES_MSG }}
+{% else %} +{{ name }} | + {% endfor %} +
---|
+ {% if href %} + {{ value }} + {% else %} + {{ value|safe }} + {% endif %} + | + {% endfor %} +