{* $Header: /cvsroot/bitweaver/_bit_contact/templates/edit.tpl,v 1.4 2010/04/17 04:28:30 wjames5 Exp $ *}
{bithelp}
{assign var=serviceEditTpls value=$gLibertySystem->getServiceValues('content_edit_tpl')}

{* this weird dual assign thing is cause smarty wont interpret backticks to object in assign tag - spiderr *} {if $contactInfo.content_id} {assign var=editLabel value="{tr}Edit{/tr} $conDescr"} {tr}{tr}Edit{/tr} {$contactInfo.title}{/tr} {else} {assign var=editLabel value="{tr}Create{/tr} $conDescr"} {tr}{$editLabel}{/tr} {/if}

{* Check to see if there is an editing conflict *} {if $errors.edit_conflict} {formfeedback warning=`$errors.edit_conflict`} {/if} {strip}
{form enctype="multipart/form-data" id="editpageform"} {jstabs} {jstab title="$editLabel Body"} {legend legend="`$editLabel` Details"}
{formfeedback warning=`$errors.names`} {formfeedback warning=`$errors.store`} {formlabel label="$conDescr Contact" for="contentno"} {if !$contactInfo.contact_id} {forminput} New Contact Entry {/forminput} {else} {forminput} Edit Contact Entry No : {$contactInfo.contact_id} {/forminput} {/if} {formlabel label="Contact Type" for="contact_type"} {forminput} {html_options name="$contactInfo.contact_type_list[$contactInfo.contact_type]" options=$contactInfo.contact_type_list selected=`$contactInfo.contact_type`} {formhelp note="Users of only this group can view the content of this category."} {/forminput}
{formlabel label="Title" for="prefix"} {forminput} {/forminput}
{formlabel label="Forename" for="forename"} {forminput} {/forminput}
{formlabel label="Surname" for="surname"} {forminput} {/forminput}
{formlabel label="Suffix" for="suffix"} {forminput} {/forminput}
{formlabel label="Organisation" for="organisation"} {forminput} {/forminput}
{formlabel label="NI Number" for="nino"} {forminput} {/forminput}
{formlabel label="Date of Birth" for="dob"} {forminput} {/forminput}
{formlabel label="Date of eighteen" for="eighteenth"} {forminput} {/forminput}
{formlabel label="Date of Death" for="dod"} {forminput} {/forminput}
{formlabel label="Note" for="description"} {forminput} {/forminput}
{/legend} {/jstab} {jstab title="Contact Address"} {include file="bitpackage:contact/display_address.tpl"} {/jstab} {jstab title="Contact Notes"} {legend legend="Notes Body"}
{forminput} {/forminput}
{if $page ne 'SandBox'}
{formlabel label="Comment" for="comment"} {forminput} {formhelp note="Add a comment to illustrate your most recent changes."} {/forminput}
{/if} {/legend} {/jstab} {jstab title="Liberty Extensions"} {if $serviceEditTpls.categorization } {legend legend="Categorize"} {include file=$serviceEditTpls.categorization} {/legend} {/if} {/jstab} {/jstabs} {include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl"}
 
{/form}
{/strip}