{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': _('Admin'), 'url': url_for('admin.admin_dashboard')}, {'text': _('Custom Field Definitions')} ] %} {{ page_header( icon_class='fas fa-tags', title_text=_('Custom Field Definitions'), subtitle_text=_('Manage global custom field definitions for clients'), breadcrumbs=breadcrumbs, actions_html='' + _('Create Custom Field') + '' ) }}
{% if definitions %}
{% for definition in definitions %} {% endfor %}
{{ _('Field Key') }} {{ _('Label') }} {{ _('Mandatory') }} {{ _('Order') }} {{ _('Status') }} {{ _('Actions') }}
{{ definition.field_key }}
{{ definition.label }}
{% if definition.description %}
{{ definition.description }}
{% endif %}
{% if definition.is_mandatory %} {{ _('Required') }} {% else %} {{ _('Optional') }} {% endif %} {{ definition.order }} {% if definition.is_active %} {{ _('Active') }} {% else %} {{ _('Inactive') }} {% endif %}
{{ _('Edit') }}
{% else %}

{{ _('No custom field definitions found.') }}

{{ _('Create Custom Field') }}
{% endif %}

{{ _('How Custom Field Definitions Work') }}

{{ _('Custom field definitions allow you to create global fields that can be used across all clients. This eliminates the need to recreate the same custom fields for each client.') }}

{{ _('Features:') }}

{{ _('Example:') }}

{% endblock %}