]> git.ipfire.org Git - ipfire.org.git/blob - src/templates/people/user-edit.html
24b4521ea2355c04ef3688bd0dfc7dbf9c8493fb
[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="">
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 <fieldset>
41 <legend>{{ _("Email") }}</legend>
42
43 <div class="form-group">
44 <label>{{ _("Forward Emails") }}</label>
45
46 <input type="mail" class="form-control" name="mail_routing_address"
47 placeholder="{{ _("Email Address") }}" value="{{ account.mail_routing_address or "" }}">
48
49 <small class="form-text text-muted">
50 {{ _("All emails will be forwarded to this email address") }}
51 </small>
52 </div>
53 </fieldset>
54
55 <fieldset>
56 <legend>{{ _("Telephone") }}</legend>
57
58 <div class="form-group">
59 <label>{{ _("Phone Numbers") }}</label>
60
61 <textarea type="text" class="form-control" name="phone_numbers" rows="5"
62 placeholder="{{ _("Phone Numbers") }}">{{ "\n".join((format_phone_number_to_e164(n) for n in account.phone_numbers)) }}</textarea>
63
64 <small class="form-text text-muted">
65 {{ _("Enter your landline and mobile phone numbers") }}
66 </small>
67 </div>
68
69 <div class="form-group">
70 <label>{{ _("Forward Calls") }}</label>
71
72 <input type="text" class="form-control" name="sip_routing_address"
73 placeholder="{{ _("SIP URI or Phone Number") }}" value="{{ account.sip_routing_address or "" }}">
74
75 <small class="form-text text-muted">
76 {{ _("All calls will be forwarded to this phone number or SIP URI") }}
77 </small>
78 </div>
79 </fieldset>
80
81 <input class="btn btn-primary btn-block" type="submit" value="{{ _("Save") }}">
82 </form>
83 </div>
84 </div>
85 {% end block %}
86
87 {% block right %}{% end block %}