{% import 'macros/form.html' as form %} {% import 'actor_registry/snippets/help_texts.html' as ht with context %} {% set compact = compact|default(false) %} {% macro help_text() %} {%- snippet 'scheming/form_snippets/help_text.html', field=field -%} {% endmacro %} {% macro contact_option(contact, selected_values) -%} {%- endmacro %} {% asset 'actor_registry/quick-create' %}
{%- call form.input_block( "field-" + field.field_name, label=h.scheming_language_text(field.label), classes=field.classes if 'classes' in field else ['control-full'], error=errors[field.field_name], is_required=h.scheming_field_required(field), extra_html='' if compact else help_text() ) -%} {%- set groups = h.contactpoints_grouped_choices() -%} {%- set selected_values = data.get(field.field_name, []) -%} {%- set unavailable = h.contactpoints_unavailable(selected_values) -%} {%- for item in unavailable -%}

{% if item.state == 'inactive' %}{{ _('“{name}” is inactive. It stays on this dataset, but it can no longer be chosen; replace it with an active contact point when you can.').format(name=item.name) }}{% else %}{{ _('A contact point that no longer exists is selected. Remove it from the list before you save.') }}{% endif %}

{%- endfor -%}

{{ _('Select a contact point to see its details here.') }}

{% if c.userobj %} {% endif %} {%- endcall -%}