2016-04-20 00:59:32 +00:00
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$tabs nofilter}}
|
2016-04-20 00:59:32 +00:00
|
|
|
|
2017-02-03 18:18:10 +00:00
|
|
|
<div id="contacts" class="generic-page-wrapper">
|
2016-04-20 00:59:32 +00:00
|
|
|
|
2016-05-19 23:50:56 +00:00
|
|
|
{{* The page heading with it's contacts counter *}}
|
|
|
|
<h2 class="heading">{{$header}} {{if $total}} ({{$total}}) {{/if}}</h2>
|
2016-04-20 00:59:32 +00:00
|
|
|
|
|
|
|
{{if $finding}}<h4>{{$finding}}</h4>{{/if}}
|
|
|
|
|
2016-04-20 01:15:35 +00:00
|
|
|
{{* The search input field to search for contacts *}}
|
2016-04-20 00:59:32 +00:00
|
|
|
<div id="contacts-search-wrapper">
|
2021-05-19 21:47:15 +00:00
|
|
|
<form id="contacts-search-form" class="navbar-form" role="search" action="{{$cmd}}" method="get">
|
2016-04-20 22:00:58 +00:00
|
|
|
<div class="row">
|
2018-07-09 22:36:50 +00:00
|
|
|
<div class="form-group form-group-search">
|
2018-12-14 03:28:12 +00:00
|
|
|
<input type="text" name="search" id="contacts-search" class="search-input form-control form-search" onfocus="this.select();" value="{{$search}}" placeholder="{{$desc nofilter}}"/>
|
2018-07-09 22:36:50 +00:00
|
|
|
<button class="btn btn-default btn-sm form-button-search" type="submit" id="contacts-search-submit">{{$submit}}</button>
|
2016-04-20 00:59:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<div id="contacts-search-end"></div>
|
|
|
|
|
2016-04-20 01:15:35 +00:00
|
|
|
{{* we need the form container to make batch actions work *}}
|
2018-10-13 11:29:56 +00:00
|
|
|
<form name="batch_actions_submit" action="{{$baseurl}}/contact/batch/" method="POST">
|
2021-09-06 16:23:15 +00:00
|
|
|
<input type="hidden" name="redirect_url" value="{{$cmd}}" />
|
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}" />
|
2016-04-20 21:08:01 +00:00
|
|
|
|
|
|
|
{{* we put here a hidden input element. This is needed to transmit the batch actions with javascript*}}
|
2018-12-14 03:28:12 +00:00
|
|
|
<input type="hidden" class="batch-action no-input fakelist" name="batch_submit" value="{{$l}}">
|
2016-04-20 21:08:01 +00:00
|
|
|
|
2016-04-20 01:15:35 +00:00
|
|
|
{{* We put the contact batch actions in a dropdown menu *}}
|
2016-04-20 00:59:32 +00:00
|
|
|
<ul class="nav nav-pills preferences">
|
|
|
|
<li class="dropdown pull-right">
|
2023-01-18 17:13:05 +00:00
|
|
|
<button type="button" class="btn btn-link dropdown-toggle" id="BatchActionDropdownMenuTools" data-toggle="dropdown" aria-expanded="false">
|
2016-06-25 10:21:13 +00:00
|
|
|
<i class="fa fa-angle-down"></i> {{$h_batch_actions}}
|
2017-03-15 03:47:02 +00:00
|
|
|
</button>
|
2016-04-20 00:59:32 +00:00
|
|
|
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="BatchActionDropdownMenuTools">
|
|
|
|
{{foreach $batch_actions as $n=>$l}}
|
2016-04-20 21:08:01 +00:00
|
|
|
<li role="menuitem">
|
2017-12-15 17:09:04 +00:00
|
|
|
{{* call the js batch_submit_handler. Have a look at the file mod_contacts.js *}}
|
2017-03-15 03:47:02 +00:00
|
|
|
<button type="button" class="btn-link" onclick="batch_submit_handler('{{$n}}', '{{$l}}')">{{$l}}</button>
|
2016-04-20 00:59:32 +00:00
|
|
|
</li>
|
|
|
|
{{/foreach}}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2016-04-28 19:35:33 +00:00
|
|
|
<div class="clear"></div>
|
|
|
|
<div id="contact-list">
|
2022-11-04 11:03:55 +00:00
|
|
|
{{* format each contact with the contact/entry.tpl *}}
|
2016-04-28 19:35:33 +00:00
|
|
|
<ul id="viewcontact_wrapper" class="viewcontact_wrapper media-list">
|
|
|
|
{{foreach $contacts as $contact}}
|
2022-11-04 11:03:55 +00:00
|
|
|
<li>{{include file="contact/entry.tpl"}}</li>
|
2016-04-28 19:35:33 +00:00
|
|
|
{{/foreach}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2017-12-15 17:09:04 +00:00
|
|
|
<div id="contact-edit-end" class="clear"></div>
|
2016-04-20 00:59:32 +00:00
|
|
|
</form>
|
|
|
|
|
2018-12-14 03:35:51 +00:00
|
|
|
{{$paginate nofilter}}
|
2016-04-20 00:59:32 +00:00
|
|
|
</div>
|