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