1 {% extends
"../base.html" %}
3 {% block title %}{{ account }} - {{ _(
"Edit") }}{% end block %}
7 <div class=
"container">
8 <h1>{{ _(
"Edit Profile") }}
</h1>
10 <p class=
"text-muted">
16 <div class=
"container">
18 <form method=
"POST" action=
"" enctype=
"multipart/form-data">
19 {% raw xsrf_form_html() %}
21 <div class=
"row mb-3">
22 <div class=
"col-12 col-sm-6">
23 <label class=
"form-label">{{ _(
"First Name") }}
</label>
25 <input type=
"text" class=
"form-control" name=
"first_name"
26 placeholder=
"{{ _("First Name
") }}" value=
"{{ account.first_name }}" required
>
29 <div class=
"col-12 col-sm-6">
30 <label class=
"form-label">{{ _(
"Last Name") }}
</label>
32 <input type=
"text" class=
"form-control" name=
"last_name"
33 placeholder=
"{{ _("Last Name
") }}" value=
"{{ account.last_name }}" required
>
38 <label class=
"form-label">{{ _(
"Nickname") }} ({{ _(
"optional") }})
</label>
40 <input type=
"text" class=
"form-control" name=
"nickname"
41 placeholder=
"{{ _("Nickname
") }}" value=
"{{ account.nickname or "" }}">
45 <label class=
"form-label">{{ _(
"Address") }}
</label>
47 <textarea type=
"text" class=
"form-control" name=
"street" rows=
"3"
48 placeholder=
"{{ _("Address
") }}">{{ account.street or
"" }}
</textarea>
51 <div class=
"row mb-3">
52 <div class=
"col-12 col-sm-6">
53 <label class=
"form-label">{{ _(
"City") }}
</label>
55 <input type=
"text" class=
"form-control" name=
"city"
56 placeholder=
"{{ _("City
") }}" value=
"{{ account.city }}">
59 <div class=
"col-12 col-sm-6">
60 <label class=
"form-label">{{ _(
"Postal Code") }}
</label>
62 <input type=
"text" class=
"form-control" name=
"postal_code"
63 placeholder=
"{{ _("Postal Code
") }}" value=
"{{ account.postal_code }}">
68 <label class=
"form-label">{{ _(
"Country") }}
</label>
70 <select class=
"form-control" name=
"country_code">
71 <option value=
"">{{ _(
"- Please Select -") }}
</option>
73 {% for c in countries %}
74 <option value=
"{{ c.alpha2 }}" {% if account.country_code == c.alpha2 %}selected{% end %}
>{{ c.name }}
</option>
80 <legend>{{ _(
"Tell Us Who You Are") }}
</legend>
82 <div class=
"mb-3" id=
"description">
83 <textarea type=
"text" class=
"form-control" name=
"description" rows=
"5"
84 placeholder=
"{{ _("Tell Us Who You Are
") }}">{{ account.description or
"" }}
</textarea>
86 <small class=
"form-text text-muted">
87 {{ _(
"You can use Markdown syntax as you know it from the IPFire Wiki") }}
91 <div class=
"mb-3" id=
"avatar">
92 <label class=
"form-label">{{ _(
"Avatar") }}
</label>
94 <input type=
"file" class=
"form-control-file" name=
"avatar">
96 <small class=
"form-text text-muted">
97 {{ _(
"Upload a new avatar") }}
102 {% if account.has_mail() %}
104 <legend>{{ _(
"Email") }}
</legend>
107 <label class=
"form-label">{{ _(
"Forward Emails") }}
</label>
109 <input type=
"mail" class=
"form-control" name=
"mail_routing_address"
110 placeholder=
"{{ _("Email Address
") }}" value=
"{{ account.mail_routing_address or "" }}">
112 <small class=
"form-text text-muted">
113 {{ _(
"All emails will be forwarded to this email address") }}
120 <legend>{{ _(
"Telephone") }}
</legend>
123 <label class=
"form-label">{{ _(
"Phone Numbers") }}
</label>
125 <textarea type=
"text" class=
"form-control" name=
"phone_numbers" rows=
"3"
126 placeholder=
"{{ _("Phone Numbers
") }}">{{
"\n".join((format_phone_number_to_e164(n) for n in account.phone_numbers)) }}
</textarea>
128 <small class=
"form-text text-muted">
129 {{ _(
"Enter your landline and mobile phone numbers") }}
133 {% if account.has_sip() %}
135 <label class=
"form-label">{{ _(
"Forward Calls") }}
</label>
137 <input type=
"text" class=
"form-control" name=
"sip_routing_address"
138 placeholder=
"{{ _("SIP URI or Phone Number
") }}" value=
"{{ account.sip_routing_address or "" }}">
140 <small class=
"form-text text-muted">
141 {{ _(
"All calls will be forwarded to this phone number or SIP URI") }}
148 <input class=
"btn btn-primary" type=
"submit" value=
"{{ _("Save
") }}">