Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.8 KiB

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