]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/people/user-edit.html
people: Allow uploading an avatar
[ipfire.org.git] / src / templates / people / user-edit.html
1 {% extends "base.html" %}
2
3 {% block title %}{{ _("Edit %s") % account }}{% end block %}
4
5 {% block main %}
6 <div class="row justify-content-center">
7 <div class="col-6">
8 <h4 class="mb-4">{{ _("Edit %s") % account }}</h4>
9
10 <form method="POST" action="" enctype="multipart/form-data">
11 {% raw xsrf_form_html() %}
12
13 <div class="form-row mb-3">
14 <div class="col">
15 <label>{{ _("First Name") }}</label>
16
17 <input type="text" class="form-control" name="first_name"
18 placeholder="{{ _("First Name") }}" value="{{ account.first_name }}" required>
19 </div>
20
21 <div class="col">
22 <label>{{ _("Last Name") }}</label>
23
24 <input type="text" class="form-control" name="last_name"
25 placeholder="{{ _("Last Name") }}" value="{{ account.last_name }}" required>
26 </div>
27 </div>
28
29 <div class="form-group">
30 <label>{{ _("Address") }}</label>
31
32 <textarea type="text" class="form-control" name="address" rows="5" required
33 placeholder="{{ _("Address") }}">{{ "\n".join(account.address) }}</textarea>
34
35 <small class="form-text text-muted">
36 {{ _("Enter your full address including your country") }}
37 </small>
38 </div>
39
40 <div class="form-group">
41 <label>{{ _("Avatar") }}</label>
42
43 <input type="file" class="form-control-file" name="avatar">
44
45 <small class="form-text text-muted">
46 {{ _("Upload a new avatar") }}
47 </small>
48 </div>
49
50
51 <fieldset>
52 <legend>{{ _("Email") }}</legend>
53
54 <div class="form-group">
55 <label>{{ _("Forward Emails") }}</label>
56
57 <input type="mail" class="form-control" name="mail_routing_address"
58 placeholder="{{ _("Email Address") }}" value="{{ account.mail_routing_address or "" }}">
59
60 <small class="form-text text-muted">
61 {{ _("All emails will be forwarded to this email address") }}
62 </small>
63 </div>
64 </fieldset>
65
66 <fieldset>
67 <legend>{{ _("Telephone") }}</legend>
68
69 <div class="form-group">
70 <label>{{ _("Phone Numbers") }}</label>
71
72 <textarea type="text" class="form-control" name="phone_numbers" rows="5"
73 placeholder="{{ _("Phone Numbers") }}">{{ "\n".join((format_phone_number_to_e164(n) for n in account.phone_numbers)) }}</textarea>
74
75 <small class="form-text text-muted">
76 {{ _("Enter your landline and mobile phone numbers") }}
77 </small>
78 </div>
79
80 <div class="form-group">
81 <label>{{ _("Forward Calls") }}</label>
82
83 <input type="text" class="form-control" name="sip_routing_address"
84 placeholder="{{ _("SIP URI or Phone Number") }}" value="{{ account.sip_routing_address or "" }}">
85
86 <small class="form-text text-muted">
87 {{ _("All calls will be forwarded to this phone number or SIP URI") }}
88 </small>
89 </div>
90 </fieldset>
91
92 <input class="btn btn-primary btn-block" type="submit" value="{{ _("Save") }}">
93 </form>
94 </div>
95 </div>
96 {% end block %}
97
98 {% block right %}{% end block %}