bug fixes
Some checks are pending
CI / general_module_workflow_php (push) Waiting to run
CI / general_module_workflow_js (push) Waiting to run

This commit is contained in:
Dennis Eichhorn 2024-10-11 19:17:41 +00:00
parent b3050d6b2f
commit 7a820b85c2
3 changed files with 11 additions and 8 deletions

View File

@ -117,10 +117,12 @@ $newDiffPath = '';
$base = __DIR__ . '/../../../../';
$newDiffPath = '';
if ($type === 'pdf') {
$newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath, '.pdf') . '.htm';
} else {
$newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath);
if ($new !== null) {
if ($type === 'pdf') {
$newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath, '.pdf') . '.htm';
} else {
$newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath);
}
}
?>
@ -168,7 +170,7 @@ $newDiffPath = '';
<div class="col-xs-6 col-simple">
<div class="portlet col-simple">
<div class="portlet-body col-simple">
<?php if (\is_file($base . $newDiffPath)) : ?>
<?php if ($new !== null && \is_file($base . $newDiffPath)) : ?>
<iframe class="col-simple" id="iRenderNew" sandbox="allow-scripts" src="<?= $newDiffPath; ?>" loading="lazy" allowfullscreen></iframe>
<?php endif; ?>
</div>

View File

@ -18,12 +18,13 @@ use phpOMS\Uri\UriFactory;
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="portlet">
<form id="iResource" action="<?= UriFactory::build('{/api}orw/resource?csrf={$CSRF}'); ?>" method="put">
<form id="iResource" action="<?= UriFactory::build('{/api}orw/resource?csrf={$CSRF}'); ?>" method="put"
data-redirect="<?= UriFactory::build('{%}'); ?>">
<div class="portlet-head"><?= $this->getHtml('CreateResource', 'OnlineResourceWatcher', 'Backend'); ?></div>
<div class="portlet-body">
<div class="form-group">
<label for="iName"><?= $this->getHtml('Name'); ?></label>
<input id="iName" name="name" type="text">
<input id="iName" name="title" type="text">
</div>
<div class="form-group">

View File

@ -26,7 +26,7 @@ $reports = $resource->reports;
<div class="portlet-body">
<div class="form-group">
<label for="iName"><?= $this->getHtml('Name'); ?></label>
<input id="iName" name="name" type="text" value="<?= $this->printHtml($resource->title); ?>">
<input id="iName" name="title" type="text" value="<?= $this->printHtml($resource->title); ?>">
</div>
<div class="form-group">