1 {% extends
"base.html" %}
4 {% import phonenumbers %}
6 <div class=
"card mb-3">
7 <div class=
"card-body">
10 <a class=
"btn btn-dark btn-block" href=
"mailto:{{ account.email }}">
11 {{ _(
"Email %s") % account.first_name }}
16 {% if current_user == account or current_user.is_staff() %}
18 {% if account.address %}
19 <div class=
"col-md-6 mt-5">
20 <h6>{{ _(
"Postal Address") }}
</h6>
23 <strong>{{ account.name }}
</strong>
25 {% for line in account.address %}
32 <div class=
"col-md-6 mt-5">
33 {% if account.phone_number or account.fax_number %}
34 <h6 class=
"mb-2">{{ _(
"Phone Numbers") }}
</h6>
36 <ul class=
"list-unstyled">
37 {% if account.phone_number %}
39 <span class=
"fas fa-phone"></span>
41 <a href=
"tel:{{ format_phone_number_to_e164(account.phone_number) }}">
42 {{ format_phone_number(account.phone_number) }}
47 {% if account.fax_number %}
49 <span class=
"fas fa-fax"></span>
51 <a href=
"fax:{{ format_phone_number_to_e164(account.fax_number) }}">
52 {{ format_phone_number(account.fax_number) }}
59 {% if account.phone_numbers %}
60 <h6 class=
"mb-2">{{ _(
"External Phone Numbers") }}
</h6>
62 <ul class=
"list-unstyled">
63 {% for number in account.phone_numbers %}
65 {% if phonenumbers.number_type(number) == phonenumbers.PhoneNumberType.MOBILE %}
66 <span class=
"fas fa-mobile" title=
"{{ _("Mobile
") }}"></span>
68 <span class=
"fas fa-phone"></span>
71 <a href=
"tel:{{ format_phone_number_to_e164(number) }}"
72 title=
"{{ format_phone_number_location(number) }}">{{ format_phone_number(number) }}
</a>
82 {% if account.groups %}
83 <div class=
"card-body">
86 <h6 class=
"mb-0">{{ _(
"Groups") }}
</h6>
91 <div class=
"list-group list-group-flush">
92 {% for g in account.groups %}
93 <a class=
"list-group-item list-group-item-active" {% if current_user.is_staff() %}
href=
"/groups/{{ g.gid }}"{% end %}
>
94 <i class=
"fas fa-users mr-2"></i> {{ g }}
101 <ul class=
"list-unstyled small text-muted">
103 {{ _(
"Joined %s") % locale.format_date(account.created_at, shorter=True) }}
106 {% if current_user.is_admin() %}
108 {{ _(
"Last Modified %s") % locale.format_date(account.modified_at) }}
111 {% if account.last_successful_authentication %}
113 {{ _(
"Last successful authentication: %s") % locale.format_date(account.last_successful_authentication) }}
117 {% if account.failed_login_count %}
118 <li class=
"text-warning">
119 {{ _(
"One unsuccessful authentication attempt.",
"%(num)s unsuccessful authentication attempts.", account.failed_login_count) % {
"num" : account.failed_login_count } }}
121 {% if account.last_failed_authentication %}
122 {{ _(
"Last attempt: %s") % locale.format_date(account.last_failed_authentication) }}