{* $Header: /cvsroot/bitweaver/_bit_contact/templates/list_contact.tpl,v 1.3 2010/02/09 17:21:21 wjames5 Exp $ *}
{if $gBitUser->hasPermission('p_contact_admin')} {biticon ipackage="icons" iname="edit" iexplain="configure"} {/if} {bithelp}

{tr}Contact Records{/tr}

{tr}Find{/tr}
{* at the moment, the only working option to use the checkboxes for is deleting pages. so for now the checkboxes are visible iff $bit_p_remove is set. Other applications make sense as well (categorize, convert to pdf, etc). Add necessary corresponding permission here: *} {if $gBitUser->hasPermission('p_contact_expunge')} {* ... "or $bit_p_other_sufficient_condition_for_checkboxes eq 'y'" *} {assign var='checkboxes_on' value='y'} {else} {assign var='checkboxes_on' value='n'} {/if} {if $checkboxes_on eq 'y'} {/if} {if $contact_list_content_id eq 'y'} {/if}{if $contact_list_title eq 'y'} {/if}{if $contact_list_description eq 'y'} {/if} {cycle values="even,odd" print=false} {section name=changes loop=$list} {if $checkboxes_on eq 'y'} {/if} {if $contact_list_content_id eq 'y'} {/if} {if $contact_list_title eq 'y'} {/if} {if $contact_list_description eq 'y'} {/if} {sectionelse} {/section} {if $checkboxes_on eq 'y'} {/if}
 {tr}Contact Id{/tr}{tr}Title{/tr} {tr}Town{/tr} {tr}County{/tr} {tr}Postcode{/tr}{tr}Description{/tr}
{$list[changes].content_id|truncate:20:"...":true} {if $gBitUser->hasPermission('p_edit_contact')}
({tr}edit{/tr}) {/if}
{$list[changes].title} {$list[changes].town} {$list[changes].county} {$list[changes].postcode}
{$list[changes].pcdetail}
{$list[changes].data}
{tr}No records found{/tr}
{if $checkboxes_on eq 'y'} {* what happens to the checked items *} {/if}
{pagination}
{* end contact *}