mirror of
https://github.com/Karaka-Management/oms-Help.git
synced 2026-01-11 04:48:41 +00:00
update
This commit is contained in:
parent
371d861db6
commit
1efa4edce4
|
|
@ -57,8 +57,7 @@ $tableView->setObjects($modules);
|
|||
|
||||
++$count;
|
||||
$url = UriFactory::build(
|
||||
'{/lang}/backend/help/module/single?id={$module}',
|
||||
['$module' => $module->getInternalName()]
|
||||
'{/lang}/backend/help/module/single?id=' . $module->getInternalName()
|
||||
);
|
||||
?>
|
||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||
|
|
|
|||
|
|
@ -2,7 +2,11 @@
|
|||
<div class="col-xs-12 col-md-8 col-lg-9">
|
||||
<section class="portlet">
|
||||
<div class="portlet-body">
|
||||
<article><?= $this->data['content']; ?></article>
|
||||
<?php if (empty($this->data['content'])) : ?>
|
||||
<img height="100%" width="100%" src="Web/Backend/img/under_construction.svg">
|
||||
<?php else : ?>
|
||||
<article><?= $this->data['content']; ?></article>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
|
@ -12,7 +16,7 @@
|
|||
<a tabindex="0" class="button" href="<?= \phpOMS\Uri\UriFactory::build('{/lang}/backend/help/module/single?id={?id}'); ?>"><?= $this->getHtml('Module'); ?></a>
|
||||
</div>
|
||||
|
||||
<?php if ($this->hasData('navigation')) : ?>
|
||||
<?php if (!empty($this->data['navigation'] ?? '')) : ?>
|
||||
<section class="portlet">
|
||||
<div class="portlet-body">
|
||||
<article><?= $this->data['navigation']; ?></article>
|
||||
|
|
@ -20,7 +24,7 @@
|
|||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->hasData('devNavigation')) : ?>
|
||||
<?php if (!empty($this->data['devNavigation'] ?? '')) : ?>
|
||||
<section class="portlet">
|
||||
<div class="portlet-body">
|
||||
<article><?= $this->data['devNavigation']; ?></article>
|
||||
|
|
|
|||
|
|
@ -100,6 +100,6 @@ final class SearchControllerTest extends \PHPUnit\Framework\TestCase
|
|||
$request->setData('search', ':help introduction');
|
||||
|
||||
$this->module->searchHelp($request, $response);
|
||||
self::assertGreaterThan(0, \count($response->get('')));
|
||||
self::assertGreaterThan(0, \count($response->getData('')));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user