{% extends 'generic/object.html' %} {% load helpers %} {% load plugins %} {% load i18n %} {% block content %}

{% trans "Custom Field" %}

{% if object.choice_set %} {% endif %} {% if object.related_object_filter %} {% else %} {% endif %}
{% trans "Name" %} {{ object.name }}
Type {{ object.get_type_display }} {% if object.related_object_type %} ({{ object.related_object_type.model|bettertitle }}) {% endif %}
{% trans "Label" %} {{ object.label|placeholder }}
{% trans "Group Name" %} {{ object.group_name|placeholder }}
{% trans "Description" %} {{ object.description|markdown|placeholder }}
{% trans "Required" %} {% checkmark object.required %}
{% trans "Must be Unique" %} {% checkmark object.unique %}
{% trans "Cloneable" %} {% checkmark object.is_cloneable %}
{% trans "Choice Set" %} {{ object.choice_set|linkify }} ({{ object.choice_set.choices|length }} choices)
{% trans "Default Value" %} {{ object.default }}
{% trans "Related object filter" %}
{{ object.related_object_filter|json }}
{{ ''|placeholder }}

{% trans "Behavior" %}

{% trans "Search Weight" %} {% if object.search_weight %} {{ object.search_weight }} {% else %} {% trans "Disabled" %} {% endif %}
{% trans "Filter Logic" %} {{ object.get_filter_logic_display }}
{% trans "Display Weight" %} {{ object.weight }}
{% trans "UI Visible" %} {{ object.get_ui_visible_display }}
{% trans "UI Editable" %} {{ object.get_ui_editable_display }}
{% include 'inc/panels/comments.html' %} {% plugin_left_page object %}

{% trans "Object Types" %}

{% for ct in object.object_types.all %} {% endfor %}
{{ ct }}

{% trans "Validation Rules" %}

{% trans "Minimum Value" %} {{ object.validation_minimum|placeholder }}
{% trans "Maximum Value" %} {{ object.validation_maximum|placeholder }}
{% trans "Regular Expression" %} {% if object.validation_regex %} {{ object.validation_regex }} {% else %} {{ ''|placeholder }} {% endif %}
{% plugin_right_page object %}
{% plugin_full_width_page object %}
{% endblock %}