mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
update logic to adapt to altnames
This commit is contained in:
@@ -66,21 +66,29 @@
|
||||
<div class="row mb-1" style="display:flex;">
|
||||
{{ form_label(form.lastName, 'Last name'|trans) }}
|
||||
<div class="col-sm-8">
|
||||
{{ form_widget(form.lastName, { 'id' : 'lastname-field'}) }}
|
||||
{{ form_widget(form.lastName, {'attr': {'data-suggest-transform': 'uppercase_all' } }) }}
|
||||
</div>
|
||||
</div>
|
||||
<div id="suggest-lastname" class="col-sm-8" style="margin-left: auto;"></div>
|
||||
<div data-suggest-container="{{ form.lastName.vars.full_name|e('html_attr') }}" class="col-sm-8" style="margin-left: auto;"></div>
|
||||
|
||||
<div class="row mb-1" style="display:flex;">
|
||||
{{ form_label(form.firstName, 'First name'|trans) }}
|
||||
<div class="col-sm-8">
|
||||
{{ form_widget(form.firstName, { 'id' : 'firstname-field' }) }}
|
||||
{{ form_widget(form.firstName, {'attr': {'data-suggest-transform': 'uppercase_first_letter' } }) }}
|
||||
</div>
|
||||
</div>
|
||||
<div id="suggest-firstname" class="col-sm-8" style="margin-left: auto;"></div>
|
||||
<div data-suggest-container="{{ form.firstName.vars.full_name|e('html_attr') }}" class="col-sm-8" style="margin-left: auto;"></div>
|
||||
|
||||
{% if form.altNames is defined %}
|
||||
{{ form_widget(form.altNames) }}
|
||||
{% for altName in form.altNames %}
|
||||
<div class="row mb-1" style="display:flex;">
|
||||
{{ form_label(altName) }}
|
||||
<div class="col-sm-8">
|
||||
{{ form_widget(altName, {'attr': {'data-suggest-transform': 'uppercase_all' } }) }}
|
||||
</div>
|
||||
</div>
|
||||
<div data-suggest-container="{{ altName.vars.full_name|e('html_attr') }}" class="col-sm-8" style="margin-left: auto;"></div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{{ form_row(form.gender, { 'label' : 'Gender'|trans }) }}
|
||||
|
Reference in New Issue
Block a user