Skip to content

Commit

Permalink
Fix usages of field_as_li.html
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Nov 14, 2023
1 parent d574ae0 commit 9886a40
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<ul class="fields">
{% block visible_fields %}
{% for field in form.visible_fields %}
{% include "wagtailadmin/shared/field_as_li.html" %}
<li>{% include "wagtailadmin/shared/field.html" %}</li>
{% endfor %}
{% endblock %}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h3>{{ component.heading }}</h3>

<ul class="fields component-form__fields">
{% for field in component_form.visible_fields %}
{% include "wagtailadmin/shared/field_as_li.html" with li_classes="component-form__fieldname-"|add:field.name %}
<li class="component-form__fieldname-{{ field.name }}">{% include "wagtailadmin/shared/field.html" %}</li>
{% endfor %}

{% for field in component_form.hidden_fields %}{{ field }}{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ul class="fields">
{% block visible_fields %}
{% for field in form.visible_fields %}
{% include "wagtailadmin/shared/field_as_li.html" %}
<li>{% include "wagtailadmin/shared/field.html" %}</li>
{% endfor %}
{% endblock %}
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<p class="help">{{ field.help_text }}</p>
</li>
{% else %}
{% include "wagtailadmin/shared/field_as_li.html" %}
<li>{% include "wagtailadmin/shared/field.html" %}</li>
{% endif %}
{% endfor %}
{% endblock %}
Expand Down

0 comments on commit 9886a40

Please sign in to comment.