mirror of
https://github.com/Karaka-Management/oms-OnlineResourceWatcher.git
synced 2026-02-10 21:38:40 +00:00
bug fixes
This commit is contained in:
parent
b3050d6b2f
commit
7a820b85c2
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user