###
### Main "edit" template
###
### General wrapper for edit actions
###
##
## Determine what editor to show
##
#if((!$editor) || ($editor == ""))
#set($editor = $request.getParameter("editor"))
#if((!$editor) || ($editor == ""))
#if(($xwiki.getUserPreference("editor")=="Wysiwyg")&&(!$doc.isAdvancedContent()))
#set($editor="wysiwyg")
#else
#set($editor="wiki")
#end
#end
#end
##
## Header
##
#template("xwikivars.vm")
#template("layoutvars.vm")
#template("htmlheader.vm")
#template("header.vm")
##
## Content
##
#set($force = $!request.get("force"))
#if (($tdoc.getLocked()==true)&&(!$force))
#xwikimessageboxstart($msg.get("notice") "$msg.get('doclockedby') $xwiki.getLocalUserName($doc.getLockingUser())")
$msg.get("forcelock")
#xwikimessageboxend()
#else
$msg.get("chooseeditor")
#template("editmodes.vm")
##
#template("editactions.vm")
#template("edit${editor}.vm")
#template("editactions.vm")
#template("editpanels.vm")
##
## Footer
##
#end
#template("footer.vm")
#template("htmlfooter.vm")