]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/contact_edit.tpl
Merge branch 'develop' into improvement/frio-action-links-to-buttons
[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}}
9
10
11                 <div id="contact-edit-content-wrapper">
12                         <form action="contacts/{{$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-link btn-sm dropdown-toggle" id="contact-edit-actions-button" data-toggle="dropdown" aria-expanded="true">
18                                                         <i class="fa fa-angle-down"></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="menuitem"><a href="{{$contact_actions.suggest.url}}" title="{{$contact_actions.suggest.title}}">{{$contact_actions.suggest.label}}</a></li>{{/if}}
23                                                         {{if $poll_enabled}}<li role="menuitem"><a href="{{$contact_actions.update.url}}" title="{{$contact_actions.update.title}}">{{$contact_actions.update.label}}</a></li>{{/if}}
24                                                         {{if $lblsuggest || $poll_enabled}}
25                                                         <li class="divider"></li>
26                                                         {{/if}}
27                                                         <li role="menuitem"><a href="{{$contact_actions.block.url}}" title="{{$contact_actions.block.title}}">{{$contact_actions.block.label}}</a></li>
28                                                         <li role="menuitem"><a href="{{$contact_actions.ignore.url}}" title="{{$contact_actions.ignore.title}}">{{$contact_actions.ignore.label}}</a></li>
29                                                         <li role="menuitem"><a href="{{$contact_actions.archive.url}}" title="{{$contact_actions.archive.title}}">{{$contact_actions.archive.label}}</a></li>
30                                                         <li role="menuitem"><button type="button" class="btn-link" title="{{$contact_actions.delete.title}}" onclick="addToModal('{{$contact_actions.delete.url}}?confirm=1');">{{$contact_actions.delete.label}}</button></li>
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}}
49                                                         {{/if}}
50                                                         </li>
51                                                 {{/if}}
52
53                                                 {{if $lost_contact}}<li><div id="lost-contact-message">{{$lost_contact}}</div></li>{{/if}}
54                                                 {{if $insecure}}<li><div id="insecure-message">{{$insecure}}</div></li> {{/if}}
55                                                 {{if $blocked}}<li><div id="block-message">{{$blocked}}</div></li>{{/if}}
56                                                 {{if $ignored}}<li><div id="ignore-message">{{$ignored}}</div></li>{{/if}}
57                                                 {{if $archived}}<li><div id="archive-message">{{$archived}}</div></li>{{/if}}
58                                         </ul>
59
60                                         <ul>
61                                                 <!-- <li><a href="network/0?nets=all&cid={{$contact_id}}" id="contact-edit-view-recent">{{$lblrecent}}</a></li> -->
62                                                 {{if $follow}}<li><div id="contact-edit-follow"><a href="{{$follow}}">{{$follow_text}}</a></div></li>{{/if}}
63                                         </ul>
64                                 </div> {{* End of contact-edit-status-wrapper *}}
65
66                                 <div id="contact-edit-links-end"></div>
67
68                                 <div class="panel-group" id="contact-edit-tools" role="tablist" aria-multiselectable="true">
69
70                                         {{* Some information about the contact from the profile *}}
71                                         <div class="panel">
72                                                 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-profile">
73                                                         <h4>
74                                                                 <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">
75                                                                         {{$contact_profile_label}}
76                                                                 </a>
77                                                         </h4>
78                                                 </div>
79                                                 <div id="contact-edit-profile-collapse" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="contact-edit-profile">
80                                                         <div class="section-content-tools-wrapper">
81                                                                 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
82                                                                         <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></dd></dl>
83                                                                 </div>
84
85                                                                 {{if $location}}
86                                                                 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
87                                                                         <hr class="profile-separator">
88                                                                         <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$location_label}}</div>
89                                                                         <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$location}}</div>
90                                                                 </div>
91                                                                 {{/if}}
92
93                                                                 {{if $xmpp}}
94                                                                 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
95                                                                         <hr class="profile-separator">
96                                                                         <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$xmpp_label}}</div>
97                                                                         <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$xmpp}}</div>
98                                                                 </div>
99                                                                 {{/if}}
100
101                                                                 {{if $keywords}}
102                                                                 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
103                                                                         <hr class="profile-separator">
104                                                                         <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$keywords_label}}</div>
105                                                                         <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$keywords}}</div>
106                                                                 </div>
107                                                                 {{/if}}
108
109                                                                 {{if $about}}
110                                                                 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
111                                                                         <hr class="profile-separator">
112                                                                         <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 text-muted">{{$about_label}}</div>
113                                                                         <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12">{{$about}}</div>
114                                                                 </div>
115                                                                 {{/if}}
116                                                         </div>
117                                                 </div>
118                                                 <div class="clear"></div>
119                                         </div>
120
121                                         <div class="panel">
122                                                 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-settings">
123                                                         <h4>
124                                                                 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-settings-collapse" aria-expanded="true" aria-controls="contact-edit-settings-collapse">
125                                                                         {{$contact_settings_label}}
126                                                                 </a>
127                                                         </h4>
128                                                 </div>
129                                                 <div id="contact-edit-settings-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-settings">
130                                                         <div class="section-content-tools-wrapper">
131
132                                                                 <input type="hidden" name="contact_id" value="{{$contact_id}}">
133
134                                                                 {{include file="field_checkbox.tpl" field=$notify}}
135                                                                 {{if $fetch_further_information}}
136                                                                         {{include file="field_select.tpl" field=$fetch_further_information}}
137                                                                         {{if $fetch_further_information.2 == 2 }} {{include file="field_textarea.tpl" field=$ffi_keyword_blacklist}} {{/if}}
138                                                                 {{/if}}
139                                                                 {{include file="field_checkbox.tpl" field=$hidden}}
140
141                                                                 <div class="form-group pull-right settings-submit-wrapper" >
142                                                                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit|escape:'html'}}">{{$submit}}</button>
143                                                                 </div>
144                                                                 <div class="clear"></div>
145                                                         </div>
146                                                 </div>
147                                         </div>
148
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="true" 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|escape:'html'}}">{{$submit}}</button>
164                                                                 </div>
165                                                                 <div class="clear"></div>
166                                                         </div>
167                                                 </div>
168                                         </div>
169
170                                         <div class="panel">
171                                                 <div class="section-subtitle-wrapper" role="tab" id="contact-edit-profile-select">
172                                                         <h4>
173                                                                 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#contact-edit-tools" href="#contact-edit-profile-select-collapse" aria-expanded="true" aria-controls="contact-edit-profile-select-collapse">
174                                                                         {{$lbl_vis1}}
175                                                                 </a>
176                                                         </h4>
177                                                 </div>
178                                                 <div id="contact-edit-profile-select-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="contact-edit-profile-select">
179                                                                 {{if $profile_select}}
180                                                                         <div id="contact-edit-profile-select-text">
181                                                                                 <p>{{$lbl_vis2}}</p>
182                                                                         </div>
183                                                                         <div class="form-group">
184                                                                         {{$profile_select}}
185                                                                         </div>
186                                                                         <div class="clear"></div>
187                                                                 {{/if}}
188
189                                                                 <div class="form-group pull-right settings-submit-wrapper" >
190                                                                         <button type="submit" name="submit" class="btn btn-primary" value="{{$submit|escape:'html'}}">{{$submit}}</button>
191                                                                 </div>
192                                                                 <div class="clear"></div>
193                                                         </div>
194                                                 </div>
195                                         </div>
196
197                                 </div>
198
199                         </form>{{* End of the form *}}
200                 </div>{{* End of contact-edit-content-wrapper *}}
201         </div>
202 </div>