{% extends 'base.html' %} {% block bodydata %} data-project-id="{{ project.id }}" data-project-locked="{{ project.islocked }}" data-category-id="{{ category.id }}" data-field-id="{{ field.id }}" {% endblock %} {% block title %} | Project: {{ project.name }} - Category: {{ category.name }} - Field: {{ field.name }} - Settings{% endblock %} {% block main %}
{% include 'snippets/messages.html' %}
Field

{% if project.islocked %}{% endif %} {{ field.name }}

Key{{ field.key }}
Type{{ field.type_name }}
Category{{ category.name }}

Field settings

{% csrf_token %}
{% if field.textfield %}
{% endif %} {% if field.numericfield %}
{% endif %}
{% if field.lookupfield %} {% include 'snippets/lookup_values.html' with field=field.lookupfield %} {% endif %} {% if field.multiplelookupfield %} {% include 'snippets/lookup_values.html' with values=field.multiplelookupfield %} {% endif %}

Be careful!

{% if is_display_field %}

The field {{ field.name }} is set as display field for category {{ field.category.name }}. If you wish to deactivate or delete the field, you have to select another display field in the category settings first.

{% endif %} {% if is_expiry_field %}

The field {{ field.name }} is set as expiry field for category {{ field.category.name }}. If you wish to deactivate or delete the field, you have to select another expiry field in the category settings first.

{% endif %} {% if not is_display_field and not is_expiry_field %}
Make the field inactive

The field will be no longer available for data contribution and data validation.

Make inactive
Make the field active

The field will be available for data contribution and data validation again.

Make active
{% if not project.islocked %}
Delete field

Deleting a field can not be undone.

Delete this field
{% endif %}
{% endif %}
{% endblock %} {% block modals %} {% endblock %} {% block libraries %} {% endblock %}