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}}" />
33 <input type="hidden" name="form_security_token" value="{{$form_security_token}}" />
35 {{* we put here a hidden input element. This is needed to transmit the batch actions with javascript*}}
36 <input type="hidden" class="batch-action no-input fakelist" name="batch_submit" value="{{$l}}">
38 {{* We put the contact batch actions in a dropdown menu *}}
39 <ul class="nav nav-pills preferences">
40 <li class="dropdown pull-right">
41 <button type="button" class="btn btn-link btn-sm dropdown-toggle" id="BatchActionDropdownMenuTools" data-toggle="dropdown" aria-expanded="false">
42 <i class="fa fa-angle-down"></i> {{$h_batch_actions}}
44 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="BatchActionDropdownMenuTools">
45 {{foreach $batch_actions as $n=>$l}}
47 {{* call the js batch_submit_handler. Have a look at the file mod_contacts.js *}}
48 <button type="button" class="btn-link" onclick="batch_submit_handler('{{$n}}', '{{$l}}')">{{$l}}</button>
54 <div class="clear"></div>
55 <div id="contact-list">
56 {{* format each contact with the contact_template.tpl *}}
57 <ul id="viewcontact_wrapper" class="viewcontact_wrapper media-list">
58 {{foreach $contacts as $contact}}
59 <li>{{include file="contact_template.tpl"}}</li>
63 <div id="contact-edit-end" class="clear"></div>
66 {{$paginate nofilter}}