Show all available variables dynamically (#1315)

* Show all available variables dynamically

* Ran formatter
This commit is contained in:
indykoning
2026-07-28 14:17:12 +02:00
committed by GitHub
parent d68a274ca4
commit ce053be951

View File

@@ -386,7 +386,11 @@ class GrampsjsFormExternalSearch extends GrampsjsObjectForm {
${this._(
'Enter a search URL with template variables for person data. Available variables:'
)}
<strong>{{name_given}}, {{name_surname}}, {{place_name}}</strong>
<strong
>${Object.keys(this.data)
.map(key => '{{' + key + '}}')
.join(', ')}</strong
>
</div>
<md-outlined-text-field
id="custom-name"