Skip to content

Commit 7e1da37

Browse files
phorwardsveneberth
andauthored
fix: renderEditForm() should display errors (#135)
Co-authored-by: Sven Eberth <mail@sveneberth.de>
1 parent f83b704 commit 7e1da37

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

deploy/html/editform/editform_bone_bone.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<input
2-
class="switch-input ignt-input--boolean ignt-input--{{ boneName }}
2+
class="ignt-input ignt-input--{{ boneName }}
33
{{ "is-required" if boneParams.required }}
44
{{ "is-readonly" if boneParams.readOnly }}
55
{{ "is-invalid" if boneErrors else "is-valid" }}"

deploy/html/editform/editform_row.html

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
</label>
1212

1313
{{ editWidget }}
14+
15+
{% if boneErrors %}
16+
{% for error in boneErrors -%}
17+
{%- if error.severity.value == 3 or boneParams.required -%}
18+
<span class="ignt-input-error">{{ error.errorMessage }}</span>
19+
{%- endif -%}
20+
{%- endfor %}
21+
{% endif %}
22+
1423
</div>
1524
{% else %}
1625
{{ editWidget }}

0 commit comments

Comments
 (0)