diff --git a/core/templates/register_user.html b/core/templates/register_user.html index 8857765..4fc40ee 100644 --- a/core/templates/register_user.html +++ b/core/templates/register_user.html @@ -56,6 +56,9 @@ {% elif field.auto_id == 'id_cpf' %} {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarCpf(this,event);' %} + + {% elif field.auto_id == 'id_phone' %} + {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarTelefone(this,event);' %} {% else %} {% render_field field class='form-control' %} {{ field.help_text }} diff --git a/users/templates/users/create.html b/users/templates/users/create.html index 96571b9..eeda35a 100644 --- a/users/templates/users/create.html +++ b/users/templates/users/create.html @@ -68,6 +68,14 @@ {% endif %} {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarCpf(this,event);' %} + + {% elif field.auto_id == 'id_phone' %} + {% if field.field.required %} + + {% else %} + + {% endif %} + {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarTelefone(this,event);' %} {% else %} {% if field.field.required %} -- libgit2 0.21.2