profile.html 1.3 KB
Newer Older
eliott's avatar
eliott committed
1
{% extends "base.html" %}
2
{% load static %}
3

4
{% block title %}Arch Linux - Edit Profile{% endblock %}
eliott's avatar
eliott committed
5
6

{% block content %}
7
8
9
10
<div id="dev-edit-profile" class="box">

    <h2>Developer Profile</h2>

Dan McGee's avatar
Dan McGee committed
11
    <form id="edit-profile-form" enctype="multipart/form-data" method="post" action="">{% csrf_token %}
12
13
14
        <p><em>Note:</em> This is the public information shown on the developer
        and/or TU profiles page, so please be appropriate with the information
        you provide here.</p>
15
        <fieldset>
16
17
            <p><label>Username:</label>
            <strong>{{ user.username }}</strong></p>
18
19
            {{ form.as_p }}
        </fieldset>
20
21
22
        <fieldset>
            {{ profile_form.as_p }}
        </fieldset>
23
24
25
26
        <p><label></label> <input title="Save changes" type="submit" value="Save" /></p>
    </form>

</div>
27
{% endblock %}
28

29
{% block script_block %}
Jelle van der Waa's avatar
Jelle van der Waa committed
30
<script type="text/javascript" nonce={{ CSP_NONCE }}>
31
32
33
34
35
    document.addEventListener('DOMContentLoaded', function() {
        document.getElementById('id_email').setAttribute('type', 'email');
        document.getElementById('id_public_email').setAttribute('type', 'email');
        document.getElementById('id_website').setAttribute('type', 'url');
        document.getElementById('id_yob').setAttribute('pattern', '[0-9]*');
36
37
    });
</script>
eliott's avatar
eliott committed
38
{% endblock %}