{strip}
{bithelp}

{* this weird dual assign thing is cause smarty wont interpret backticks to object in assign tag - spiderr *} {assign var=conDescr value=$gContent->getContentTypeName()} {if $gContent->mInfo.page_id|default:false} {assign var=editLabel value="{tr}Edit{/tr} $conDescr"} {tr}{tr}Edit{/tr} {$gContent->mInfo.original_title|default:$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|default:false} {formfeedback warning=$errors.edit_conflict} {/if}
{if $errors} {formfeedback warning='There were one or more errors trying to store the page. Please correct them and then try saving again.'} {/if} {if $translateFrom}
{include file="bitpackage:wiki/page_header.tpl" pageInfo=$translateFrom->mInfo} {include file="bitpackage:wiki/page_display.tpl" pageInfo=$translateFrom->mInfo} {if $translateFrom->mInfo.google_guess}

{tr}Google's translation attempt{/tr}

{$translateFrom->mInfo.google_guess|nl2br} {/if}
{/if} {if !empty($preview)} {if $gContent->mInfo.edit_section == 1 }

{tr}Preview Section {$gContent->mInfo.section} of: {$title}{/tr}

{else}

{tr}Preview {$title}{/tr}

{/if}
{include file="bitpackage:wiki/page_header.tpl"} {include file="bitpackage:wiki/page_display.tpl"}
{/if} {if $page eq 'SandBox'}
{tr}The SandBox is a page where you can practice your editing skills, use the preview feature to preview the appeareance of the page, no versions are stored for this page.{/tr}
{/if} {form enctype="multipart/form-data" id="editpageform"} {jstabs} {jstab title="Body"} {legend legend="`$editLabel` Body"}
{if !empty($errors.title)} {formfeedback warning=$errors.title} {/if} {formlabel label="$conDescr Title"} {forminput} {if $gBitUser->hasPermission( 'p_wiki_rename_page' ) || !$gContent->mInfo.page_id} {else} {$page} {$gContent->mInfo.title|default:''|escape} {/if} {/forminput}
{if $gBitSystem->isFeatureActive( 'wiki_description' )}
{formlabel label="Summary" for="summary"} {forminput} {formhelp note="Brief description of the page. This is visible when you hover over a link to this page and just below the title of the wiki page."} {/forminput}
{/if} {if $gContent->mInfo.edit_section|default:0 == 1} {/if} {if !empty($gContent->mInfo.data)} {textarea edit=$gContent->mInfo.data formatguid=$gContent->mInfo.format_guid langcode=$gContent->mInfo.lang_code} {else} {textarea edit=''} {/if} {if $footnote}
{formlabel label="Footnotes" for="footnote"} {forminput} {formhelp note=""} {/forminput}
{/if} {if $page ne 'SandBox'}
{formlabel label="Comment" for="edit_comment"} {forminput} {formhelp note="Add a comment to illustrate your most recent changes."} {/forminput}
{/if} {if $gBitUser->hasPermission( 'p_wiki_save_minor' )}
{forminput label="checkbox"} mInfo.isminor)}checked="checked" {/if}/>Minor save {formhelp note="This will prevent the generation of a new version. You can use this, if your changes are minor."} {/forminput}
{/if} {include file="bitpackage:liberty/edit_content_alias_inc.tpl"} {include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl"} {if $gBitSystem->isFeatureActive( 'wiki_attachments' )} {include file="bitpackage:liberty/edit_storage_list.tpl"} {/if} {/legend} {/jstab} {include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_tab_tpl"} {if $gBitSystem->isFeatureActive( 'wiki_attachments' ) && $gBitUser->hasPermission('p_liberty_attach_attachments')} {jstab title="Attachments"} {legend legend="Attachments"} {include file="bitpackage:liberty/edit_storage.tpl"} {/legend} {/jstab} {/if} {if $gBitSystem->isFeatureActive( 'wiki_copyrights' )} {jstab title="Copyright"}
{legend legend="Copyright Settings" for="copyrightTitle"}
{formlabel label="Title" for="copyrightTitle"} {forminput} {/forminput}
{formlabel label="Authors" for="copyrightAuthors"} {forminput} {/forminput}
{formlabel label="Year" for="copyrightYear"} {forminput} {/forminput}
{formlabel label="License"} {forminput} {tr}{$wiki_license_page}{/tr} {formhelp note=""} {/forminput}
{if $wiki_submit_notice neq ""}
{formlabel label="Important"} {forminput} {$wiki_submit_notice} {formhelp note=""} {/forminput}
{/if} {/legend}
{/jstab} {/if} {if $gBitSystem->isFeatureActive( 'wiki_url_import' )} {jstab title="Import HMTL"} {legend legend="Import HMTL"}
{formlabel label="Import HTML from URL" for="suck_url"} {forminput} {formhelp note=""} {/forminput}
{forminput label="checkbox"} Try to convert HTML to wiki {formhelp note=""} {/forminput}
{* SPIDERKILL - disable wiki Import {if $gBitUser->hasPermission( 'p_wiki_admin' )} {tr}Import file{/tr}: { * {tr}export all versions{/tr} * } {/if} { * end upload file row * } *}
{/legend} {/jstab} {/if} {/jstabs}
{forminput} {/forminput}
{/form}
{/strip}