1 {{if $view_as_contact_alert}}
2 <div class="alert alert-info" role="alert">
3 {{$view_as_contact_alert nofilter}}
6 <div id="profile-page" class="generic-page-wrapper">
7 {{include file="section_title.tpl"}}
9 {{* The link to edit the profile*}}
11 <div id="profile-edit-links">
12 <ul class="nav nav-pills preferences">
13 <li class="pull-right">
14 <a class="btn btn-link btn-sm" type="button" id="profile-edit-link" href="{{$edit_link.url}}" title="{{$edit_link.title}}">
15 <i class="fa fa-pencil-square-o" aria-hidden="true"></i> {{$edit_link.label}}
18 <li class="pull-right">
19 <a class="btn btn-link btn-sm" type="button" id="profile-viewas-link" href="{{$viewas_link.url}}" title="{{$viewas_link.title}}">
20 <i class="fa fa-eye" aria-hidden="true"></i> {{$viewas_link.label}}
24 <div class="clear"></div>
27 <dl id="{{$basic_fields.fullname.id}}" class="row {{$basic_fields.fullname.class|default:'aprofile'}}">
28 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.fullname.label}}</dt>
29 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.fullname.value}}</dd>
32 {{if $basic_fields.membersince}}
33 <dl id="aprofile-membersince" class="row {{$basic_fields.membersince.class|default:'aprofile'}}">
34 <hr class="profile-separator">
35 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.membersince.label}}</dt>
36 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.membersince.value}}</dd>
40 {{if $basic_fields.birthday}}
41 <dl id="aprofile-birthday" class="row {{$basic_fields.birthday.class|default:'aprofile'}}">
42 <hr class="profile-separator">
43 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.birthday.label}}</dt>
44 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.birthday.value}}</dd>
48 {{if $basic_fields.age}}
49 <dl id="aprofile-age" class="row {{$basic_fields.age.class|default:'aprofile'}}">
50 <hr class="profile-separator">
51 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.age.label}}</dt>
52 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.age.value}}</dd>
56 {{if $basic_fields.location}}
57 <dl id="aprofile-location" class="row {{$basic_fields.location.class|default:'aprofile'}}">
58 <hr class="profile-separator">
59 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.location.label}}</dt>
60 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.location.value}}</dd>
64 {{if $basic_fields.homepage}}
65 <dl id="aprofile-homepage" class="row {{$basic_fields.homepage.class|default:'aprofile'}}">
66 <hr class="profile-separator">
67 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.homepage.label}}</dt>
68 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.homepage.value nofilter}}</dd>
72 {{if $basic_fields.xmpp}}
73 <dl id="aprofile-xmpp" class="row {{$basic_fields.xmpp.class|default:'aprofile'}}">
74 <hr class="profile-separator">
75 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.xmpp.label}}</dt>
76 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$basic_fields.xmpp.value nofilter}}</dd>
80 {{if $basic_fields.pub_keywords}}
81 <dl id="aprofile-tags" class="row {{$basic_fields.pub_keywords.class|default:'aprofile'}}">
82 <hr class="profile-separator">
83 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$basic_fields.pub_keywords.label}}</dt>
84 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">
85 {{foreach $basic_fields.pub_keywords.value as $tag}}
86 <a href="{{$tag.url}}" class="tag label btn-info sm">{{$tag.label}} <i class="fa fa-bolt" aria-hidden="true"></i></a>
92 {{foreach $custom_fields as $custom_field}}
93 <dl id="{{$custom_field.id}}" class="row {{$custom_field.class|default:'aprofile'}}">
94 <hr class="profile-separator">
95 <dt class="col-lg-4 col-md-4 col-sm-4 col-xs-12 profile-label-name text-muted">{{$custom_field.label}}</dt>
96 <dd class="col-lg-8 col-md-8 col-sm-8 col-xs-12 profile-entry">{{$custom_field.value nofilter}}</dd>
101 <form action="{{$query_string}}" method="get" id="viewas" class="panel panel-default form-inline">
102 <fieldset class="panel-body">
103 <label for="viewas-select">{{$view_as}}</label>
104 <select name="viewas" id="viewas-select" class="form-control">
105 <option value="0">{{$yourself}}</option>
106 {{foreach $view_as_contacts as $contact}}
107 <option value="{{$contact.id}}"{{if $contact.id == $view_as_contact_id}} selected{{/if}}>{{$contact.name}}</option>
110 <button type="submit" class="btn btn-primary">{{$submit}}</button>