mirror of
https://github.com/Karaka-Management/oms-OnlineResourceWatcher.git
synced 2026-02-17 08:28:41 +00:00
bug fixes
This commit is contained in:
parent
b3050d6b2f
commit
7a820b85c2
|
|
@ -117,10 +117,12 @@ $newDiffPath = '';
|
||||||
$base = __DIR__ . '/../../../../';
|
$base = __DIR__ . '/../../../../';
|
||||||
$newDiffPath = '';
|
$newDiffPath = '';
|
||||||
|
|
||||||
if ($type === 'pdf') {
|
if ($new !== null) {
|
||||||
$newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath, '.pdf') . '.htm';
|
if ($type === 'pdf') {
|
||||||
} else {
|
$newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath, '.pdf') . '.htm';
|
||||||
$newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath);
|
} else {
|
||||||
|
$newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
@ -168,7 +170,7 @@ $newDiffPath = '';
|
||||||
<div class="col-xs-6 col-simple">
|
<div class="col-xs-6 col-simple">
|
||||||
<div class="portlet col-simple">
|
<div class="portlet col-simple">
|
||||||
<div class="portlet-body 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>
|
<iframe class="col-simple" id="iRenderNew" sandbox="allow-scripts" src="<?= $newDiffPath; ?>" loading="lazy" allowfullscreen></iframe>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -18,12 +18,13 @@ use phpOMS\Uri\UriFactory;
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-6">
|
<div class="col-xs-12 col-md-6">
|
||||||
<section class="portlet">
|
<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-head"><?= $this->getHtml('CreateResource', 'OnlineResourceWatcher', 'Backend'); ?></div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="iName"><?= $this->getHtml('Name'); ?></label>
|
<label for="iName"><?= $this->getHtml('Name'); ?></label>
|
||||||
<input id="iName" name="name" type="text">
|
<input id="iName" name="title" type="text">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ $reports = $resource->reports;
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="iName"><?= $this->getHtml('Name'); ?></label>
|
<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>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user