backoffice: select varname on click in inspect page (#20686) #1073

Merged
fpeters merged 1 commits from wip/20686-select-varname-inspect into main 2024-01-29 12:11:24 +01:00
1 changed files with 2 additions and 2 deletions

View File

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