show preview of document

This commit is contained in:
Uwe Steinmann 2025-12-30 13:34:38 +01:00
parent 10e3e1cb60
commit 442ad8c58e

View File

@ -73,6 +73,8 @@ $(document).ready( function() {
$this->contentStart();
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
$this->rowStart();
$this->columnStart(6);
$this->contentHeading(getMLText("edit_document_props"));
if($document->expires())
@ -228,6 +230,13 @@ $(document).ready( function() {
}
$this->contentContainerEnd();
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('save'));
$this->columnEnd();
$this->columnStart(6);
?>
<div class="ajax" data-view="ViewDocument" data-action="preview" <?php echo ($document ? "data-query=\"documentid=".$document->getID()."\"" : "") ?>></div>
<?php
$this->columnEnd();
$this->rowEnd();
?>
</form>
<?php
@ -235,4 +244,3 @@ $(document).ready( function() {
$this->htmlEndPage();
} /* }}} */
}
?>