{% comment %} MD3 outlined field pair for a split phone number (see select.html for the anatomy notes, duplicated here for the same reason single_select_search.html duplicates it: the label/outline must wrap each control individually). The control is a MultiWidget — a country-prefix cannot ellipsis, so a long country name in a shared row hides the number entirely. Optional context: - prefix_label: label for the country-code shell (default "Country code", translated) {% endcomment %} {% load i18n phoxtail_core_tags %}
{{ label|default:field.label }}
{% widget field part=0 class="phx-field__control" htmx=htmx %}
{% widget field part=1 class="phx-field__control" htmx=htmx %} {% if show_label != False and label != "" %} {% endif %}
{% if supporting == "errors" %}
{% for error in field.errors %}{{ error }}{% endfor %}
{% elif supporting == "help" %}
{{ help_text|default:field.help_text }}
{% endif %}