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