diff --git a/iogt/templates/wagtailforms/index.html b/iogt/templates/wagtailforms/index.html new file mode 100644 index 000000000..599087081 --- /dev/null +++ b/iogt/templates/wagtailforms/index.html @@ -0,0 +1,66 @@ +{% extends "wagtailadmin/generic/index.html" %} +{% load i18n wagtailadmin_tags wagtailcore_tags static %} +{% block content %} + {% trans "Forms" as page_title %} + +
+ {% if form_pages %} + + + + + + + + + + + + {% for fp in form_pages %} + + + + + + + + {% endfor %} + +
{% trans "Title" %}{% trans "Parent" %}{% trans "Origin" %}{% trans "Status" %}{% trans "Action" %}
+ + {{ fp.title }} + + + {% if fp.get_parent %} + + {{ fp.get_parent.title }} + + {% else %} + — + {% endif %} + + + + {{ fp.content_type.name|capfirst }} ({{ fp.content_type.app_label }}.{{ fp.content_type.model }}) + + + + {% if fp.live %} + {% trans "LIVE" %} + {% else %} + {% trans "Draft" %} + {% endif %} + + + {% trans "Generate Dashboard" %} + +
+ {% else %} +
+

{% trans "No forms found." %}

+
+ {% endif %} +
+{% endblock %} diff --git a/iogt/templates/wagtailforms/list_forms.html b/iogt/templates/wagtailforms/list_forms.html deleted file mode 100644 index 42b9ec869..000000000 --- a/iogt/templates/wagtailforms/list_forms.html +++ /dev/null @@ -1,27 +0,0 @@ -{% load i18n %} - - - - - - - - - - - - {% for fp in form_pages %} - - - - - - {% endfor %} - -
{% trans "Title" %}{% trans "Origin" %}Action
- - - {{ fp.content_type.name |capfirst }} ({{ fp.content_type.app_label }}.{{ fp.content_type.model }}) - - -