{strip}
{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 $gContent->mInfo.content_id} {assign var=editLabel value="{tr}Edit{/tr} $conDescr"} {tr}{tr}Edit{/tr} {$gContent->mInfo.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}
{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 !$gContent->mInfo.content_id} {forminput} New Contact Entry {/forminput} {else} {forminput} Edit Contact Entry No : {$gContent->mInfo.content_id} {/forminput} {/if}
{include file="bitpackage:contact/edit_type_header.tpl"} {if $isPerson}
{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}
{/if} {if !$isPerson && ( $gContent->mInfo.organisation || !isset( $gContent->mInfo.contact_types ) )}
{formlabel label="Organisation" for="organisation"} {forminput} {/forminput}
{/if} {* include edit_personal.tpl *} {/legend} {if $gXrefInfo->mGroups && $gContent->isValid()} {jstabs} {foreach $gXrefInfo->mGroups as $xrefGroup} {include file=$gContent->getXrefListTemplate($xrefGroup->mTemplate) xrefGroup=$xrefGroup allow_add=true allow_edit=true} {/foreach} {/jstabs} {/if} {/jstab} {jstab title="Contact Notes"} {legend legend="Notes Body"}
{textarea rows=30 noformat=1 edit=$gContent->mInfo.edit}
{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} {include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl"} {/jstab} {/jstabs}
 
{/form}
{/strip}