]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/contact_edit.tpl
Merge pull request #6978 from annando/no-queue
[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
62                                         <ul>
63                                                 <!-- <li><a href="network/?cid={{$contact_id}}" id="contact-edit-view-recent">{{$lblrecent}}</a></li> -->
64                                                 {{if $follow}}<li><div id="contact-edit-follow"><a href="{{$follow}}">{{$follow_text}}</a></div></li>{{/if}}
65                                         </ul>
66                                 </div> {{* End of contact-edit-status-wrapper *}}
67
68                                 <div id="contact-edit-links-end"></div>
69
70                                 <div class="panel-group" id="contact-edit-tools" role="tablist" aria-multiselectable="true">
71
72                                         {{* Some information about the contact from the profile *}}
73                                         <div class="panel">
74                                                 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-profile">
75                                                         <h4>
76                                                                 <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">
77                                                                         {{$contact_profile_label}}
78                                                                 </a>
79                                                         </h4>
80                                                 </div>
81                                                 <div id="contact-edit-profile-collapse" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="contact-edit-profile">
82                                                         <div class="section-content-tools-wrapper">
83                                                                 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
84                                                                         <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>
85                                                                 </div>
86
87                                                                 {{if $location}}
88                                                                 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
89                                                                         <hr class="profile-separator">
90                                                                         <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$location_label}}</div>
91                                                                         <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$location nofilter}}</div>
92                                                                 </div>
93                                                                 {{/if}}
94
95                                                                 {{if $xmpp}}
96                                                                 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
97                                                                         <hr class="profile-separator">
98                                                                         <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$xmpp_label}}</div>
99                                                                         <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$xmpp}}</div>
100                                                                 </div>
101                                                                 {{/if}}
102
103                                                                 {{if $keywords}}
104                                                                 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
105                                                                         <hr class="profile-separator">
106                                                                         <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$keywords_label}}</div>
107                                                                         <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$keywords}}</div>
108                                                                 </div>
109                                                                 {{/if}}
110
111                                                                 {{if $about}}
112                                                                 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
113                                                                         <hr class="profile-separator">
114                                                                         <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$about_label}}</div>
115                                                                         <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$about nofilter}}</div>
116                                                                 </div>
117                                                                 {{/if}}
118                                                         </div>
119                                                 </div>
120                                                 <div class="clear"></div>
121                                         </div>
122
123                                         {{if $contact_settings_label}}
124                                         <div class="panel">
125                                                 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-settings">
126                                                         <h4>
127                                                                 <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">
128                                                                         {{$contact_settings_label}}
129                                                                 </a>
130                                                         </h4>
131                                                 </div>
132                                                 <div id="contact-edit-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-settings">
133                                                         <div class="section-content-tools-wrapper">
134
135                                                                 <input type="hidden" name="contact_id" value="{{$contact_id}}">
136
137                                                                 {{include file="field_checkbox.tpl" field=$notify}}
138                                                                 {{if $fetch_further_information}}
139                                                                         {{include file="field_select.tpl" field=$fetch_further_information}}
140                                                                         {{if $fetch_further_information.2 == 2 || $fetch_further_information.2 == 3}} {{include file="field_textarea.tpl" field=$ffi_keyword_blacklist}} {{/if}}
141                                                                 {{/if}}
142                                                                 {{include file="field_checkbox.tpl" field=$hidden}}
143
144                                                                 <div class="form-group pull-right settings-submit-wrapper" >
145                                                                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
146                                                                 </div>
147                                                                 <div class="clear"></div>
148                                                         </div>
149                                                 </div>
150                                         </div>
151                                         {{/if}}
152
153                                         {{if $lbl_info1}}
154                                         <div class="panel">
155                                                 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-info">
156                                                         <h4>
157                                                                 <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">
158                                                                         {{$lbl_info1}}
159                                                                 </a>
160                                                         </h4>
161                                                 </div>
162                                                 <div id="contact-edit-info-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-info">
163                                                         <div class="section-content-tools-wrapper">
164
165                                                                 {{include file="field_textarea.tpl" field=$cinfo}}
166
167                                                                 <div class="form-group pull-right settings-submit-wrapper" >
168                                                                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
169                                                                 </div>
170                                                                 <div class="clear"></div>
171                                                                 {{if $reason}}
172                                                                 <h4>{{$lbl_info2}}</h4>
173                                                                 <p>{{$reason}}</p>
174                                                                 <div class="clear"></div>
175                                                                 {{/if}}
176                                                         </div>
177                                                 </div>
178                                         </div>
179                                         {{/if}}
180                                         {{if $lbl_vis1}}
181                                         <div class="panel">
182                                                 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-profile-select">
183                                                         <h4>
184                                                                 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-profile-select-collapse" aria-expanded="false" aria-controls="contact-edit-profile-select-collapse">
185                                                                         {{$lbl_vis1}}
186                                                                 </a>
187                                                         </h4>
188                                                 </div>
189                                                 <div id="contact-edit-profile-select-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-profile-select">
190                                                         <div class="section-content-tools-wrapper">
191                                                                 {{if $profile_select}}
192                                                                         <div id="contact-edit-profile-select-text">
193                                                                                 <p>{{$lbl_vis2}}</p>
194                                                                         </div>
195                                                                         <div class="form-group">
196                                                                         {{$profile_select nofilter}}
197                                                                         </div>
198                                                                         <div class="clear"></div>
199                                                                 {{/if}}
200
201                                                                 <div class="form-group pull-right settings-submit-wrapper" >
202                                                                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
203                                                                 </div>
204                                                                 <div class="clear"></div>
205                                                         </div>
206                                                 </div>
207                                         </div>
208                                         {{/if}}
209                                 </div>
210
211                         </form>{{* End of the form *}}
212                 </div>{{* End of contact-edit-content-wrapper *}}
213         </div>
214 </div>