Projet

Général

Profil

0001-wcs-give-current-page-as-return-url-of-backoffice-su.patch

Frédéric Péters, 18 novembre 2018 17:29

Télécharger (1,34 ko)

Voir les différences:

Subject: [PATCH] wcs: give current page as return url of backoffice
 submissions (#28115)

 combo/apps/wcs/templates/combo/wcs/backoffice_submission.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
combo/apps/wcs/templates/combo/wcs/backoffice_submission.html
1
{% load i18n %}
1
{% load combo i18n %}
2 2
{% block cell-content %}
3 3
<h2>{% trans "New Form" %}</h2>
4 4
{% for site_formdefs in all_formdefs.values %}
......
9 9
  {% for category_formdefs in categories_formdefs %}
10 10
    <li><h4>{{ category_formdefs.grouper }}</h4></li>
11 11
    {% for formdef in category_formdefs.list|dictsort:"title" %}
12
      <li><a href="{{formdef.backoffice_submission_url}}?NameID={{name_id}}">{{formdef.title}}</a></li>
12
      <li><a href="{{formdef.backoffice_submission_url}}?NameID={{name_id}}&ReturnURL={% page_absolute_url cell.page %}">{{formdef.title}}</a></li>
13 13
    {% endfor %}
14 14
  {% endfor %}
15 15
</ul>
16
-