+{% extends "base.html" %}
+
+{% block title %}{{ _("Edit %s") % account }}{% end block %}
+
+{% block main %}
+ <div class="row justify-content-center">
+ <div class="col-6">
+ <h4 class="mb-4">{{ _("Edit %s") % account }}</h4>
+
+ <form method="POST" action="">
+ {% raw xsrf_form_html() %}
+
+ <div class="form-row mb-3">
+ <div class="col">
+ <label>{{ _("First Name") }}</label>
+
+ <input type="text" class="form-control" name="first_name"
+ placeholder="{{ _("First Name") }}" value="{{ account.first_name }}" required>
+ </div>
+
+ <div class="col">
+ <label>{{ _("Last Name") }}</label>
+
+ <input type="text" class="form-control" name="last_name"
+ placeholder="{{ _("Last Name") }}" value="{{ account.last_name }}" required>
+ </div>
+ </div>
+
+ <div class="form-group">
+ <label>{{ _("Address") }}</label>
+
+ <textarea type="text" class="form-control" name="address" rows="5" required
+ placeholder="{{ _("Address") }}">{{ "\n".join(account.address) }}</textarea>
+
+ <small class="form-text text-muted">
+ {{ _("Enter your full address including your country") }}
+ </small>
+ </div>
+
+ <fieldset>
+ <legend>{{ _("Email") }}</legend>
+
+ <div class="form-group">
+ <label>{{ _("Forward Emails") }}</label>
+
+ <input type="mail" class="form-control" name="mail_routing_address"
+ placeholder="{{ _("Email Address") }}" value="{{ account.mail_routing_address or "" }}">
+
+ <small class="form-text text-muted">
+ {{ _("All emails will be forwarded to this email address") }}
+ </small>
+ </div>
+ </fieldset>
+
+ <fieldset>
+ <legend>{{ _("Telephone") }}</legend>
+
+ <div class="form-group">
+ <label>{{ _("Phone Numbers") }}</label>
+
+ <textarea type="text" class="form-control" name="phone_numbers" rows="5"
+ placeholder="{{ _("Phone Numbers") }}">{{ "\n".join((format_phone_number_to_e164(n) for n in account.phone_numbers)) }}</textarea>
+
+ <small class="form-text text-muted">
+ {{ _("Enter your landline and mobile phone numbers") }}
+ </small>
+ </div>
+
+ <div class="form-group">
+ <label>{{ _("Forward Calls") }}</label>
+
+ <input type="text" class="form-control" name="sip_routing_address"
+ placeholder="{{ _("SIP URI or Phone Number") }}" value="{{ account.sip_routing_address or "" }}">
+
+ <small class="form-text text-muted">
+ {{ _("All calls will be forwarded to this phone number or SIP URI") }}
+ </small>
+ </div>
+ </fieldset>
+
+ <input class="btn btn-primary btn-block" type="submit" value="{{ _("Save") }}">
+ </form>
+ </div>
+ </div>
+{% end block %}
+
+{% block right %}{% end block %}