forked from CGM_Public/pretix_original
Prevent 65ecdc184 clashing with forms that have a field called template
This commit is contained in:
@@ -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" %}
|
||||||
|
|||||||
Reference in New Issue
Block a user