2 <div class="generic-page-wrapper">
3 {{if $header}}<h3>{{$header}}: {{$name}}{{if $account_type}} <small>({{$account_type}})</small>{{/if}}</h3>{{/if}}
5 <div id="contact-edit-wrapper" >
11 <div id="contact-edit-content-wrapper">
12 <form action="contact/{{$contact_id}}" method="post" >
14 {{* This is the Action menu where contact related actions like 'ignore', 'hide' can be performed *}}
15 <ul id="contact-edit-actions" class="nav nav-pills preferences">
16 <li class="dropdown pull-right">
17 <button type="button" class="btn btn-link btn-sm dropdown-toggle" id="contact-edit-actions-button" data-toggle="dropdown" aria-expanded="false">
18 <i class="fa fa-angle-down" aria-hidden="true"></i> {{$contact_action_button}}
21 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="contact-edit-actions-button" aria-haspopup="true" id="contact-actions-menu" >
22 {{if $lblsuggest}}<li role="presentation"><a role="menuitem" href="{{$contact_actions.suggest.url}}" title="{{$contact_actions.suggest.title}}">{{$contact_actions.suggest.label}}</a></li>{{/if}}
23 {{if $poll_enabled}}<li role="presentation"><a role="menuitem" href="{{$contact_actions.update.url}}" title="{{$contact_actions.update.title}}">{{$contact_actions.update.label}}</a></li>{{/if}}
24 {{if $lblsuggest || $poll_enabled}}
25 <li role="presentation" class="divider"></li>
27 <li role="presentation"><a role="menuitem" href="{{$contact_actions.block.url}}" title="{{$contact_actions.block.title}}">{{$contact_actions.block.label}}</a></li>
28 <li role="presentation"><a role="menuitem" href="{{$contact_actions.ignore.url}}" title="{{$contact_actions.ignore.title}}">{{$contact_actions.ignore.label}}</a></li>
29 {{if $contact_actions.archive.url}}<li role="presentation"><a role="menuitem" href="{{$contact_actions.archive.url}}" title="{{$contact_actions.archive.title}}">{{$contact_actions.archive.label}}</a></li>{{/if}}
30 {{if $contact_actions.delete.url}}<li role="presentation"><button role="menuitem" type="button" class="btn-link" title="{{$contact_actions.delete.title}}" onclick="addToModal('{{$contact_actions.delete.url}}?confirm=1');">{{$contact_actions.delete.label}}</button></li>{{/if}}
34 <div class="clear"></div>
37 <div id="contact-edit-status-wrapper">
38 <span id="contact-edit-contact-status">{{$contact_status}}</span>
40 {{* Block with status information about the contact *}}
42 {{if $relation_text}}<li><div id="contact-edit-rel">{{$relation_text}}</div></li>{{/if}}
43 {{if $nettype}}<li><div id="contact-edit-nettype">{{$nettype}}</div></li>{{/if}}
46 <li><div id="contact-edit-last-update-text">{{$lastupdtext}} <span id="contact-edit-last-updated">{{$last_update}}</span></div>
48 <span id="contact-edit-poll-text">{{$updpub}}</span> {{$poll_interval nofilter}}
49 <input class="btn btn-primary" type="submit" name="submit" value="{{$submit}}" />
54 {{if $lost_contact}}<li><div id="lost-contact-message">{{$lost_contact}}</div></li>{{/if}}
55 {{if $insecure}}<li><div id="insecure-message">{{$insecure}}</div></li> {{/if}}
56 {{if $blocked && !$pending}}<li><div id="block-message">{{$blocked}}</div></li>{{/if}}
57 {{if $pending}}<li><div id="pending-message">{{$pending}}</div></li>{{/if}}
58 {{if $ignored}}<li><div id="ignore-message">{{$ignored}}</div></li>{{/if}}
59 {{if $archived}}<li><div id="archive-message">{{$archived}}</div></li>{{/if}}
61 </div> {{* End of contact-edit-status-wrapper *}}
63 <div id="contact-edit-links-end"></div>
65 <div class="panel-group" id="contact-edit-tools" role="tablist" aria-multiselectable="true">
67 {{* Some information about the contact from the profile *}}
69 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-profile">
71 <a class="accordion-toggle" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-profile-collapse" aria-expanded="true" aria-controls="contact-edit-profile-collapse">
72 {{$contact_profile_label}}
76 <div id="contact-edit-profile-collapse" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="contact-edit-profile">
77 <div class="section-content-tools-wrapper">
78 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
79 <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$profileurllabel}}</div><a target="blank" href="{{$url}}">{{$profileurl}}</a>
83 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
84 <hr class="profile-separator">
85 <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$location_label}}</div>
86 <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$location nofilter}}</div>
91 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
92 <hr class="profile-separator">
93 <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$xmpp_label}}</div>
94 <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$xmpp}}</div>
99 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
100 <hr class="profile-separator">
101 <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$keywords_label}}</div>
102 <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$keywords}}</div>
107 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
108 <hr class="profile-separator">
109 <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$about_label}}</div>
110 <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$about nofilter}}</div>
115 <div class="clear"></div>
118 {{if $contact_settings_label}}
120 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-settings">
122 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-settings-collapse" aria-expanded="false" aria-controls="contact-edit-settings-collapse">
123 {{$contact_settings_label}}
127 <div id="contact-edit-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-settings">
128 <div class="section-content-tools-wrapper">
130 <input type="hidden" name="contact_id" value="{{$contact_id}}">
132 {{include file="field_checkbox.tpl" field=$notify}}
133 {{if $fetch_further_information}}
134 {{include file="field_select.tpl" field=$fetch_further_information}}
135 {{if $fetch_further_information.2 == 2 || $fetch_further_information.2 == 3}} {{include file="field_textarea.tpl" field=$ffi_keyword_denylist}} {{/if}}
137 {{include file="field_checkbox.tpl" field=$hidden}}
139 <div class="form-group pull-right settings-submit-wrapper" >
140 <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
142 <div class="clear"></div>
150 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-info">
152 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-info-collapse" aria-expanded="false" aria-controls="contact-edit-info-collapse">
157 <div id="contact-edit-info-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-info">
158 <div class="section-content-tools-wrapper">
160 {{include file="field_textarea.tpl" field=$cinfo}}
162 <div class="form-group pull-right settings-submit-wrapper" >
163 <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
165 <div class="clear"></div>
167 <h4>{{$lbl_info2}}</h4>
169 <div class="clear"></div>
177 </form>{{* End of the form *}}
178 </div>{{* End of contact-edit-content-wrapper *}}