0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
14.1-0
/
standard
/
htdocs
/
templates
/
[
Home
]
File: tiki-editpage.tpl
{* $Id: tiki-editpage.tpl 55818 2015-07-04 12:45:34Z chibaguy $ *} {extends 'layout_edit.tpl'} {block name=title} {if $translation_mode eq 'n'} {title url="tiki-editpage.php?page=$page"}{if isset($hdr) && $prefs.wiki_edit_section eq 'y'}{tr}Edit Section:{/tr}{else}{tr}Edit:{/tr}{/if} {$page}{if $pageAlias ne ''} ({$pageAlias}){/if}{/title} {else} {title}{tr}Update '{$page}'{/tr}{/title} {/if} {/block} {block name=content} {if $page|lower neq 'sandbox' and $prefs.feature_contribution eq 'y' and $prefs.feature_contribution_mandatory eq 'y'} {remarksbox type='tip' title="{tr}Tip{/tr}"} <strong class='mandatory_note'>{tr}Fields marked with an * are mandatory.{/tr}</strong> {/remarksbox} {/if} {if isset($customTip)} {remarksbox type='tip' title=$customTipTitle} {tr}{$customTip|escape}{/tr} {/remarksbox} {/if} {if isset($wikiHeaderTpl)} {$wikiHeaderTpl} {/if} {if $prefs.ajax_autosave eq "y"} <div class="pull-right"> {self_link _icon_name="view" _class="previewBtn tips" _ajax="n" _title=":{tr}Preview your changes{/tr}"} {/self_link} </div> {if $prefs.feature_wikilingo eq "y" && $useWikiLingo eq TRUE} {if $wysiwyg eq 'y'} {jq} $(".previewBtn").click(function(){ $(document).trigger('previewWikiLingo', [true, $('#editwiki-ui'), $('#editpageform'), $('#autosave_preview').slideDown('slow')]); return false; }); {/jq} {else} {jq} $(".previewBtn").click(function(){ $(document).trigger('previewWikiLingo', [false, $('#editwiki').val(), $('#editpageform'), $('#autosave_preview').slideDown('slow')]); return false; }); {/jq} {/if} {else} {jq} $(".previewBtn").click(function(){ if ($('#autosave_preview:visible').length === 0) { auto_save('editwiki', autoSaveId); if (!ajaxPreviewWindow) { $('#autosave_preview').slideDown('slow', function(){ ajax_preview( 'editwiki', autoSaveId, true );}); } } else { $('#autosave_preview').slideUp('slow'); } return false; });{/jq} {/if} {/if} {if isset($data.draft)} {tr}Draft written on{/tr} {$data.draft.lastModif|tiki_long_time}<br/> {if $data.draft.lastModif < $data.lastModif} <b>{tr}Warning: new versions of this page have been made after this draft{/tr}</b> {/if} {/if} {if $page|lower eq 'sandbox'} {remarksbox type='tip' title="{tr}Tip{/tr}"} {tr}The SandBox is a page where you can practice your editing skills, use the preview feature to preview the appearance of the page, no versions are stored for this page.{/tr} {/remarksbox} {/if} {if $category_needed eq 'y'} {remarksbox type='Warning' title="{tr}Warning{/tr}"} <div class="highlight"><em class='mandatory_note'>{tr}A category is mandatory{/tr}</em></div> {/remarksbox} {/if} {if $contribution_needed eq 'y'} {remarksbox type='Warning' title="{tr}Warning{/tr}"} <div class="highlight"><em class='mandatory_note'>{tr}A contribution is mandatory{/tr}</em></div> {/remarksbox} {/if} {if isset($summary_needed) && $summary_needed eq 'y'} {remarksbox type='Warning' title="{tr}Warning{/tr}"} <div class="highlight"><em class='mandatory_note'>{tr}An edit summary is mandatory{/tr}</em></div> {/remarksbox} {/if} {if $likepages} <div> {tr}Perhaps you are looking for:{/tr} {if $likepages|@count < 0} <ul> {section name=back loop=$likepages} <li> <a href="{$likepages[back]|sefurl}" class="wiki">{$likepages[back]|escape}</a> </li> {/section} </ul> {else} <div class="table-responsive"> <table class="table normal"> <tr> {cycle name=table values=',,,,</tr><tr>' print=false advance=false} {section name=back loop=$likepages} <td><a href="{$likepages[back]|sefurl}" class="wiki">{$likepages[back]|escape}</a></td> {cycle name=table} {/section} </tr> </table> </div> {/if} </div> {/if} {if $preview or $prefs.ajax_autosave eq "y"} {include file='tiki-preview.tpl'} {/if} {if isset($diff_style)} <div id="diff_outer"> {if $translation_mode == 'y'} <div class="translation_message"> <h2>{tr}Translate from:{/tr} {$source_page|escape}</h2> {tr}Changes that need to be translated are highlighted below.{/tr} </div> {/if} <div id="diff_history"> {include file='pagehistory.tpl' cant=0} {if $diff_summaries} <div class="wikitext" id="diff_versions"> <ul> {foreach item=diff from=$diff_summaries} <li> {tr}Version:{/tr} {$diff.version|escape} - {$diff.comment|escape|default:"<em>{tr}No comment{/tr}</em>"} {if count($diff_summaries) gt 1} {assign var=diff_version value=$diff.version} {icon name="next" onclick="\$('input[name=oldver]').val($diff_version);\$('#editpageform').submit();return false;" title=":{tr}View{/tr}" style="cursor: pointer"} {/if} </li> {/foreach} {button _onclick="\$('input[name=oldver]').val(1);\$('#editpageform').submit();return false;" _text="{tr}All Versions{/tr}" _ajax="n"} </ul> </div> {/if} </div> </div> {/if} {if $prompt_for_edit_or_translate == 'y'} {include file='tiki-edit-page-include-prompt_for_edit_or_translate.tpl'} {/if} <form enctype="multipart/form-data" method="post" action="tiki-editpage.php?page={$page|escape:'url'}" class="form-horizontal" id='editpageform' name='editpageform'> <input type="hidden" name="no_bl" value="y"> {if !empty($smarty.request.returnto)}<input type="hidden" name="returnto" value="{$smarty.request.returnto}">{/if} {if isset($diff_style)} <select name="diff_style" class="wikiaction"title="{tr}Edit wiki page{/tr}|{tr}Select the style used to display differences to be translated.{/tr}"> <option value="htmldiff"{if isset($diff_style) && $diff_style eq "htmldiff"} selected="selected"{/if}>{tr}html{/tr}</option> <option value="inlinediff"{if isset($diff_style) && $diff_style eq "inlinediff"} selected="selected"{/if} >{tr}text{/tr}</option> <option value="inlinediff-full"{if isset($diff_style) && $diff_style eq "inlinediff-full"} selected="selected"{/if} >{tr}text full{/tr}</option> </select> <input type="submit" class="wikiaction tips btn btn-default" title="{tr}Edit wiki page{/tr}|{tr}Change the style used to display differences to be translated.{/tr}" name="preview" value="{tr}Change diff styles{/tr}" onclick="needToConfirm=false;"> {/if} {if $page_ref_id}<input type="hidden" name="page_ref_id" value="{$page_ref_id}">{/if} {if isset($hdr)}<input type="hidden" name="hdr" value="{$hdr}">{/if} {if isset($cell)}<input type="hidden" name="cell" value="{$cell}">{/if} {if isset($pos)}<input type="hidden" name="pos" value="{$pos}">{/if} {if $current_page_id}<input type="hidden" name="current_page_id" value="{$current_page_id}">{/if} {if $add_child}<input type="hidden" name="add_child" value="true">{/if} {if $preview or $prefs.wiki_actions_bar eq 'top' or $prefs.wiki_actions_bar eq 'both'} <div class='top_actions'> {include file='wiki_edit_actions.tpl' wysiwyg=$wysiwyg} </div> {/if} <div class="form-group margin-side-0"> {if isset($page_badchars_display)} {if $prefs.wiki_badchar_prevent eq 'y'} {remarksbox type=errors title="{tr}Invalid page name{/tr}"} {tr _0=$page_badchars_display|escape}The page name specified contains unallowed characters. It will not be possible to save the page until those are removed: <strong>%0</strong>{/tr} {/remarksbox} {else} {remarksbox type=tip title="{tr}Tip{/tr}"} {tr _0=$page_badchars_display|escape}The page name specified contains characters that may render the page hard to access. You may want to consider removing those: <strong>%0</strong>{/tr} {/remarksbox} {/if} <p>{tr}Page name:{/tr} <input type="text" name="page" value="{$page|escape}"> <input type="submit" class="btn btn-default btn-sm" name="rename" value="{tr}Rename{/tr}"> </p> {else} <input type="hidden" name="page" value="{$page|escape}"> {* the above hidden field is needed for auto-save to work *} {/if} {tabset name='tabs_editpage' cookietab=1} {tab name="{tr}Edit page{/tr}"} <h2>{tr}Edit page{/tr}</h2> {if $translation_mode == 'y'} <div class="translation_message"> <h2>{tr}Translate to:{/tr} {$target_page|escape}</h2> {tr}Reproduce the changes highlighted on the left using the editor below{/tr}. </div> {/if} {textarea codemirror='true' syntax='tiki' useWikiLingo=$useWikiLingo}{$pagedata}{/textarea} {if $prefs.wiki_freetags_edit_position eq 'edit'} {if $prefs.feature_freetags eq 'y' and $tiki_p_freetags_tag eq 'y'} <fieldset> <legend>{tr}Tags{/tr}</legend> <table> {include file='freetag.tpl'} </table> </fieldset> {/if} {/if} {if $page|lower neq 'sandbox'} <fieldset> <label for="comment">{tr}Describe the change you made{/tr} {help url='Editing+Wiki+Pages' desc="{tr}Edit comment: Enter some text to describe the changes you are currently making{/tr}"}</label> <input class="form-control wikiedit" type="text" id="comment" name="comment" value="{$commentdata|escape}"> {if isset($show_watch) && $show_watch eq 'y'} <label for="watch">{tr}Monitor this page{/tr}</label> <input type="checkbox" id="watch" name="watch" value="1"{if $watch_checked eq 'y'} checked="checked"{/if}> {/if} </fieldset> {if $prefs.feature_contribution eq 'y'} <fieldset> <legend>{tr}Contributions{/tr}</legend> <table> {include file='contribution.tpl'} </table> </fieldset> {/if} {if (!isset($wysiwyg) || $wysiwyg neq 'y') and $prefs.feature_wiki_pictures eq 'y' and $tiki_p_upload_picture eq 'y' and $prefs.feature_filegals_manager neq 'y'} <fieldset> <legend>{tr}Upload picture{/tr}</legend> <input type="hidden" name="MAX_FILE_SIZE" value="1000000000"> <input type="hidden" name="hasAlreadyInserted" value=""> <input type="hidden" name="prefix" value="/img/wiki_up/{if $tikidomain}{$tikidomain}/{/if}"> <input name="picfile1" type="file" onchange="javascript:insertImgFile('editwiki','picfile1','hasAlreadyInserted','img')"> <div id="new_img_form"></div> <a href="javascript:addImgForm()" onclick="needToConfirm = false;">{tr}Add another image{/tr}</a> </fieldset> {/if} {/if} {/tab} {if $prefs.feature_categories eq 'y' and $tiki_p_modify_object_categories eq 'y' and count($categories) gt 0} {tab name="{tr}Categories{/tr}"} <h2>{tr}Categories{/tr}</h2> {if $categIds} {remarksbox type="note" title="{tr}Note:{/tr}"} <strong>{tr}Categorization has been preset for this edit{/tr}</strong> {/remarksbox} {section name=o loop=$categIds} <input type="hidden" name="cat_categories[]" value="{$categIds[o]}"> {/section} <input type="hidden" name="cat_categorize" value="on"> {if $prefs.feature_wiki_categorize_structure eq 'y'} {tr}Categories will be inherited from the structure top page{/tr} {/if} {else} {if $page|lower ne 'sandbox'} {include file='categorize.tpl' notable='y'} {/if}{* sandbox *} {/if} {/tab} {/if} {if $prefs.wiki_freetags_edit_position eq 'freetagstab'} {if $prefs.feature_freetags eq 'y' and $tiki_p_freetags_tag eq 'y'} {tab name="{tr}Tags{/tr}"} <h2>{tr}Tags{/tr}</h2> {include file='freetag.tpl'} {/tab} {/if} {/if} {if !empty($showPropertiesTab)} {tab name="{tr}Properties{/tr}"} <h2>{tr}Properties{/tr}</h2> {if $prefs.feature_wiki_templates eq 'y' and $tiki_p_use_content_templates eq 'y'} <div class="form-group"> <label for="templateId" class="col-sm-2 control-label">{tr}Apply template{/tr}</label> <div class="col-sm-10 form-inline"> <div class="col-sm-7"> <select class="form-control" id="templateId" name="templateId" onchange="needToConfirm=false;$('#editpageform').submit();"> <option value="0">{tr}none{/tr}</option> {section name=ix loop=$templates} <option value="{$templates[ix].templateId|escape}" {if $templateId eq $templates[ix].templateId}selected="selected"{/if}>{tr}{$templates[ix].name|escape}{/tr}</option> {/section} </select> </div> {if $tiki_p_edit_content_templates eq 'y'} <a href="tiki-admin_content_templates.php" class="btn btn-default" onclick="needToConfirm = true;"> {icon name="cog"} {tr}Admin Content Templates{/tr} </a> {/if} </div> </div> {/if} {if $prefs.feature_wiki_usrlock eq 'y' && ($tiki_p_lock eq 'y' || $tiki_p_admin_wiki eq 'y')} <div class="form-group"> <label for="lock_it" class="col-sm-2 control-label">{tr}Lock this page{/tr}</label> <div class="col-sm-10 checkbox"> <input type="checkbox" id="lock_it" name="lock_it" {if $lock_it eq 'y'}checked="checked"{/if}> </div> </div> {/if} {if $prefs.feature_wikilingo eq 'y'} <div class="form-group"> <label for="wiki-parser" class="col-sm-2 control-label">{tr}Choose your parser{/tr}</label> <div class="col-sm-10 checkbox"> <select id="wiki-parser-choice" name="wiki_parser" onchange="window.update_output_type(this);"> <option value="">{tr}tiki Wiki Syntax Parser {/tr}</option> <option value="wikiLingo" {if $outputType eq 'wikiLingo' or $quickedit eq TRUE}selected="selected"{/if}>{tr}wikiLingo{/tr}</option> </select> </div> </div> {/if} {if $prefs.wiki_comments_allow_per_page neq 'n'} <div class="form-group"> <label for="comments_enabled" class="col-sm-2 control-label">{tr}Allow comments on this page{/tr}</label> <div class="col-sm-10 checkbox"> <input type="checkbox" id="comments_enabled" name="comments_enabled" {if $comments_enabled eq 'y'}checked="checked"{/if}> </div> </div> {/if} {if $prefs.feature_wiki_allowhtml eq 'y' and $tiki_p_use_HTML eq 'y' and ($wysiwyg neq 'y' or $prefs.wysiwyg_htmltowiki eq 'y')} <div class="form-group"> <label class="col-sm-2 control-label" for="allowhtml">{tr}Allow HTML{/tr}</label> <div class="col-sm-10 checkbox"> <input type="checkbox" name="allowhtml" {if $allowhtml eq 'y'}checked="checked"{/if}> {remarksbox type=tip title="{tr}Tip{/tr}"} {tr }Per-page option: HTML in Wiki Pages is parsed by the browser, instead of HTML tags being displayed as typed.{/tr} {/remarksbox} </div> </div> {if $prefs.ajax_autosave eq "y"} {jq} $("input[name=allowhtml]").change(function() { auto_save( "editwiki", autoSaveId ); }); {/jq} {/if} {else} <input type="hidden" name="allowhtml" value="{if $allowhtml eq 'y'}on{/if}"> {/if} {if $prefs.feature_wiki_import_html eq 'y'} <div class="form-group"> <label for="suck_url" class="col-sm-2 control-label">{tr}Import HTML{/tr}</label> <div class="col-sm-10 form-group"> <div class="col-sm-4"> <input class="form-control wikiedit" type="text" id="suck_url" name="suck_url" value="{$suck_url|escape}"> </div> <input type="submit" class="wikiaction btn btn-default" name="do_suck" value="{tr}Import{/tr}" onclick="needToConfirm=false;"> <label><input type="checkbox" name="parsehtml" {if $parsehtml eq 'y'}checked="checked"{/if}> {tr}Try to convert HTML to wiki{/tr}. </label> </div> </div> {/if} {if $prefs.feature_wiki_import_page eq 'y'} <div class="form-group"> <label for="userfile1" class="col-sm-2 control-label">{tr}Import page{/tr}</label> <div class="col-sm-10 form-group"> <div class="col-sm-6"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000000"> <input class="form-control" id="userfile1" name="userfile1" type="file"> </div> <input type="submit" class="wikiaction btn btn-default" name="attach" value="{tr}Import{/tr}" onclick="javascript:needToConfirm=false;insertImgFile('editwiki','userfile2','hasAlreadyInserted2','file', 'page2', 'attach_comment'); return true;"> </div> </div> {/if} {if $prefs.feature_wiki_export eq 'y' and $tiki_p_export_wiki eq 'y'} <div class="form-group"> <label for="" class="col-sm-2 control-label">{tr}Export pages{/tr}</label> <div class="col-sm-10"> <a href="tiki-export_wiki_pages.php?page={$page|escape:"url"}&all=1" class="btn btn-default">{tr}export all versions{/tr}</a> </div> </div> {/if} {if !isset($wysiwyg) || $wysiwyg neq 'y'} {if $prefs.feature_wiki_attachments == 'y' and ($tiki_p_wiki_attach_files eq 'y' or $tiki_p_wiki_admin_attachments eq 'y')} <input type="hidden" name="MAX_FILE_SIZE" value="1000000000"> <input type="hidden" name="hasAlreadyInserted2" value=""> <input type="hidden" id="page2" name="page2" value="{$page}"> <div class="form-group"> <label for="attach-upload" class="col-sm-2 control-label">{tr}Attachments{/tr}</label> <div class="col-sm-10"> <div class="form-group"> <label for="attach-comment" class="control-label col-sm-2">{tr}Upload file{/tr}</label> <div class="col-sm-10"> <input name="userfile2" type="file" id="attach-upload" class="btn btn-default"> </div> </div> <div class="form-group"> <label for="attach-comment" class="col-sm-2 control-label">{tr}Comment{/tr}</label> <div class="col-sm-8"> <input type="text" name="attach_comment" class="form-control" maxlength="250" id="attach-comment"> </div> </div> </div> <div class="col-sm-6 col-sm-offset-4"> <input type="submit" class="wikiaction btn btn-default" name="attach" value="{tr}Attach{/tr}" onclick="javascript:needToConfirm=false;insertImgFile('editwiki','userfile2','hasAlreadyInserted2','file', 'page2', 'attach_comment'); return true;"> </div> </div> {/if} {/if} {* merged tool and property tabs for tiki 6 *} {if $page|lower neq 'sandbox'} {if $prefs.wiki_feature_copyrights eq 'y'} <div class="form-group"> <label for="" class="col-sm-2 control-label">{tr}Copyright{/tr}</label> <div class="col-sm-10"> <div class="form-group"> <label class="col-sm-2 control-label" for="copyrightTitle">{tr}Title{/tr}</label> <div class="col-sm-10"> <input class="form-control wikiedit" type="text" id="copyrightTitle" name="copyrightTitle" value="{$copyrightTitle|escape}"> {if !empty($copyrights)} <td rowspan="3"><a href="copyrights.php?page={$page|escape}">{tr}To edit the copyright notices{/tr}</a></td> {/if} </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="copyrightYear">{tr}Year{/tr}</label> <div class="col-sm-10"> <input size="4" class="form-control wikiedit" type="text" id="copyrightYear" name="copyrightYear" value="{$copyrightYear|escape}"> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="copyrightAuthors">{tr}Authors{/tr}</label> <div class="col-sm-10"> <input class="form-control wikiedit" id="copyrightAuthors" name="copyrightAuthors" type="text" value="{$copyrightAuthors|escape}"> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="copyrightHolder">{tr}Copyright Holder{/tr}</label> <div class="col-sm-10"> <input class="form-control wikiedit" id="copyrightHolder" name="copyrightHolder" type="text" value="{$copyrightHolder|escape}"> </div> </div> </div> </div> {/if} {if $prefs.wikiplugin_addreference eq 'y' && $showBiblioSection} <div class="form-group"> <label for="" class="col-sm-2 control-label">{tr}Bibliography{/tr}</label> <div class="col-sm-10"> {include file='addreference.tpl'} </div> </div> {/if} {if $prefs.wiki_freetags_edit_position eq 'properties' or $prefs.wiki_freetags_edit_position eq ''} {if $prefs.feature_freetags eq 'y' and $tiki_p_freetags_tag eq 'y'} {include file='freetag.tpl'} {/if} {/if} {if $prefs.feature_wiki_icache eq 'y'} <fieldset class="col-sm-12"> <legend>{tr}Cache{/tr}</legend> <select id="wiki_cache" name="wiki_cache"> <option value="0" {if $prefs.wiki_cache eq 0}selected="selected"{/if}>0 ({tr}no cache{/tr})</option> <option value="60" {if $prefs.wiki_cache eq 60}selected="selected"{/if}>1 {tr}minute{/tr}</option> <option value="300" {if $prefs.wiki_cache eq 300}selected="selected"{/if}>5 {tr}minutes{/tr}</option> <option value="600" {if $prefs.wiki_cache eq 600}selected="selected"{/if}>10 {tr}minute{/tr}</option> <option value="900" {if $prefs.wiki_cache eq 900}selected="selected"{/if}>15 {tr}minutes{/tr}</option> <option value="1800" {if $prefs.wiki_cache eq 1800}selected="selected"{/if}>30 {tr}minute{/tr}</option> <option value="3600" {if $prefs.wiki_cache eq 3600}selected="selected"{/if}>1 {tr}hour{/tr}</option> <option value="7200" {if $prefs.wiki_cache eq 7200}selected="selected"{/if}>2 {tr}hours{/tr}</option> </select> {if $prefs.wiki_cache == 0}{remarksbox type="warning" title="{tr}Warning{/tr}"}{tr}Only cache a page if it should look the same to all groups authorized to see it.{/tr}{/remarksbox}{/if} </fieldset> {/if} {if $prefs.feature_wiki_structure eq 'y'} <div class="form-group"> <label class="col-sm-2 control-label">{tr}Structures{/tr}</label> <div class="col-sm-10" id="showstructs"> {if $showstructs|@count gt 0} <ul> {foreach from=$showstructs item=page_info} <li>{$page_info.pageName}{if !empty(${$page_info.outputType}.page_alias)}({$page_info.page_alias}){/if}</li> {/foreach} </ul> {/if} {if $tiki_p_edit_structures eq 'y'} <a href="tiki-admin_structures.php" class="btn btn-default"> {icon name="cog"} {tr}Manage structures{/tr} </a> {/if} </div> </div> {/if} {if $prefs.wiki_feature_copyrights eq 'y'} <div class="form-group"> <label class="col-sm-2 control-label">{tr}License{/tr}</label> <div class="col-sm-10"> <a href="{$prefs.wikiLicensePage|sefurl}">{tr}{$prefs.wikiLicensePage}{/tr}</a> {if $prefs.wikiSubmitNotice neq ""} {remarksbox type="note" title="{tr}Important:{/tr}"} <strong>{tr}{$prefs.wikiSubmitNotice}{/tr}</strong> {/remarksbox} {/if} </div> </div> {/if} {if $tiki_p_admin_wiki eq 'y' && $prefs.wiki_authors_style_by_page eq 'y'} <div class="form-group"> <label class="col-sm-2 control-label">{tr}Authors' style{/tr}</label> <div class="col-sm-10"> {include file='wiki_authors_style.tpl' tr_class='formcolor' wiki_authors_style_site='y' style=''} </div> </div> {/if} {/if}{*end if sandbox *} {if $prefs.feature_wiki_description eq 'y' or $prefs.metatag_pagedesc eq 'y'} <div class="form-group"> {if $prefs.metatag_pagedesc eq 'y'} <label for="" class="col-sm-2 control-label">{tr}Description (used for metatags){/tr}</label> {else} <label for="" class="col-sm-2 control-label">{tr}Description{/tr}</label> {/if} <div class="col-sm-10"> <input style="width:98%;" type="text" id="description" name="description" value="{$description|escape}"> </div> </div> {/if} {if $prefs.feature_wiki_footnotes eq 'y'} {if $user} <div class="form-group"> <label for="footnote" class="col-sm-2 control-label">{tr}My Footnotes{/tr}</label> <div class="col-sm-10"> <textarea id="footnote" name="footnote" class="form-control" rows="8">{$footnote|escape}</textarea> </div> </div> {/if} {/if} {if $prefs.feature_wiki_ratings eq 'y' and $tiki_p_wiki_admin_ratings eq 'y'} <div class="form-group"> <label for="" class="col-sm-2 control-label">{tr}Rating{/tr}</label> <div class="col-sm-10"> {foreach from=$poll_rated item=rating} <div> <a href="tiki-admin_poll_options.php?pollId={$rating.info.pollId}">{$rating.info.title}</a> {assign var=thispage value=$page|escape:"url"} {assign var=thispoll_rated value=$rating.info.pollId} {button href="?page=$thispage&removepoll=$thispoll_rated" _text="{tr}Disable{/tr}"} </div> {/foreach} {if $tiki_p_admin_poll eq 'y'} {button href="tiki-admin_polls.php" _text="{tr}Admin Polls{/tr}"} {/if} {if $poll_rated|@count <= 1 or $prefs.poll_multiple_per_object eq 'y'} <div> {if count($polls_templates)} {tr}Type{/tr} <select name="poll_template"> <option value="0">{tr}none{/tr}</option> {foreach item=template from=$polls_templates} <option value="{$template.pollId|escape}"{if $template.pollId eq $poll_template} selected="selected"{/if}>{tr}{$template.title|escape}{/tr}</option> {/foreach} </select> {tr}Title{/tr} <input type="text" name="poll_title" size="22"> {else} {tr}There is no available poll template.{/tr} {if $tiki_p_admin_polls ne 'y'} {tr}Please ask an administrator to create one.{/tr} {/if} {/if} </div> {/if} </div> </div> {/if} {if $prefs.feature_multilingual eq 'y'} <fieldset> <div class="form-group"> <label for="" class="col-sm-2 control-label">{tr}Language{/tr}</label> <div class="col-sm-10"> <select name="lang" id="lang" class="form-control"> <option value=""{if empty($lang)} selected="selected"{/if}>{tr}Unknown{/tr}</option> {section name=ix loop=$languages} <option value="{$languages[ix].value|escape}"{if $lang eq $languages[ix].value} selected="selected"{/if}>{$languages[ix].name}</option> {/section} </select> {remarksbox type=tip title="{tr}Tip{/tr}"} {tr _0="tiki-edit_translation.php?no_bl=y&page={$page|escape:url}"}To translate, do not change the language and the content. Instead, <a class="alert-link" href="%0">create a new translation</a> in the new language.{/tr} {/remarksbox} {if $translationOf} <input type="hidden" name="translationOf" value="{$translationOf|escape}"> {/if} </div </div> </fieldset> {if $trads|@count > 1 and $urgent_allowed} <div class="form-group"> <label for="" class="col-sm-2 control-label">{tr}Translation{/tr}</label> <div class="col-sm-10"> <fieldset {if $prefs.feature_urgent_translation neq 'y' or $diff_style} style="display:none;"{/if}> <legend>{tr}Translation request:{/tr}</legend> <input type="hidden" name="lang" value="{$lang|escape}"> <input type="checkbox" id="translation_critical" name="translation_critical" id="translation_critical"{if $translation_critical} checked="checked"{/if}> <label for="translation_critical">{tr}Send urgent translation request.{/tr}</label> {if $diff_style} <input type="hidden" name="oldver" value="{$diff_oldver|escape}"> <input type="hidden" name="newver" value="{$diff_newver|escape}"> {/if} </fieldset> </div> </div> {/if} {/if} {if $prefs.geo_locate_wiki eq 'y'} {$headerlib->add_map()} <div class="form-group"> <label for="" class="col-sm-2 control-label">{tr}Geolocation{/tr}</label> <div class="col-sm-10"> <div class="map-container form-control" data-geo-center="{defaultmapcenter}" data-target-field="geolocation" style="height: 250px;"></div> <input type="hidden" name="geolocation" value="{$geolocation_string}"> </div> </div> {/if} {if $prefs.wiki_auto_toc eq 'y' or $prefs.wiki_page_hide_title eq 'y'} <div class="form-group clearfix"> <label for="" class="col-sm-2 control-label">{tr}Page display options{/tr}</label> <div class="col-sm-10"> <ul class="list-unstyled"> {if $prefs.wiki_auto_toc eq 'y'} <li>{tr}Automatic Table of Contents generation{/tr} <select name="pageAutoToc"> <option value="0" {if $pageAutoToc == 0}selected{/if}>{tr}Default{/tr}</option> {*<option value="1" {if $pageAutoToc == 1}selected{/if}>{tr}On{/tr}</option>*} <option value="-1" {if $pageAutoToc == -1}selected{/if}>{tr}Off{/tr}</option> </select> </li> {/if} {if $prefs.wiki_page_hide_title eq 'y' && ($prefs.wiki_page_name_above eq 'y' or $prefs.feature_page_title eq 'y')} <li>{tr}Show page title{/tr} <select name="page_hide_title"> <option value="0" {if $page_hide_title == 0}selected{/if}>{tr}Default{/tr}</option> {*<option value="1" {if $page_hide_title == 1}selected{/if}>{tr}On{/tr}</option>*} <option value="-1" {if $page_hide_title == -1}selected{/if}>{tr}Off{/tr}</option> </select> </li> {/if} </ul> </div> </div> {/if} {if $prefs.namespace_enabled eq 'y'} <div class="form-group"> <label for="" class="col-sm-2 control-label">{tr}Namespace{/tr}</label> <div class="col-sm-10"> {remarksbox title="{tr}Advanced usage{/tr}"} <p>{tr}The namespace for a page is guessed automatically from the page name. However, some exceptions may arise. This option allows to override the namespace.{/tr}</p> {/remarksbox} <label for="explicit_namespace" class="col-sm-3 control-label"> {tr}Explicit Namespace{/tr} </label> <div class="col-sm-9"> <input type="text" class="form-control" name="explicit_namespace" value="{$explicit_namespace|escape}"> </div> </div> </div> {/if} {if $prefs.site_layout_per_object eq 'y'} <fieldset> <div class="form-group"> <label for="object_layout" class="col-sm-2 control-label">{tr}Layout{/tr}</label> <div class="col-sm-10"> <select name="object_layout" class="form-control"> <option value="">{tr}Site Default{/tr}</option> {foreach $object_layout.available as $key => $label} <option value="{$key|escape}"{if $object_layout.current eq $key} selected{/if}>{$label|escape}</option> {/foreach} </select> </div> </div> </fieldset> {/if} {if $tiki_p_admin_wiki eq "y"} <div class="form-group"> <label for="" class="col-sm-2 control-label">{tr}Wiki preferences{/tr}</label> <div class="col-sm-10"> <a href="tiki-admin.php?page=wiki" class="btn btn-default"> {icon name="cog"} {tr}Admin Wiki Preferences{/tr} </a> </div> </div> {/if} {/tab}{* end properties tab *} {else} {if $wysiwyg eq 'y'}{* include hidden allowhtml for wysiwyg if the properties tab isn't needed *} <input type="hidden" name="allowhtml" value="{if $allowhtml eq 'y'}on{/if}"> {/if} {/if} {/tabset} </div> <div class="form-group"> {if $page|lower ne 'sandbox'} {if $prefs.feature_antibot eq 'y' && (isset($anon_user) && $anon_user eq 'y')} {include file='antibot.tpl' tr_style="formcolor"} {/if} {/if}{* sandbox *} {if $prefs.wiki_actions_bar neq 'top'} <div class="form-group"> <div class="text-center"> {include file='wiki_edit_actions.tpl' wysiwyg=$wysiwyg page_info=$page_info} </div> </div> {/if} </div> </form> {include file='tiki-page_bar.tpl'} {/block}