diff --git a/core/templates/core/baby_form.html b/core/templates/core/baby_form.html index f6e47eb6..2d2b0fca 100644 --- a/core/templates/core/baby_form.html +++ b/core/templates/core/baby_form.html @@ -1,12 +1,28 @@ {% extends 'core/base.html' %} +{% load i18n widget_tweaks %} {% block title %}Add a Baby{% endblock %} {% block content %}

Add a Baby

-
+ {% csrf_token %} - {{ form.as_p }} - + {% for field in form %} +
+ + {% if field.errors %} + {{ field|attr:"class:form-control is-invalid" }} + {% else %} + {{ field|attr:"class:form-control" }} + {% endif %} + {% if field.help_text %} +

{{ field.help_text }}

+ {% endif %} + {% if field.errors %} +

{% for error in field.errors %}{{ error }}{% endfor %}

+ {% endif %} +
+ {% endfor %} +
{% endblock %} \ No newline at end of file