Commit bf3dfc25e42f996aa13f0bd3e2d2f8b950dd5164
1 parent
0ecf2359
Exists in
master
and in
5 other branches
Phone mask to rester user templates #14
Showing
2 changed files
with
11 additions
and
0 deletions
Show diff stats
core/templates/register_user.html
... | ... | @@ -56,6 +56,9 @@ |
56 | 56 | </div> |
57 | 57 | {% elif field.auto_id == 'id_cpf' %} |
58 | 58 | {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarCpf(this,event);' %} |
59 | + | |
60 | + {% elif field.auto_id == 'id_phone' %} | |
61 | + {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarTelefone(this,event);' %} | |
59 | 62 | {% else %} |
60 | 63 | {% render_field field class='form-control' %} |
61 | 64 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> | ... | ... |
users/templates/users/create.html
... | ... | @@ -68,6 +68,14 @@ |
68 | 68 | <label for="{{ field.auto_id }}">{{ field.label }}</label> |
69 | 69 | {% endif %} |
70 | 70 | {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarCpf(this,event);' %} |
71 | + | |
72 | + {% elif field.auto_id == 'id_phone' %} | |
73 | + {% if field.field.required %} | |
74 | + <label for="{{ field.auto_id }}">{{ field.label }}<span>*</span></label> | |
75 | + {% else %} | |
76 | + <label for="{{ field.auto_id }}">{{ field.label }}</label> | |
77 | + {% endif %} | |
78 | + {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarTelefone(this,event);' %} | |
71 | 79 | {% else %} |
72 | 80 | {% if field.field.required %} |
73 | 81 | <label for="{{ field.auto_id }}">{{ field.label }}<span>*</span></label> | ... | ... |