2 <script type="text/javascript">
3 var dropContact = "{{$contact_drop_confirm}}";
8 <div id="contacts" class="generic-page-wrapper">
10 {{* The page heading with it's contacts counter *}}
11 <h2 class="heading">{{$header}} {{if $total}} ({{$total}}) {{/if}}</h2>
13 {{if $finding}}<h4>{{$finding}}</h4>{{/if}}
15 {{* The search input field to search for contacts *}}
16 <div id="contacts-search-wrapper">
17 <form id="contacts-search-form" class="navbar-form" role="search" action="{{$cmd}}" method="get">
19 <div class="form-group form-group-search">
20 <input type="text" name="search" id="contacts-search" class="search-input form-control form-search" onfocus="this.select();" value="{{$search}}" placeholder="{{$desc nofilter}}"/>
21 <button class="btn btn-default btn-sm form-button-search" type="submit" id="contacts-search-submit">{{$submit}}</button>
28 <div id="contacts-search-end"></div>
30 {{* we need the form container to make batch actions work *}}
31 <form name="batch_actions_submit" action="{{$baseurl}}/contact/batch/" method="POST">
32 <input type="hidden" name="redirect_url" value="{{$cmd}}"/>
34 {{* we put here a hidden input element. This is needed to transmit the batch actions with javascript*}}
35 <input type="hidden" class="batch-action no-input fakelist" name="batch_submit" value="{{$l}}">
37 {{* We put the contact batch actions in a dropdown menu *}}
38 <ul class="nav nav-pills preferences">
39 <li class="dropdown pull-right">
40 <button type="button" class="btn btn-link btn-sm dropdown-toggle" id="BatchActionDropdownMenuTools" data-toggle="dropdown" aria-expanded="false">
41 <i class="fa fa-angle-down"></i> {{$h_batch_actions}}
43 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="BatchActionDropdownMenuTools">
44 {{foreach $batch_actions as $n=>$l}}
46 {{* call the js batch_submit_handler. Have a look at the file mod_contacts.js *}}
47 <button type="button" class="btn-link" onclick="batch_submit_handler('{{$n}}', '{{$l}}')">{{$l}}</button>
53 <div class="clear"></div>
54 <div id="contact-list">
55 {{* format each contact with the contact_template.tpl *}}
56 <ul id="viewcontact_wrapper" class="viewcontact_wrapper media-list">
57 {{foreach $contacts as $contact}}
58 <li>{{include file="contact_template.tpl"}}</li>
62 <div id="contact-edit-end" class="clear"></div>
65 {{$paginate nofilter}}