wcs: put authenticating URL in context of form cell (#41469)

This commit is contained in:
Frédéric Péters 2020-04-08 17:01:39 +02:00
parent 028789e17e
commit 4993fc23e5
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -1,5 +1,5 @@
{% block cell-content %}
<div class="wcs-form-{{slug}}"><a href="{{ url }}tryauth">{{ title }}</a>
<div class="wcs-form-{{slug}}"><a href="{{ url }}">{{ title }}</a>
{% if cell.cached_json.description %}
<div class="description">
{{ cell.cached_json.description|safe }}