backoffice: select varname on click in inspect page (#20686) #1073
|
@ -3979,7 +3979,7 @@ class FormBackOfficeStatusPage(FormStatusPage):
|
|||
'<div class="value"><a class="inspect-expand-variable" href="?expand=%s">(%s)</a>'
|
||||
) % (expand_value, _('expand this variable'))
|
||||
elif isinstance(v, LazyFieldVar):
|
||||
r += htmltext('<li><code title="%s">%s') % (k, breaking_k)
|
||||
r += htmltext('<li><code class="varname" title="%s">%s') % (k, breaking_k)
|
||||
if v._formdata == self.filled:
|
||||
field_url = None
|
||||
if v._field.id.startswith('bo'):
|
||||
|
@ -4024,7 +4024,7 @@ class FormBackOfficeStatusPage(FormStatusPage):
|
|||
# to get to the values).
|
||||
if all(CompatibilityNamesDict.valid_key_regex.match(k) for k in v):
|
||||
continue
|
||||
r += htmltext('<li><code title="%s">%s</code>') % (k, breaking_k)
|
||||
r += htmltext('<li><code class="varname" title="%s">%s</code>') % (k, breaking_k)
|
||||
if isinstance(v, list):
|
||||
# custom behaviour for lists so strings within can be displayed
|
||||
# with a dedicated repr function.
|
||||
|
|
Loading…
Reference in New Issue