diff options
| author | Lester Caine <lsces@lsces.co.uk> | 2010-10-21 09:02:06 +0100 |
|---|---|---|
| committer | Lester Caine <lsces@lsces.co.uk> | 2010-10-21 09:02:06 +0100 |
| commit | e83fcd4e33d156195ed781a40f2c1b2d088c5c48 (patch) | |
| tree | 35edd478f4fa6ac78d0382134ef2c1a6772c88d1 | |
| parent | 1f8abc823de1f9233f09db605bf6e19cd45824fa (diff) | |
| download | contact-e83fcd4e33d156195ed781a40f2c1b2d088c5c48.tar.gz contact-e83fcd4e33d156195ed781a40f2c1b2d088c5c48.tar.bz2 contact-e83fcd4e33d156195ed781a40f2c1b2d088c5c48.zip | |
Add active/inactive filtering and xref lookup
| -rw-r--r-- | templates/display_list_header.tpl | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/templates/display_list_header.tpl b/templates/display_list_header.tpl index 4967d15..941390e 100644 --- a/templates/display_list_header.tpl +++ b/templates/display_list_header.tpl @@ -1,19 +1,26 @@ <div class="navbar"> - {form class="find" legend="Find in Contact entries"} + {form class="find" legend="Find in Contact entries" id="data_options"} {foreach from=$hidden item=value key=name} <input type="hidden" name="{$name}" value="{$value}" /> {/foreach} - <input type="hidden" name="sort_mode" value="{$sort_mode|default:surname_desc}" /> + <input type="hidden" name="sort_mode" value="{$sort_mode|default:$smarty.request.sort_mode}" /> {include file="bitpackage:contact/contact_options_inc.tpl"} - <input type="submit" name="refresh" value="{tr}Update Contact Filter{/tr}" /><br /><br /> + <input type="submit" name="refresh" value="{tr}Update Contact Filter{/tr}" /> + {if $gBitUser->hasPermission('p_edit_contact')} + <input type="hidden" name="active" value="{$active|default:$smarty.request.active}" /> + <input type="submit" name="active" value="{tr}Active{/tr}" /> + <input type="submit" name="active" value="{tr}Inactive{/tr}" /> + <input type="submit" name="active" value="{tr}All{/tr}" /> + {/if} + <br /><br /> {biticon ipackage="icons" iname="edit-find" iexplain="Search"} + <label>{tr}Key{/tr}: <input size="6" type="text" name="find_key" value="{$find_key|default:$smarty.request.find_key|escape}" /></label> <label>{tr}Title{/tr}: <input size="30" type="text" name="find_title" value="{$find_title|default:$smarty.request.find_title|escape}" /></label> <label>{tr}Location{/tr}: <input size="30" type="text" name="find_location" value="{$find_location|default:$smarty.request.find_location|escape}" /></label> <label>{tr}Postcode{/tr}: <input size="10" type="text" name="find_postcode" value="{$find_postcode|default:$smarty.request.find_postcode|escape}" /></label> <input type="submit" name="search" value="{tr}Find{/tr}" /> <input type="button" onclick="location.href='{$smarty.server.PHP_SELF}{if $hidden}?{/if}{foreach from=$hidden item=value key=name}{$name}={$value}&{/foreach}'" value="{tr}Reset{/tr}" /> {/form} - </div> - + </div>
\ No newline at end of file |
