wcs: put authenticating URL in context of form cell (#41469)
This commit is contained in:
parent
028789e17e
commit
4993fc23e5
|
@ -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:
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue