{% load i18n %} {% if not style.editable and field.write_only %} {% elif field.name == "name" and not style.editable %} {% else%}
{% if style.hide_label %} {% else %} {% if field.label %} {% endif %} {% endif %} {% if style.editable or style.interactive %}
{{ field.value|json_script:style.value_id }} {% if style.endpoint or style.detail_endpoint %}
{% endif %} {% else %}
{{field.value}}
{% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
{% endif %}