mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-27 00:36:52 -06:00
12 lines
435 B
HTML
12 lines
435 B
HTML
{% macro render_field_with_errors(field, type) %}
|
|
<div class="form-group{% if field.errors %} has-error{% endif %}">
|
|
<input class="form-control" placeholder="{{ field.label.text }}" name="{{ field.name }}"
|
|
type="{% if type %}{{ type }}{% else %}{{ field.type }}{% endif %}">
|
|
</div>
|
|
{% if field.errors %}
|
|
{% for error in field.errors %}
|
|
<span class="help-block">{{ error }}</span>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endmacro %}
|