15 lines
641 B
HTML
15 lines
641 B
HTML
{% extends "qommon/forms/widget.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block widget-attrs %}
|
|
{{ block.super }} data-block-row="element{{ widget.index }}"
|
|
{% endblock %}
|
|
|
|
{% block widget-content %}
|
|
{% for subwidget in widget.get_widgets %}
|
|
{% if widget.readonly and not subwidget.field.include_in_validation_page %}<div style="display: none">{% endif %}
|
|
{{ subwidget.render|safe }}
|
|
{% if widget.readonly and not subwidget.field.include_in_validation_page %}</div>{% endif %}
|
|
{% endfor %}
|
|
{% if not widget.readonly and widget.remove_button %}<button class="remove-button" title="{% trans "Remove" %}"><span>-</span></button>{% endif %} {% endblock %}
|