Commit 18d4ca0ae9500f3fee81fa6e5b139d8e1afa92d0
1 parent
fc007a25
Exists in
master
and in
5 other branches
cpf mask in register user #14
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
core/templates/register_user.html
... | ... | @@ -44,6 +44,8 @@ |
44 | 44 | </button> |
45 | 45 | </span> |
46 | 46 | </div> |
47 | + {% elif field.auto_id == 'id_cpf' %} | |
48 | + {% render_field field class='form-control' onkeypress='campoNumerico(this,event); formatarCpf(this,event);' %} | |
47 | 49 | {% else %} |
48 | 50 | {% render_field field class='form-control' %} |
49 | 51 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> |
... | ... | @@ -79,4 +81,5 @@ |
79 | 81 | </div> |
80 | 82 | |
81 | 83 | <br clear="all" /> |
84 | + <script src="{% static 'js/base/amadeus.js' %}"></script> | |
82 | 85 | {% endblock %} | ... | ... |