XWiki
AdminInlineSheet
en
0
XWiki.AdminSheet
XWiki.Admin
XWiki.Admin
xwiki:XWiki.Admin
1212747498000
1213088015000
1213892723000
1.1

# AdminInlineSheet

Imported from XAR
false
xwiki/2.0
false
{{velocity}}###---------------------------------- ## modified version of editinline.vm ###---------------------------------- #if ($doc.fullName != 'XWiki.AdminInlineSheet') ## Prevents infinite loops #set($formname = 'inline') #set($saveaction = 'save') #set($previewenabled = true) #set($xnotification = $!request.getParameter('xnotification')) {{html}} <form id="inline" method="post" action="$doc.getURL('preview')"> <div> <div class="hidden"><input type="hidden" name="xcontinue" value="$doc.getURL('admin', "${request.queryString}&editmode=inline").replaceAll('&','&amp;')" /></div> <input type="hidden" name="xredirect" value="$doc.getURL('admin', "editor=${editor}&section=${section}&space=XWiki").replaceAll('&','&amp;')" /> <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" /> <input type="hidden" name="xnotification" value="$!xnotification" /> <input type="hidden" name="template" value="$!request.template" /> <input type="hidden" name="language" value="$!doc.language" /> #if("$!request.parent" != '') <input type="hidden" name="parent" value="$!request.parent" /> #end #if("$!request.title" != "") <input type="hidden" name="title" value="$!request.title" /> #end #set($force = $!request.get('force')) #if(($doc.getLocked() == true) && (!$force)) ## locking <div> $msg.get('doclockedby') $xwiki.getLocalUserName($doc.getLockingUser()). <br /> <a href="$doc.getURL('inline', "$!request.getQueryString()&force=1")">$msg.get('forcelock')</a> </div> #else #foreach($class in $doc.xWikiClasses) #set($nb = $doc.getObjectNumbers("${class.name}")) <input type="hidden" name="${class.name}_nb" value="$nb" /> #end $doc.getTranslatedDocument().getRenderedContent() <div class="bottombuttons"> <p class="admin-buttons"> <span class="buttonwrapper"><input class="button" type="submit" name="formactioncancel" value="$msg.get('cancel')" onclick="document.forms.update.action='$doc.getURL('cancel')'; if (document.forms.update.onsubmit) document.forms.update.onsubmit();" /></span> <span class="buttonwrapper"><input class="button" type="submit" name="formactionsac" value="$msg.get('saveandcontinue')" onclick="document.forms.update.action='$doc.getURL('saveandcontinue')'; if (document.forms.update.onsubmit) document.forms.update.onsubmit();if(checkDocumentContent()) document.forms.update.submit(); return false;" /></span> <span class="buttonwrapper"><input class="button" type="submit" name="formactionsave" value="$msg.get('saveandview')" onclick="document.forms.update.action='$doc.getURL('saveandview')'; if (document.forms.update.onsubmit) document.forms.update.onsubmit();if(checkDocumentContent()) document.forms.update.submit(); return false;" /></span> </p> </div> ## bottombuttons #end </div> ## form </form> #template('textarea_wysiwyg.vm') {{html}} #end {{/velocity}}