From 4993fc23e56089c78724c8db38f71ea253d707fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 8 Apr 2020 17:01:39 +0200 Subject: [PATCH] wcs: put authenticating URL in context of form cell (#41469) --- combo/apps/wcs/models.py | 2 +- combo/apps/wcs/templates/combo/wcs/form.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/combo/apps/wcs/models.py b/combo/apps/wcs/models.py index 54aa991f..a49ce727 100644 --- a/combo/apps/wcs/models.py +++ b/combo/apps/wcs/models.py @@ -116,7 +116,7 @@ class WcsFormCell(CellBase): context = super(WcsFormCell, self).get_cell_extra_context(context) context['slug'] = self.formdef_reference.split(':')[-1] context['title'] = self.cached_title - context['url'] = self.cached_url + context['url'] = self.cached_url + 'tryauth' if self.cached_json: for attribute in self.cached_json: if not attribute in context: diff --git a/combo/apps/wcs/templates/combo/wcs/form.html b/combo/apps/wcs/templates/combo/wcs/form.html index 4434ed1a..97be36b0 100644 --- a/combo/apps/wcs/templates/combo/wcs/form.html +++ b/combo/apps/wcs/templates/combo/wcs/form.html @@ -1,5 +1,5 @@ {% block cell-content %} -
{{ title }} +
{{ title }} {% if cell.cached_json.description %}
{{ cell.cached_json.description|safe }}