1 {% extends
"base.html" %}
3 {% block title %}{{ _(
"Edit %s") % account }}{% end block %}
6 <div class=
"row justify-content-center">
8 <h4 class=
"mb-4">{{ _(
"Edit %s") % account }}
</h4>
10 <form method=
"POST" action=
"" enctype=
"multipart/form-data">
11 {% raw xsrf_form_html() %}
13 <div class=
"form-row mb-3">
15 <label>{{ _(
"First Name") }}
</label>
17 <input type=
"text" class=
"form-control" name=
"first_name"
18 placeholder=
"{{ _("First Name
") }}" value=
"{{ account.first_name }}" required
>
22 <label>{{ _(
"Last Name") }}
</label>
24 <input type=
"text" class=
"form-control" name=
"last_name"
25 placeholder=
"{{ _("Last Name
") }}" value=
"{{ account.last_name }}" required
>
29 <div class=
"form-group">
30 <label>{{ _(
"Address") }}
</label>
32 <textarea type=
"text" class=
"form-control" name=
"address" rows=
"5" required
33 placeholder=
"{{ _("Address
") }}">{{
"\n".join(account.address) }}
</textarea>
35 <small class=
"form-text text-muted">
36 {{ _(
"Enter your full address including your country") }}
40 <div class=
"form-group">
41 <label>{{ _(
"Avatar") }}
</label>
43 <input type=
"file" class=
"form-control-file" name=
"avatar">
45 <small class=
"form-text text-muted">
46 {{ _(
"Upload a new avatar") }}
52 <legend>{{ _(
"Email") }}
</legend>
54 <div class=
"form-group">
55 <label>{{ _(
"Forward Emails") }}
</label>
57 <input type=
"mail" class=
"form-control" name=
"mail_routing_address"
58 placeholder=
"{{ _("Email Address
") }}" value=
"{{ account.mail_routing_address or "" }}">
60 <small class=
"form-text text-muted">
61 {{ _(
"All emails will be forwarded to this email address") }}
67 <legend>{{ _(
"Telephone") }}
</legend>
69 <div class=
"form-group">
70 <label>{{ _(
"Phone Numbers") }}
</label>
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>
75 <small class=
"form-text text-muted">
76 {{ _(
"Enter your landline and mobile phone numbers") }}
80 <div class=
"form-group">
81 <label>{{ _(
"Forward Calls") }}
</label>
83 <input type=
"text" class=
"form-control" name=
"sip_routing_address"
84 placeholder=
"{{ _("SIP URI or Phone Number
") }}" value=
"{{ account.sip_routing_address or "" }}">
86 <small class=
"form-text text-muted">
87 {{ _(
"All calls will be forwarded to this phone number or SIP URI") }}
92 <input class=
"btn btn-primary btn-block" type=
"submit" value=
"{{ _("Save
") }}">
98 {% block right %}{% end block %}