More spacing fixes. This time in _formhelpers

This commit is contained in:
Sage Vaillancourt 2022-09-22 16:30:14 -04:00
parent 941e83282f
commit 2acac101f1
2 changed files with 14 additions and 12 deletions

View File

@ -1,12 +1,15 @@
{% macro render_field(field, extra="") %} {% macro render_field(field, extra="") %}
<dt>{{ field.label }} <dt>{{ field.label }}</dt>
<dd {{extra}}>{{ field(**kwargs)|safe }}
{% if field.errors %} <dd {{extra}}>
<ul class=errors> {{ field(**kwargs)|safe }}
{% for error in field.errors %}
<li>{{ error }}</li> {% if field.errors %}
{% endfor %} <ul class=errors>
</ul> {% for error in field.errors %}
{% endif %} <li>{{ error }}</li>
</dd> {% endfor %}
</ul>
{% endif %}
</dd>
{% endmacro %} {% endmacro %}

View File

@ -3,8 +3,7 @@
<head> <head>
<title>UnderCover</title> <title>UnderCover</title>
<link rel="stylesheet" type="text/css" href=" <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles_min.css') }}">
{{ url_for('static', filename='styles_min.css') }}">
<meta name="viewport" content="user-scalable=no; width=device-width"> <meta name="viewport" content="user-scalable=no; width=device-width">
<script type="text/javascript"> <script type="text/javascript">