%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/skins/flamingo/
Upload File :
Create Path :
Current File : //home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/skins/flamingo/editinline.vm

#if($xcontext.getAction() != 'edit' && $xcontext.getAction() != 'inline')
  $response.sendRedirect($doc.getURL('edit', 'editor=inline'))
#end
## Insert JS and CSS needed for the fullscreen edit feature
$xwiki.jsfx.use('uicomponents/widgets/fullScreen.js', {'forceSkinAction': true, 'language': ${xcontext.locale}})##
$xwiki.ssfx.use('uicomponents/widgets/fullScreen.css', true)##
#set($formname = "inline")
#set($saveaction = "save")
#set($previewenabled = true)
## Determine if editing should be allowed
#set($force = $!request.get("force"))
#set($allowDocEdit = !(($doc.getLocked()==true)&&(!$force)) )
##
<div class="main">
<div id="mainContentArea">
## ----------------------------------------------------------------------------
## Start FORM at start of content area IF editing is allowed.
## ----------------------------------------------------------------------------
#if ($allowDocEdit)
 <form id="inline" method="post" action="$doc.getURL("preview")" class="withLock">
#end
#if ($services.parentchild.isParentChildMechanismEnabled())
  <div class="edit-meta-tools">
    ## Edit parent button added here explicitly because inline mode is handled specially in edit.vm and does not behave
    ## like the other edit modes.
    <a id="editParentTrigger" class="tool edit-parent" href="#mainEditArea"
        title="$services.localization.render('core.editors.content.parentField.edit.title')">
      [$services.localization.render('core.editors.content.parentField.edit')]
    </a>
  </div>
#end
#template("hierarchy.vm")
<div class="row">
  <div id="editMeta" class="col-xs-12 col-md-7">
    #template('editmeta.vm')
    ## ----------------------------------------------------------------------------
    ## Compute title to display and modify rendered content accordingly.
    ## ----------------------------------------------------------------------------
    #set ($renderedContent = $cdoc.getRenderedContent())
    #template("titlevars.vm")
    ## ----------------------------
    ## Display the title
    ## ----------------------------
    <div id="document-title"><h1>$titleToDisplay</h1></div>
  </div>
  #if($displayContentMenu)
    <div class="col-xs-12 col-md-5">
      #template("menus_content.vm")
    </div>
  #end
</div>
##
## If the document cannot be edited, display an information and a forcing link:
##
#if (!$allowDocEdit)
  <div>
  $response.setStatus(423)
  #set($newquerystring = "$!{request.getQueryString().replaceAll('&', '&amp;').replaceAll('&amp;amp;', '&amp;')}&amp;force=1")
  #set($forceEditURL = $doc.getURL($xcontext.action, ${newquerystring}))
  #xwikimessageboxstart($services.localization.render('notice') "$services.localization.render('doclockedby') $xwiki.getUserName($doc.getLockingUser())")
    <a href="$forceEditURL">$services.localization.render('forcelock')</a>
  #xwikimessageboxend()
  </div>
#else
##
## Otherwise, can edit - continue the form.
##
<div>
## ----------------------------
## Display the rendered content
## ----------------------------
$renderedContent
## ----------------
## Hidden form data
##-----------------
## NOTE: We output the hidden form data after the rendered content in order to be able to overwrite it from the sheet.
<input type="hidden" name="xcontinue" value="$doc.getURL($doc.getDefaultEditMode(), 'editor=inline')"/>
## CSRF prevention
<input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" />
## This input is used by the full screen widget: it stores the selector of the maximized element, so that the full screen can be restored when coming back from preview.
<input type="hidden" name="x-maximized" value="$!{escapetool.xml(${request.get('x-maximized')})}" />
<input type="hidden" name="xredirect" value="$!{escapetool.xml($request.get('xredirect'))}" />
<input type="hidden" name="xnotification" value="$!{escapetool.xml($request.get('xnotification'))}" />
<input type="hidden" name="template" value="$!{escapetool.xml($request.template)}" />
## We need to submit the language of the translated document because the inline edit mode is not limited to editing only
## the objects, which are shared by all translations. We can also edit the content or the title of the document which are
## specific to each translation and so we need to specify which translation is being edited.
<input type="hidden" name="language" value="$!{escapetool.xml($tdoc.realLocale)}" />
#if("$!request.parent" != '')
  <input type="hidden" name="parent" value="$escapetool.xml($!request.parent)" />
#end
#if("$!request.title" != '')
  <input type="hidden" name="title" value="$escapetool.xml($!request.title)" />
#end
#if("$!request.xhidden" != '')
  <input type="hidden" name="xhidden" value="$escapetool.xml($!request.xhidden)" />
#end
#if ("$!request.template" != '')
  ## Used when creating a document (i.e. editing for the first time) from a template to wait asynchronously
  ## (with javascript progress information) for the save operation to finish. Without this, the save operation
  ## is synchronous by default.
  #set ($async = $request.async)
  #if ("$!async" == '')
    #set ($async = 'true')
  #end
  <input type="hidden" name="async" value="$escapetool.xml($async)" />
#end
## --------------
## Action buttons
## --------------
#set($editactions = "bottom")
<div class="bottombuttons sticky-buttons">#template("editactions.vm")</div>
</div> ## form
</form>
#end ## can edit
</div> ## mainContentArea
</div> ## main

Zerion Mini Shell 1.0