2013-12-17 05:19:06 -05:00
|
|
|
|
2015-10-18 11:12:48 -04:00
|
|
|
<h2>{{$header}}{{if $total}} ({{$total}}){{/if}}</h2>
|
2013-04-23 07:47:57 -04:00
|
|
|
|
|
|
|
{{if $finding}}<h4>{{$finding}}</h4>{{/if}}
|
|
|
|
|
|
|
|
<div id="contacts-search-wrapper">
|
2021-05-19 17:47:15 -04:00
|
|
|
<form id="contacts-search-form" action="{{$cmd}}" method="get">
|
2018-12-13 22:35:51 -05:00
|
|
|
<span class="contacts-search-desc">{{$desc nofilter}}</span>
|
2018-12-13 22:28:12 -05:00
|
|
|
<input type="text" name="search" id="contacts-search" class="search-input" onfocus="this.select();" value="{{$search}}" />
|
|
|
|
<input type="submit" name="submit" id="contacts-search-submit" value="{{$submit}}" />
|
2013-04-23 07:47:57 -04:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="contacts-search-end"></div>
|
|
|
|
|
2018-12-13 22:35:51 -05:00
|
|
|
{{$tabs nofilter}}
|
2013-04-23 07:47:57 -04:00
|
|
|
|
2018-10-13 07:29:56 -04:00
|
|
|
<form action="{{$baseurl}}/contact/batch/" method="POST">
|
2021-09-05 14:49:52 -04:00
|
|
|
<input type="hidden" name="redirect_url" value="{{$cmd}}"/>
|
2013-04-23 07:47:57 -04:00
|
|
|
{{foreach $contacts as $contact}}
|
|
|
|
{{include file="contact_template.tpl"}}
|
|
|
|
{{/foreach}}
|
|
|
|
<div id="contact-edit-end"></div>
|
2014-09-06 05:49:31 -04:00
|
|
|
<div id="contacts-actions">
|
2013-12-17 05:19:06 -05:00
|
|
|
{{foreach $batch_actions as $n=>$l}}
|
2018-12-13 22:28:12 -05:00
|
|
|
<input class="batch-action" name="{{$n}}" value="{{$l}}" type="submit">
|
2013-12-17 05:19:06 -05:00
|
|
|
{{/foreach}}
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
// javascript dialog to batch actions
|
|
|
|
$(".batch-action").click(function(e){
|
|
|
|
if (confirm($(this).attr('value')+" ?")) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
e.preventDefault();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
// add javascript confirm dialog to "drop" links. Plain html url have "?confirm=1" to show confirmation form, we need to remove it
|
|
|
|
$(".drop").each(function() {
|
|
|
|
$(this).attr('href', $(this).attr('href').replace("confirm=1","") );
|
|
|
|
$(this).click(function(e){
|
|
|
|
if (confirm("{{$contact_drop_confirm}}")) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
e.preventDefault();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2013-04-23 07:47:57 -04:00
|
|
|
|
2018-12-13 22:35:51 -05:00
|
|
|
{{$paginate nofilter}}
|
2013-04-23 07:47:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|