Prevent 65ecdc184 clashing with forms that have a field called template

This commit is contained in:
Raphael Michel
2023-07-26 19:18:53 +02:00
parent d7e70fd0b9
commit 16691ca2f6

View File

@@ -187,7 +187,7 @@
{% endif %} {% endif %}
{% for f in plugin_forms %} {% for f in plugin_forms %}
{% if f.is_layouts and not f.title %} {% if f.is_layouts and not f.title %}
{% if f.template %} {% if f.template and not "template" in f.fields %}
{% include f.template with form=f %} {% include f.template with form=f %}
{% else %} {% else %}
{% bootstrap_form f layout="control" %} {% bootstrap_form f layout="control" %}
@@ -261,7 +261,7 @@
{% bootstrap_field form.show_quota_left layout="control" %} {% bootstrap_field form.show_quota_left layout="control" %}
{% for f in plugin_forms %} {% for f in plugin_forms %}
{% if not f.is_layouts and not f.title %} {% if not f.is_layouts and not f.title %}
{% if f.template %} {% if f.template and not "template" in f.fields %}
{% include f.template with form=f %} {% include f.template with form=f %}
{% else %} {% else %}
{% bootstrap_form f layout="control" %} {% bootstrap_form f layout="control" %}
@@ -273,7 +273,7 @@
{% if not f.is_layouts and f.title %} {% if not f.is_layouts and f.title %}
<fieldset> <fieldset>
<legend>{{ f.title }}</legend> <legend>{{ f.title }}</legend>
{% if f.template %} {% if f.template and not "template" in f.fields %}
{% include f.template with form=f %} {% include f.template with form=f %}
{% else %} {% else %}
{% bootstrap_form f layout="control" %} {% bootstrap_form f layout="control" %}