From 59dfbd2860ac457a72547254bc8ecb132ffcbb78 Mon Sep 17 00:00:00 2001 From: ailsoncgt Date: Wed, 5 Oct 2016 15:11:41 -0300 Subject: [PATCH] Date picker in register forms #14 --- core/templates/register_user.html | 3 ++- users/templates/users/create.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/templates/register_user.html b/core/templates/register_user.html index 6c6e01e..8857765 100644 --- a/core/templates/register_user.html +++ b/core/templates/register_user.html @@ -41,7 +41,8 @@ {% endif %}
{% if field.auto_id == 'id_birth_date' %} - {% render_field field class='form-control input-sm' type='date' %} + {% render_field field class='form-control input-sm date-picker' %} + {{ field.help_text }} {% elif field.auto_id == 'id_image' %} {% render_field field class='form-control input-sm' %} diff --git a/users/templates/users/create.html b/users/templates/users/create.html index 6e64507..96571b9 100644 --- a/users/templates/users/create.html +++ b/users/templates/users/create.html @@ -38,7 +38,8 @@ {% else %} {% endif %} - + + {% elif field.auto_id == 'id_image' %} {% if field.field.required %} -- libgit2 0.21.2