]> git.mxchange.org Git - friendica.git/blob - view/templates/acl_selector.tpl
58a0f483b8eb8a3bc2c0a32021ac566d686ace71
[friendica.git] / view / templates / acl_selector.tpl
1
2 <div id="acl-wrapper">
3         <input id="acl-search" autocomplete="off">
4         <a id="acl-showall">{{$showall}}</a>
5         <div id="acl-list">
6                 <div id="acl-list-content">
7                 </div>
8         </div>
9         <span id="acl-fields"></span>
10 </div>
11
12 <div class="acl-list-item" rel="acl-template" style="display:none">
13         <img data-src="{0}"><p>{1}</p>
14         <a class='acl-button-show'>{{$show}}</a>
15         <a class='acl-button-hide'>{{$hide}}</a>
16 </div>
17
18 {{if $networks}}
19 <hr style="clear:both"/>
20 <div id="profile-jot-email-label">{{$emailcc}}</div><input type="text" name="emailcc" id="profile-jot-email" title="{{$emtitle}}" />
21 <div id="profile-jot-email-end"></div>
22
23         {{if $jotnets_fields}}
24                 {{if $jotnets_fields|count < 3}}
25 <div class="profile-jot-net">
26                 {{else}}
27 <details class="profile-jot-net">
28         <summary>{{$jotnets_summary}}</summary>
29                 {{/if}}
30
31                 {{foreach $jotnets_fields as $jotnets_field}}
32                         {{if $jotnets_field.type == 'checkbox'}}
33                                 {{include file="field_checkbox.tpl" field=$jotnets_field.field}}
34                         {{elseif $jotnets_field.type == 'select'}}
35                                 {{include file="field_select.tpl" field=$jotnets_field.field}}
36                         {{/if}}
37                 {{/foreach}}
38
39                 {{if $jotnets_fields|count >= 3}}
40 </details>
41                 {{else}}
42 </div>
43                 {{/if}}
44         {{/if}}
45 {{/if}}
46
47 <script>
48 $(document).ready(function() {
49         if(typeof acl=="undefined"){
50                 acl = new ACL(
51                         baseurl + '/search/acl',
52                         [ {{$allowcid nofilter}},{{$allowgid nofilter}},{{$denycid nofilter}},{{$denygid nofilter}} ],
53                         {{$features.aclautomention}},
54                         {{if $APP->is_mobile}}true{{else}}false{{/if}}
55                 );
56         }
57 });
58 </script>