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.

60 lines
1.6 KiB

  1. <h2>{{$header}}{{if $total}} ({{$total}}){{/if}}</h2>
  2. {{if $finding}}<h4>{{$finding}}</h4>{{/if}}
  3. <div id="contacts-search-wrapper">
  4. <form id="contacts-search-form" action="{{$cmd}}" method="get" >
  5. <span class="contacts-search-desc">{{$desc}}</span>
  6. <input type="text" name="search" id="contacts-search" class="search-input" onfocus="this.select();" value="{{$search|escape:'html'}}" />
  7. <input type="submit" name="submit" id="contacts-search-submit" value="{{$submit|escape:'html'}}" />
  8. </form>
  9. </div>
  10. <div id="contacts-search-end"></div>
  11. {{$tabs}}
  12. <form action="{{$baseurl}}/contacts/batch/" method="POST">
  13. {{foreach $contacts as $contact}}
  14. {{include file="contact_template.tpl"}}
  15. {{/foreach}}
  16. <div id="contact-edit-end"></div>
  17. <div id="contacts-actions">
  18. {{foreach $batch_actions as $n=>$l}}
  19. <input class="batch-action" name="{{$n}}" value="{{$l|escape:'html'}}" type="submit">
  20. {{/foreach}}
  21. </div>
  22. </form>
  23. <script>
  24. $(document).ready(function() {
  25. // javascript dialog to batch actions
  26. $(".batch-action").click(function(e){
  27. if (confirm($(this).attr('value')+" ?")) {
  28. return true;
  29. } else {
  30. e.preventDefault();
  31. return false;
  32. }
  33. });
  34. // add javascript confirm dialog to "drop" links. Plain html url have "?confirm=1" to show confirmation form, we need to remove it
  35. $(".drop").each(function() {
  36. $(this).attr('href', $(this).attr('href').replace("confirm=1","") );
  37. $(this).click(function(e){
  38. if (confirm("{{$contact_drop_confirm}}")) {
  39. return true;
  40. } else {
  41. e.preventDefault();
  42. return false;
  43. }
  44. });
  45. });
  46. });
  47. </script>
  48. {{$paginate}}