mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-14 22:12:54 -06:00
Improve form field rendering macro to fix login/signup pages
It now looks less "dogshit" as one might say. Still quite dogshit, but acceptable 'dogshit'.
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
{% macro render_field(field) %}
|
||||
<field>
|
||||
<label>{{ field.label }}</label>
|
||||
{{ field(**kwargs)|safe }}
|
||||
{% if field.errors %}
|
||||
<ul class=errors>
|
||||
{% for error in field.errors %}
|
||||
<li>{{ error }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
<br>
|
||||
</field>
|
||||
{{ field.label }}
|
||||
{{ field(**kwargs)|safe }}
|
||||
{% if field.errors %}
|
||||
<ul class=errors>
|
||||
{% for error in field.errors %}
|
||||
<li>{{ error }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
<br>
|
||||
{% endmacro %}
|
||||
|
||||
Reference in New Issue
Block a user