profile.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {% extends "base.html" %}
  2. {% load static from staticfiles %}
  3. {% block title %}{{ BRANDING_DISTRONAME }} - Edit Profile{% endblock %}
  4. {% block content %}
  5. <div id="dev-edit-profile" class="box">
  6. <h2>Developer Profile</h2>
  7. <form id="edit-profile-form" enctype="multipart/form-data" method="post" action="">{% csrf_token %}
  8. <p><em>Note:</em> This is the public information shown on the developer
  9. and/or TU profiles page, so please be appropriate with the information
  10. you provide here.</p>
  11. <fieldset>
  12. <p><label>Username:</label>
  13. <strong>{{ user.username }}</strong></p>
  14. {{ form.as_p }}
  15. </fieldset>
  16. <fieldset>
  17. {{ profile_form.as_p }}
  18. </fieldset>
  19. <p><label></label> <input title="Save changes" type="submit" value="Save" /></p>
  20. </form>
  21. </div>
  22. {% endblock %}
  23. {% block script_block %}
  24. {% load cdn %}{% jquery %}
  25. <script type="text/javascript" src="{% static "archweb.js" %}"></script>
  26. <script type="text/javascript">
  27. modify_attributes({
  28. '#id_email': {type: 'email'},
  29. '#id_alias': {autocorrect: 'off', autocapitalize: 'off'},
  30. '#id_public_email': {autocorrect: 'off', autocapitalize: 'off'},
  31. '#id_website': {type: 'url'},
  32. '#id_yob': {pattern: '[0-9]*'}
  33. });
  34. </script>
  35. {% endblock %}