{% extends "base.html" %} {% from "components/ui.html" import page_header %} {% block content %} {% set breadcrumbs = [ {'text': _('Admin'), 'url': url_for('admin.admin_dashboard')}, {'text': _('Link Templates')} ] %} {{ page_header( icon_class='fas fa-link', title_text=_('Link Templates'), subtitle_text=_('Manage URL templates for client custom fields'), breadcrumbs=breadcrumbs, actions_html='' + _('Create Link Template') + '' ) }}
{% if templates %}
{% for template in templates %} {% endfor %}
{{ _('Name') }} {{ _('URL Template') }} {{ _('Field Key') }} {{ _('Icon') }} {{ _('Order') }} {{ _('Status') }} {{ _('Actions') }}
{{ template.name }}
{% if template.description %}
{{ template.description }}
{% endif %}
{{ template.url_template[:50] }}{% if template.url_template|length > 50 %}...{% endif %} {{ template.field_key }} {% if template.icon %} {% else %} {{ _('None') }} {% endif %} {{ template.order }} {% if template.is_active %} {{ _('Active') }} {% else %} {{ _('Inactive') }} {% endif %}
{{ _('Edit') }}
{% else %}

{{ _('No link templates found.') }}

{{ _('Create Link Template') }}
{% endif %}

{{ _('How Link Templates Work') }}

{{ _('Link templates allow you to create quick links to external systems (like ERP systems) using values from client custom fields.') }}

{{ _('Example:') }}

{{ _('URL Template Format:') }} {{ _('Use {value} as a placeholder for the custom field value.') }}

{% endblock %}