]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/acl_selector.tpl
Merge pull request #7811 from tobiasd/20191103-clickoncat
[friendica.git] / view / theme / frio / templates / acl_selector.tpl
index 9ccd5326c18358231a53071991fe094608422808..e335a4f3ccefab08763699cf8caca138712cd67c 100644 (file)
@@ -1,8 +1,10 @@
 
 <div id="acl-wrapper">
-       <button id="acl-showall" class="btn btn-block btn-default"><i class="fa fa-globe"></i> {{$showall}}</button>
        <div class="form-group form-group-search">
-               <input type="text" id="acl-search" class="form-control form-search">
+               <button id="acl-showall" class="btn btn-block btn-default"><i class="fa fa-globe"></i> {{$showall}}</button>
+       </div>
+       <div class="form-group form-group-search">
+               <input type="text" id="acl-search" class="form-control form-search" autocomplete="off">
        </div>
        <div id="acl-list">
                <div id="acl-list-content"></div>
 <hr style="clear:both"/>
 <div class="form-group">
        <label for="profile-jot-email" id="profile-jot-email-label">{{$emailcc}}</label>
-       <input type="text" name="emailcc" id="profile-jot-email" class="form-control" title="{{$emtitle|escape:'html'}}" />
+       <input type="text" name="emailcc" id="profile-jot-email" class="form-control" title="{{$emtitle}}" />
 </div>
 <div id="profile-jot-email-end"></div>
 
-{{if $jotnets}}
-{{$jotnets}}
-{{/if}}{{/if}}
+       {{if $jotnets_fields}}
+               {{if $jotnets_fields|count < 3}}
+<div class="profile-jot-net">
+               {{else}}
+<details class="profile-jot-net">
+       <summary>{{$jotnets_summary}}</summary>
+               {{/if}}
+
+               {{foreach $jotnets_fields as $jotnets_field}}
+                       {{if $jotnets_field.type == 'checkbox'}}
+                               {{include file="field_checkbox.tpl" field=$jotnets_field.field}}
+                       {{elseif $jotnets_field.type == 'select'}}
+                               {{include file="field_select.tpl" field=$jotnets_field.field}}
+                       {{/if}}
+               {{/foreach}}
+
+               {{if $jotnets_fields|count >= 3}}
+</details>
+               {{else}}
+</div>
+               {{/if}}
+       {{/if}}
+{{/if}}
 
 <script type="text/javascript">
 $(document).ready(function() {
        if(typeof acl=="undefined"){
                acl = new ACL(
-                       baseurl+"/acl",
-                       [ {{$allowcid}},{{$allowgid}},{{$denycid}},{{$denygid}} ],
+                       baseurl + '/search/acl',
+                       [ {{$allowcid nofilter}},{{$allowgid nofilter}},{{$denycid nofilter}},{{$denygid nofilter}} ],
                        {{$features.aclautomention}},
                        {{if $APP->is_mobile}}true{{else}}false{{/if}}
                );