diff options
Diffstat (limited to 'templates/devel/profile.html')
-rw-r--r-- | templates/devel/profile.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/devel/profile.html b/templates/devel/profile.html index 54a3771c..dff5d925 100644 --- a/templates/devel/profile.html +++ b/templates/devel/profile.html @@ -1,4 +1,6 @@ {% extends "base.html" %} +{% load static from staticfiles %} + {% block title %}{{ BRANDING_DISTRONAME }} - Edit Profile{% endblock %} {% block content %} @@ -23,3 +25,17 @@ </div> {% endblock %} + +{% block script_block %} +{% load cdn %}{% jquery %} +<script type="text/javascript" src="{% static "archweb.js" %}"></script> +<script type="text/javascript"> + modify_attributes({ + '#id_email': {type: 'email'}, + '#id_alias': {autocorrect: 'off', autocapitalize: 'off'}, + '#id_public_email': {autocorrect: 'off', autocapitalize: 'off'}, + '#id_website': {type: 'url'}, + '#id_yob': {pattern: '[0-9]*'} + }); +</script> +{% endblock %} |