%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/previewactions.vm

### Buttons displayed in the preview interface: cancel, back to edit, save and continue, save and view.
###
#if("$!showactions" != '0')
  $xwiki.jsfx.use('js/xwiki/actionbuttons/actionButtons.js', true)
  $xwiki.ssfx.use('js/xwiki/actionbuttons/actionButtons.css', true)
  ## In case of conflict issue we want to display the diff properly
  #set ($discard = $xwiki.ssfx.use('uicomponents/viewers/diff.css', true))
  #set ($discard = $xwiki.jsfx.use('uicomponents/viewers/diff.js'))
  #set($backToEditAction = "$!{request.xeditaction}")
  #if($backToEditAction == '')
    #set($backToEditAction = 'edit')
  #end
  #set($keyboardShortcutsEnabled = true)
  #set($editorUrl = "$!request.xcontinue")
  #if($editorUrl == '')
    #set($editorUrl = "$!request.getHeader('Referer')")
    #if($editorUrl == '')
      #if($doc.content.indexOf("includeForm(") != -1)
        #set($editorUrl = $tdoc.getURL('inline', "$!docvariant"))
      #else
        #if($xwiki.getUserPreference('editor') == 'Wysiwyg' && (!$tdoc.isAdvancedContent()))
          #set($editorUrl = $tdoc.getURL("edit", "editor=wysiwyg&$docvariant"))
        #else
          #set($editorUrl = $tdoc.getURL("edit", "editor=wiki&$docvariant"))
        #end
      #end
    #end
  #end
<form id="backtoedit" class="buttons" action="$!{escapetool.xml($editorUrl)}" method="post">
  <div>
    #foreach($param in $request.getParameterNames())
      #if(!$param.startsWith('action_'))
        #foreach($value in $request.getParameterValues($param))
          <input type="hidden" name="$!{escapetool.xml($param)}" value="$!{escapetool.xml($value)}"/>
        #end
      #end
    #end
    #editActionButton("$!{escapetool.xml($backToEditAction)}", 'backtoedit', 'btn-default')
    <div class="btn-group">
      #editActionButton('save', 'saveandview', 'btn-primary')
      #editActionButton('saveandcontinue', 'save', 'btn-default')
    </div>
    #editActionButton('cancel', 'cancel', 'btn-default')
  </div>
</form>
#end ## showactions

Zerion Mini Shell 1.0