2016-07-26 09:09:40 +02:00
|
|
|
|
|
|
|
<div class="generic-page-wrapper">
|
2018-12-14 04:28:12 +01:00
|
|
|
{{if $header}}<h3>{{$header}}: {{$name}}{{if $account_type}} <small>({{$account_type}})</small>{{/if}}</h3>{{/if}}
|
2016-07-26 09:09:40 +02:00
|
|
|
|
2021-05-19 23:47:15 +02:00
|
|
|
<div id="contact-edit-wrapper">
|
2016-07-26 09:09:40 +02:00
|
|
|
|
|
|
|
{{* Insert Tab-Nav *}}
|
2018-12-14 04:35:51 +01:00
|
|
|
{{$tab_str nofilter}}
|
2016-07-26 09:09:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
<div id="contact-edit-content-wrapper">
|
2021-05-19 23:47:15 +02:00
|
|
|
<form action="contact/{{$contact_id}}" method="post">
|
2016-07-26 09:09:40 +02:00
|
|
|
|
|
|
|
{{* This is the Action menu where contact related actions like 'ignore', 'hide' can be performed *}}
|
|
|
|
<ul id="contact-edit-actions" class="nav nav-pills preferences">
|
|
|
|
<li class="dropdown pull-right">
|
2017-10-20 15:21:42 +02:00
|
|
|
<button type="button" class="btn btn-link btn-sm dropdown-toggle" id="contact-edit-actions-button" data-toggle="dropdown" aria-expanded="false">
|
|
|
|
<i class="fa fa-angle-down" aria-hidden="true"></i> {{$contact_action_button}}
|
2017-03-15 04:47:02 +01:00
|
|
|
</button>
|
2016-07-26 09:09:40 +02:00
|
|
|
|
2021-05-19 23:47:15 +02:00
|
|
|
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="contact-edit-actions-button" aria-haspopup="true" id="contact-actions-menu">
|
2018-12-14 04:28:12 +01:00
|
|
|
{{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}}
|
|
|
|
{{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}}
|
2020-08-02 15:34:49 +02:00
|
|
|
{{if $contact_actions.updateprofile}}<li role="presentation"><a role="menuitem" href="{{$contact_actions.updateprofile.url}}" title="{{$contact_actions.updateprofile.title}}">{{$contact_actions.updateprofile.label}}</a></li>{{/if}}
|
|
|
|
{{if $lblsuggest || $poll_enabled || $contact_actions.updateprofile}}
|
2017-10-20 15:21:42 +02:00
|
|
|
<li role="presentation" class="divider"></li>
|
2017-03-15 04:47:02 +01:00
|
|
|
{{/if}}
|
2018-12-14 04:28:12 +01:00
|
|
|
<li role="presentation"><a role="menuitem" href="{{$contact_actions.block.url}}" title="{{$contact_actions.block.title}}">{{$contact_actions.block.label}}</a></li>
|
|
|
|
<li role="presentation"><a role="menuitem" href="{{$contact_actions.ignore.url}}" title="{{$contact_actions.ignore.title}}">{{$contact_actions.ignore.label}}</a></li>
|
2021-10-02 17:44:47 +02:00
|
|
|
{{if $contact_actions.revoke_follow.url}}<li role="presentation"><button role="menuitem" type="button" class="btn-link" title="{{$contact_actions.revoke_follow.title}}" onclick="addToModal('{{$contact_actions.revoke_follow.url}}');">{{$contact_actions.revoke_follow.label}}</button></li>{{/if}}
|
2016-07-26 09:09:40 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="contact-edit-status-wrapper">
|
2018-12-14 04:28:12 +01:00
|
|
|
<span id="contact-edit-contact-status">{{$contact_status}}</span>
|
2016-07-26 09:09:40 +02:00
|
|
|
|
|
|
|
{{* Block with status information about the contact *}}
|
|
|
|
<ul>
|
2018-12-14 04:28:12 +01:00
|
|
|
{{if $relation_text}}<li><div id="contact-edit-rel">{{$relation_text}}</div></li>{{/if}}
|
|
|
|
{{if $nettype}}<li><div id="contact-edit-nettype">{{$nettype}}</div></li>{{/if}}
|
2016-07-26 09:09:40 +02:00
|
|
|
|
|
|
|
{{if $poll_enabled}}
|
2018-12-14 04:28:12 +01:00
|
|
|
<li><div id="contact-edit-last-update-text">{{$lastupdtext}} <span id="contact-edit-last-updated">{{$last_update}}</span></div>
|
2016-07-26 09:09:40 +02:00
|
|
|
{{if $poll_interval}}
|
2018-12-18 14:36:36 +01:00
|
|
|
<span id="contact-edit-poll-text">{{$updpub}}</span> {{$poll_interval nofilter}}
|
2018-12-18 14:39:26 +01:00
|
|
|
<input class="btn btn-primary" type="submit" name="submit" value="{{$submit}}" />
|
2016-07-26 09:09:40 +02:00
|
|
|
{{/if}}
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
2018-12-14 04:28:12 +01:00
|
|
|
{{if $lost_contact}}<li><div id="lost-contact-message">{{$lost_contact}}</div></li>{{/if}}
|
|
|
|
{{if $insecure}}<li><div id="insecure-message">{{$insecure}}</div></li> {{/if}}
|
|
|
|
{{if $blocked && !$pending}}<li><div id="block-message">{{$blocked}}</div></li>{{/if}}
|
|
|
|
{{if $pending}}<li><div id="pending-message">{{$pending}}</div></li>{{/if}}
|
|
|
|
{{if $ignored}}<li><div id="ignore-message">{{$ignored}}</div></li>{{/if}}
|
|
|
|
{{if $archived}}<li><div id="archive-message">{{$archived}}</div></li>{{/if}}
|
2016-07-26 09:09:40 +02:00
|
|
|
</ul>
|
|
|
|
</div> {{* End of contact-edit-status-wrapper *}}
|
|
|
|
|
|
|
|
<div id="contact-edit-links-end"></div>
|
|
|
|
|
|
|
|
<div class="panel-group" id="contact-edit-tools" role="tablist" aria-multiselectable="true">
|
|
|
|
|
|
|
|
{{* Some information about the contact from the profile *}}
|
|
|
|
<div class="panel">
|
2020-08-16 02:18:05 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="contact-edit-profile">
|
2016-07-26 09:09:40 +02:00
|
|
|
<h4>
|
2021-11-20 08:16:30 +01:00
|
|
|
<button class="btn-link accordion-toggle" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-profile-collapse" aria-expanded="true" aria-controls="contact-edit-profile-collapse">
|
2016-07-26 09:09:40 +02:00
|
|
|
{{$contact_profile_label}}
|
2021-11-20 08:16:30 +01:00
|
|
|
</button>
|
2016-07-26 09:09:40 +02:00
|
|
|
</h4>
|
|
|
|
</div>
|
2020-08-16 02:18:05 +02:00
|
|
|
<div id="contact-edit-profile-collapse" class="panel-body panel-collapse collapse in" role="tabpanel" aria-labelledby="contact-edit-profile">
|
2016-07-26 09:09:40 +02:00
|
|
|
<div class="section-content-tools-wrapper">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
2021-09-14 23:39:03 +02:00
|
|
|
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$profileurllabel}}</div><a target="blank" href="{{$profileurl}}">{{$profileurl}}</a>
|
2016-07-26 09:09:40 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{if $location}}
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
<hr class="profile-separator">
|
2018-12-14 04:28:12 +01:00
|
|
|
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$location_label}}</div>
|
2019-01-06 22:04:10 +01:00
|
|
|
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$location nofilter}}</div>
|
2016-07-26 09:09:40 +02:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2016-09-25 17:28:00 +02:00
|
|
|
{{if $xmpp}}
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
<hr class="profile-separator">
|
2018-12-14 04:28:12 +01:00
|
|
|
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$xmpp_label}}</div>
|
|
|
|
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$xmpp}}</div>
|
2016-09-25 17:28:00 +02:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2021-08-09 03:39:09 +02:00
|
|
|
{{if $matrix}}
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
<hr class="profile-separator">
|
|
|
|
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$matrix_label}}</div>
|
|
|
|
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$matrix}}</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2016-07-26 09:09:40 +02:00
|
|
|
{{if $keywords}}
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
<hr class="profile-separator">
|
2018-12-14 04:28:12 +01:00
|
|
|
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$keywords_label}}</div>
|
|
|
|
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$keywords}}</div>
|
2016-07-26 09:09:40 +02:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{if $about}}
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
|
|
|
<hr class="profile-separator">
|
2018-12-14 04:28:12 +01:00
|
|
|
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$about_label}}</div>
|
2018-12-14 04:35:51 +01:00
|
|
|
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$about nofilter}}</div>
|
2016-07-26 09:09:40 +02:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
|
2018-08-25 15:48:00 +02:00
|
|
|
{{if $contact_settings_label}}
|
2016-07-26 09:09:40 +02:00
|
|
|
<div class="panel">
|
2020-08-16 02:18:05 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="contact-edit-settings">
|
2016-07-26 09:09:40 +02:00
|
|
|
<h4>
|
2021-11-20 08:16:30 +01:00
|
|
|
<button class="btn-link 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">
|
2018-12-14 04:28:12 +01:00
|
|
|
{{$contact_settings_label}}
|
2021-11-20 08:16:30 +01:00
|
|
|
</button>
|
2016-07-26 09:09:40 +02:00
|
|
|
</h4>
|
|
|
|
</div>
|
2020-08-16 02:18:05 +02:00
|
|
|
<div id="contact-edit-settings-collapse" class="panel-body panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-settings">
|
2016-07-26 09:09:40 +02:00
|
|
|
<div class="section-content-tools-wrapper">
|
|
|
|
|
2018-12-14 04:28:12 +01:00
|
|
|
<input type="hidden" name="contact_id" value="{{$contact_id}}">
|
2016-07-26 09:09:40 +02:00
|
|
|
|
2021-11-27 13:48:05 +01:00
|
|
|
{{include file="field_checkbox.tpl" field=$notify_new_posts}}
|
2016-07-26 09:09:40 +02:00
|
|
|
{{if $fetch_further_information}}
|
|
|
|
{{include file="field_select.tpl" field=$fetch_further_information}}
|
2020-06-06 22:43:23 +02:00
|
|
|
{{if $fetch_further_information.2 == 2 || $fetch_further_information.2 == 3}} {{include file="field_textarea.tpl" field=$ffi_keyword_denylist}} {{/if}}
|
2016-07-26 09:09:40 +02:00
|
|
|
{{/if}}
|
2020-10-24 23:42:49 +02:00
|
|
|
{{if $allow_remote_self}}
|
|
|
|
{{include file="field_select.tpl" field=$remote_self}}
|
|
|
|
{{/if}}
|
|
|
|
|
2016-07-26 09:09:40 +02:00
|
|
|
{{include file="field_checkbox.tpl" field=$hidden}}
|
|
|
|
|
2021-05-19 23:47:15 +02:00
|
|
|
<div class="pull-right settings-submit-wrapper">
|
2018-12-14 04:28:12 +01:00
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-07-26 09:09:40 +02:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-25 15:48:00 +02:00
|
|
|
{{/if}}
|
2016-07-26 09:09:40 +02:00
|
|
|
|
2018-08-25 15:48:00 +02:00
|
|
|
{{if $lbl_info1}}
|
2016-07-26 09:09:40 +02:00
|
|
|
<div class="panel">
|
2020-08-16 02:18:05 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="contact-edit-info">
|
2016-07-26 09:09:40 +02:00
|
|
|
<h4>
|
2021-11-20 08:16:30 +01:00
|
|
|
<button class="btn-link 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">
|
2018-12-14 04:28:12 +01:00
|
|
|
{{$lbl_info1}}
|
2021-11-20 08:16:30 +01:00
|
|
|
</button>
|
2016-07-26 09:09:40 +02:00
|
|
|
</h4>
|
|
|
|
</div>
|
2020-08-16 02:18:05 +02:00
|
|
|
<div id="contact-edit-info-collapse" class="panel-body panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-info">
|
2016-07-26 09:09:40 +02:00
|
|
|
<div class="section-content-tools-wrapper">
|
|
|
|
|
|
|
|
{{include file="field_textarea.tpl" field=$cinfo}}
|
|
|
|
|
2021-05-19 23:47:15 +02:00
|
|
|
<div class="pull-right settings-submit-wrapper">
|
2018-12-14 04:28:12 +01:00
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-07-26 09:09:40 +02:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
2018-04-12 10:33:28 +02:00
|
|
|
{{if $reason}}
|
2018-12-14 04:28:12 +01:00
|
|
|
<h4>{{$lbl_info2}}</h4>
|
2018-04-12 10:33:28 +02:00
|
|
|
<p>{{$reason}}</p>
|
|
|
|
<div class="clear"></div>
|
|
|
|
{{/if}}
|
2016-07-26 09:09:40 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-25 15:48:00 +02:00
|
|
|
{{/if}}
|
2016-07-26 09:09:40 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>{{* End of the form *}}
|
|
|
|
</div>{{* End of contact-edit-content-wrapper *}}
|
|
|
|
</div>
|
|
|
|
</div>
|