webseite-grav/plugins/form/templates/forms/fields/display/display.html.twig

18 lines
493 B
Twig

{% extends "forms/field.html.twig" %}
{% if field.file %}
{% set content = read_file(field.file) %}
{% else %}
{% set content = field.content %}
{% endif %}
{% block input %}
<div class="form-display-wrapper {{ field.size }} {{ field.classes }}" {% if field.id is defined %}id="{{ field.id|e }}" {% endif %}>
{% if field.markdown %}
{{ content|t|markdown|raw }}
{% else %}
{{ content|t|raw }}
{% endif %}
</div>
{% endblock %}