{% extends "custom_field_text_i18n.tpl.html" %}
<!-- $Id: custom_field_q_txt_i18n.tpl.html,v 1.1.2.2 2026/03/16 13:14:16 rtigero Exp $ -->

{% block i18n_input %}
<select id="{{ custom_field.NAME }}_qualification_{{ loop.counter0 }}" name="{{ custom_field.NAME }}_qualifications[{{ loop.counter0 }}]" data-form-name="{{ custom_field.NAME }}" class="pmb-input" aria-describedby="pmb-input-{{ custom_field.NAME }}-desc-error">
    {% for option in custom_field.ITEMS %}
        <option value="{{ option.value }}" {% if option.value == value.qualification %}selected{% endif %}>{{ option.label }}</option>
    {% endfor %}
</select>
<input id="{{ custom_field.NAME }}_{{ loop.counter0 }}" type="text" size="50" maxlength="255" name="{{ custom_field.NAME }}[{{ loop.counter0 }}]" data-form-name="{{ custom_field.NAME }}_" value="{{ value.value }}" class="pmb-input" aria-describedby="pmb-input-{{ custom_field.NAME }}-desc-error">
{% endblock %}

{% block add_additional_elements %}
    var qualification = document.getElementById(field_name+'_qualification_'+(count-1)).cloneNode(true);
    qualification.setAttribute('id', field_name + '_qualification_' + count);
    qualification.setAttribute('name',field_name+'_qualifications[' + count + ']');
    document.getElementById('div_' + field_name).appendChild(qualification);
{% endblock %}