From 562c9d036c7c72bfbcd60b07d9cb14fd0e87b350 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 9 Nov 2022 08:06:43 +0100 Subject: [PATCH] toulouse-2022: use a unique sorted list for current forms (#71162) --- .../combo/wcs/current_forms.html | 12 +++++++++++ .../combo/wcs/list_of_forms.html | 21 +++++++++++++++++++ .../combo/wcs/user_all_forms.html | 12 +++++++++++ .../combo/wcs/user_done_forms.html | 12 +++++++++++ 4 files changed, 57 insertions(+) create mode 100644 templates/variants/toulouse-2022/combo/wcs/current_forms.html create mode 100644 templates/variants/toulouse-2022/combo/wcs/list_of_forms.html create mode 100644 templates/variants/toulouse-2022/combo/wcs/user_all_forms.html create mode 100644 templates/variants/toulouse-2022/combo/wcs/user_done_forms.html diff --git a/templates/variants/toulouse-2022/combo/wcs/current_forms.html b/templates/variants/toulouse-2022/combo/wcs/current_forms.html new file mode 100644 index 00000000..51faba43 --- /dev/null +++ b/templates/variants/toulouse-2022/combo/wcs/current_forms.html @@ -0,0 +1,12 @@ +{% load i18n %}{% comment %}overload to show an unique sorted list of forms {% endcomment %} +{% block cell-content %} +

{{ cell.custom_title|default:_('Current Forms') }}

+ {% if forms %} + + {% include "combo/pagination.html" %} + {% else %} +

{% trans "There are no current forms." %}

+ {% endif %} +{% endblock %} diff --git a/templates/variants/toulouse-2022/combo/wcs/list_of_forms.html b/templates/variants/toulouse-2022/combo/wcs/list_of_forms.html new file mode 100644 index 00000000..0f258203 --- /dev/null +++ b/templates/variants/toulouse-2022/combo/wcs/list_of_forms.html @@ -0,0 +1,21 @@ +{% load combo %}{% comment %}overload to show an unique sorted list of forms, forms.data is replaced by forms {% endcomment %} +{% block cell-content %} + {% if forms %} + + {% endif %} +{% endblock %} diff --git a/templates/variants/toulouse-2022/combo/wcs/user_all_forms.html b/templates/variants/toulouse-2022/combo/wcs/user_all_forms.html new file mode 100644 index 00000000..81372c61 --- /dev/null +++ b/templates/variants/toulouse-2022/combo/wcs/user_all_forms.html @@ -0,0 +1,12 @@ +{% load i18n %}{% comment %}overload to show an unique sorted list of forms {% endcomment %} +{% block cell-content %} +

{{ cell.custom_title|default:_('All Forms') }}

+ {% if forms %} + + {% include "combo/pagination.html" %} + {% else %} +

{% trans "There are no forms." %}

+ {% endif %} +{% endblock %} diff --git a/templates/variants/toulouse-2022/combo/wcs/user_done_forms.html b/templates/variants/toulouse-2022/combo/wcs/user_done_forms.html new file mode 100644 index 00000000..10a180e4 --- /dev/null +++ b/templates/variants/toulouse-2022/combo/wcs/user_done_forms.html @@ -0,0 +1,12 @@ +{% load i18n %}{% comment %}overload to show an unique sorted list of forms {% endcomment %} +{% block cell-content %} +

{{ cell.custom_title|default:_('Done Forms') }}

+ {% if forms %} + + {% include "combo/pagination.html" %} + {% else %} +

{% trans "There are no done forms or they have been removed." %}

+ {% endif %} +{% endblock %} -- 2.37.2