-
-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathprofile.html
More file actions
42 lines (37 loc) · 1.46 KB
/
profile.html
File metadata and controls
42 lines (37 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% extends "base.html" %}
{% load static %}
{% block title %}Arch Linux - Edit Profile{% endblock %}
{% block content %}
<div id="dev-edit-profile" class="box">
<h2>Developer Profile</h2>
<form id="edit-profile-form" enctype="multipart/form-data" method="post" action="">{% csrf_token %}
<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>
<fieldset>
<p><label>Username:</label>
<strong>{{ user.username }}</strong></p>
{{ form.as_p }}
</fieldset>
<fieldset>
{{ profile_form.as_p }}
</fieldset>
<p><label></label> <input title="Save changes" type="submit" value="Save" /></p>
</form>
<form id="api-profile-form" enctype="multipart/form-data" method="post" action="">{% csrf_token %}
<h3>API token</h3>
<p>Token for completing todolist items with for example, rebuild-todo</p>
{% if profile.api_token is None %}
<fieldset>
<input type="hidden" name="api_token" id="api_token" value="generate">
</fieldset>
<p><label></label> <input title="Generate token" type="submit" value="Generate API Token" /></p>
{% else %}
<fieldset>
<label>Token:</label>
{{ profile.api_token }}
</fieldset>
{% endif %}
</form>
</div>
{% endblock %}