]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/contact_edit.tpl
Rename contact table column to ffi_keyword_denylist
[friendica.git] / view / theme / frio / templates / contact_edit.tpl
1
2 <div class="generic-page-wrapper">
3         {{if $header}}<h3>{{$header}}:&nbsp;{{$name}}{{if $account_type}}&nbsp;<small>({{$account_type}})</small>{{/if}}</h3>{{/if}}
4
5         <div id="contact-edit-wrapper" >
6
7                 {{* Insert Tab-Nav *}}
8                 {{$tab_str nofilter}}
9
10
11                 <div id="contact-edit-content-wrapper">
12                         <form action="contact/{{$contact_id}}" method="post" >
13
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>&nbsp;{{$contact_action_button}}
19                                                 </button>
20
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>
26                                                         {{/if}}
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}}
31                                                 </ul>
32                                         </li>
33                                 </ul>
34                                 <div class="clear"></div>
35
36
37                                 <div id="contact-edit-status-wrapper">
38                                         <span id="contact-edit-contact-status">{{$contact_status}}</span>
39
40                                         {{* Block with status information about the contact *}}
41                                         <ul>
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}}
44
45                                                 {{if $poll_enabled}}
46                                                         <li><div id="contact-edit-last-update-text">{{$lastupdtext}} <span id="contact-edit-last-updated">{{$last_update}}</span></div>
47                                                         {{if $poll_interval}}
48                                                                 <span id="contact-edit-poll-text">{{$updpub}}</span> {{$poll_interval nofilter}}
49                                                                 <input class="btn btn-primary" type="submit" name="submit" value="{{$submit}}" />
50                                                         {{/if}}
51                                                         </li>
52                                                 {{/if}}
53
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}}
60                                         </ul>
61                                 </div> {{* End of contact-edit-status-wrapper *}}
62
63                                 <div id="contact-edit-links-end"></div>
64
65                                 <div class="panel-group" id="contact-edit-tools" role="tablist" aria-multiselectable="true">
66
67                                         {{* Some information about the contact from the profile *}}
68                                         <div class="panel">
69                                                 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-profile">
70                                                         <h4>
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}}
73                                                                 </a>
74                                                         </h4>
75                                                 </div>
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>
80                                                                 </div>
81
82                                                                 {{if $location}}
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>
87                                                                 </div>
88                                                                 {{/if}}
89
90                                                                 {{if $xmpp}}
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>
95                                                                 </div>
96                                                                 {{/if}}
97
98                                                                 {{if $keywords}}
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>
103                                                                 </div>
104                                                                 {{/if}}
105
106                                                                 {{if $about}}
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>
111                                                                 </div>
112                                                                 {{/if}}
113                                                         </div>
114                                                 </div>
115                                                 <div class="clear"></div>
116                                         </div>
117
118                                         {{if $contact_settings_label}}
119                                         <div class="panel">
120                                                 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-settings">
121                                                         <h4>
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}}
124                                                                 </a>
125                                                         </h4>
126                                                 </div>
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">
129
130                                                                 <input type="hidden" name="contact_id" value="{{$contact_id}}">
131
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}}
136                                                                 {{/if}}
137                                                                 {{include file="field_checkbox.tpl" field=$hidden}}
138
139                                                                 <div class="form-group pull-right settings-submit-wrapper" >
140                                                                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
141                                                                 </div>
142                                                                 <div class="clear"></div>
143                                                         </div>
144                                                 </div>
145                                         </div>
146                                         {{/if}}
147
148                                         {{if $lbl_info1}}
149                                         <div class="panel">
150                                                 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-info">
151                                                         <h4>
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">
153                                                                         {{$lbl_info1}}
154                                                                 </a>
155                                                         </h4>
156                                                 </div>
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">
159
160                                                                 {{include file="field_textarea.tpl" field=$cinfo}}
161
162                                                                 <div class="form-group pull-right settings-submit-wrapper" >
163                                                                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
164                                                                 </div>
165                                                                 <div class="clear"></div>
166                                                                 {{if $reason}}
167                                                                 <h4>{{$lbl_info2}}</h4>
168                                                                 <p>{{$reason}}</p>
169                                                                 <div class="clear"></div>
170                                                                 {{/if}}
171                                                         </div>
172                                                 </div>
173                                         </div>
174                                         {{/if}}
175                                 </div>
176
177                         </form>{{* End of the form *}}
178                 </div>{{* End of contact-edit-content-wrapper *}}
179         </div>
180 </div>