blob: 6cb59ed5683205b840deb23976b64bc8cc9b51bc (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{% extends "layout.html" %}
{% block content %}
<div class="container">
<h2>{{ _('Your Profile') }}</h2>
<div class="row">
<div class="col">
<p>{{ _('Member since') }}: {{ user.date_created | datetime }}.</p>
<p>{{ _('Last seen') }}: {{ user.last_seen | datetime }}.</p>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col">
<h3>Edit your profile</h3>
</div>
</div>
<form action="" method="post" name="save">
<div class="row">
{{ form.hidden_tag() }}
<div class="col">
{{ form.nickname.label }}
{{ form.nickname(class_="form-control") }} {% for error in form.nickname.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
{{ form.password.label }}
{{ form.password(class_="form-control") }} {% for error in form.password.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
{{ form.password_conf.label }}
{{ form.password_conf(class_="form-control") }} {% for error in form.password_conf.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
</div>
<div class="col">
{{ form.bio.label }}
{{ form.bio(class_="form-control") }} {% for error in form.bio.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
{{ form.webpage.label }}
{{ form.webpage(class_="form-control") }} {% for error in form.webpage.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
{{ form.twitter.label }}
{{ form.twitter(class_="form-control") }} {% for error in form.twitter.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
<div class="form-check">
{{ form.is_public_profile.label }}
{{ form.is_public_profile(class_="form-check-input") }}
<p>{{ _('Your profile will be available <a href="%(url)s">here</a>.', url=url_for('user.profile_public', nickname=user.nickname) ) }}</p>
{% for error in form.is_public_profile.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
</div>
<div class="form-check">
{{ form.automatic_crawling.label }}
{{ form.automatic_crawling(class_="form-check-input") }}
<p>{{ _('Uncheck if you are using your own crawler.') }}</p>
{% for error in form.automatic_crawling.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
</div>
</div>
</div>
<div class="row">
<div class="col">
<br />
{{ form.submit(class_="btn btn-primary") }}
</div>
</div>
</form>
</div>
</div>
<br />
<div class="row">
<div class="col">
<a href="{{ url_for('user.delete_account') }}" class="btn btn-warning" onclick="return confirm('{{ _('You are going to delete your account.') }}');">{{ _('Delete your account') }}</a>
</div>
</div>
</div><!-- /.container -->
{% endblock %}
|