mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 15:26:46 -06:00
aa150030eb
(lazy loading) using the require.js. This allows us to load the javascript required for any node, only when it was loaded in the browser tree. Also, introduced the mechanism to show/edit/create of any node in a tab panel (wcDocker.Panel).
11 lines
424 B
HTML
11 lines
424 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 %}
|