0001-templates-improve-user-lists-of-forms-markup-53234.patch
combo/apps/wcs/templates/combo/wcs/current_drafts.html | ||
---|---|---|
1 | 1 |
{% load i18n %} |
2 | 2 |
{% block cell-content %} |
3 | 3 |
<h2>{% trans 'Current Drafts' %}</h2> |
4 |
{% if drafts %} |
|
4 | 5 |
{% for slug, forms in current_drafts.items %} |
5 | 6 |
<div class="links-list current-drafts-{{ slug }} current-drafts list-of-forms"> |
6 | 7 |
{% if forms.data %} |
... | ... | |
17 | 18 |
{% endif %} |
18 | 19 |
</div> |
19 | 20 |
{% endfor %} |
20 |
{% if not drafts %}<div class="empty-message"><p>{% trans "There are no current drafts." %}</p></div>{% endif %} |
|
21 | 21 |
{% include "combo/pagination.html" %} |
22 |
{% else %} |
|
23 |
<div class="cell--body"><p class="empty-message">{% trans "There are no current drafts." %}</p></div>{% endif %} |
|
22 | 24 |
{% endblock %} |
combo/apps/wcs/templates/combo/wcs/current_forms.html | ||
---|---|---|
1 | 1 |
{% load i18n %} |
2 | 2 |
{% block cell-content %} |
3 | 3 |
<h2>{% trans 'Current Forms' %}</h2> |
4 |
{% if forms %} |
|
4 | 5 |
{% for slug, forms in current_forms.items %} |
5 | 6 |
<div class="links-list current-forms-{{ slug }} current-forms list-of-forms"> |
6 | 7 |
{% include "combo/wcs/list_of_forms.html" with forms=forms %} |
7 | 8 |
</div> |
8 | 9 |
{% endfor %} |
9 |
{% if not forms %}<div class="empty-message"><p>{% trans "There are no current forms." %}</p></div>{% endif %} |
|
10 | 10 |
{% include "combo/pagination.html" %} |
11 |
{% else %} |
|
12 |
<div class="cell--body"><p class="empty-message">{% trans "There are no current forms." %}</p></div> |
|
13 |
{% endif %} |
|
11 | 14 |
{% endblock %} |
combo/apps/wcs/templates/combo/wcs/user_all_forms.html | ||
---|---|---|
1 | 1 |
{% load i18n %} |
2 | 2 |
{% block cell-content %} |
3 | 3 |
<h2>{% trans 'All Forms' %}</h2> |
4 |
{% if forms %} |
|
4 | 5 |
{% for slug, forms in user_forms.items %} |
5 | 6 |
<div class="links-list user-forms-{{ slug }} user-all-forms list-of-forms"> |
6 | 7 |
{% include "combo/wcs/list_of_forms.html" with forms=forms %} |
7 | 8 |
</div> |
8 | 9 |
{% endfor %} |
9 |
{% if not forms %}<div class="empty-message"><p>{% trans "There are no forms." %}</p></div>{% endif %} |
|
10 | 10 |
{% include "combo/pagination.html" %} |
11 |
{% else %} |
|
12 |
<div class="cell--body"><p class="empty-message">{% trans "There are no forms." %}</p></div> |
|
13 |
{% endif %} |
|
11 | 14 |
{% endblock %} |
combo/apps/wcs/templates/combo/wcs/user_done_forms.html | ||
---|---|---|
1 | 1 |
{% load i18n %} |
2 | 2 |
{% block cell-content %} |
3 | 3 |
<h2>{% trans 'Done Forms' %}</h2> |
4 |
{% if forms %} |
|
4 | 5 |
{% for slug, forms in user_forms.items %} |
5 | 6 |
<div class="links-list user-forms-{{ slug }} list-of-forms"> |
6 | 7 |
{% include "combo/wcs/list_of_forms.html" with forms=forms %} |
7 | 8 |
</div> |
8 | 9 |
{% endfor %} |
9 |
{% if not forms %}<div class="empty-message"><p>{% trans "There are no done forms or they have been removed." %}</p></div>{% endif %} |
|
10 |
{% else %} |
|
11 |
<div class="cell--body"><p class="empty-message">{% trans "There are no done forms or they have been removed." %}</p></div> |
|
12 |
{% endif %} |
|
10 | 13 |
{% include "combo/pagination.html" %} |
11 | 14 |
{% endblock %} |
12 |
- |