mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-27 06:28:40 +00:00
Fix footer rendering
This commit is contained in:
parent
36ae3b2470
commit
386dc0b7b7
|
|
@ -15,7 +15,7 @@
|
|||
declare(strict_types=1);
|
||||
namespace Modules\Profile;
|
||||
|
||||
use Modules\Admin\Models\AccountMapper;
|
||||
use Modules\Profile\Models\ProfileMapper;
|
||||
use phpOMS\Contract\RenderableInterface;
|
||||
use phpOMS\Message\RequestAbstract;
|
||||
use phpOMS\Message\ResponseAbstract;
|
||||
|
|
@ -92,7 +92,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
$view = new View($this->app, $request, $response);
|
||||
$view->setTemplate('/Modules/Profile/Theme/Backend/profile-list');
|
||||
|
||||
$view->setData('accounts', AccountMapper::getNewest(25));
|
||||
$view->setData('accounts', ProfileMapper::getNewest(25));
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
@ -112,7 +112,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
$view->setTemplate('/Modules/Profile/Theme/Backend/profile-single');
|
||||
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000301001, $request, $response));
|
||||
|
||||
$view->setData('account', AccountMapper::get($request->getData('id')));
|
||||
$view->setData('account', ProfileMapper::get($request->getData('id')));
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ return ['Profile' => [
|
|||
'ON' => 'ON',
|
||||
'Phone' => 'Phone',
|
||||
'Profile' => 'Profile',
|
||||
'ProfileImage' => 'Profile Image',
|
||||
'Profiles' => 'Profiles',
|
||||
'Ranks' => 'Ranks',
|
||||
'Registered' => 'Registered',
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ $accounts = $this->getData('accounts');
|
|||
<td><?= $this->getHtml('Activity') ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3"><?= htmlspecialchars($footerView->render(), ENT_COMPAT, 'utf-8'); ?>
|
||||
<td colspan="3"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach($accounts as $key => $account) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/profile/single?{?}&id=' . $account->getId()); ?>
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ echo $this->getData('nav')->render();
|
|||
<!-- @formatter:off -->
|
||||
<table class="list">
|
||||
<tr>
|
||||
<th><?= $this->getHtml('Name') ?>
|
||||
<td><span itemprop="familyName"><?= htmlspecialchars($account->getName3(), ENT_COMPAT, 'utf-8'); ?></span>, <span itemprop="givenName"><?= htmlspecialchars($account->getName1(), ENT_COMPAT, 'utf-8'); ?></span>
|
||||
<th><?= $this->getHtml('Name') ?><img alt="<?= $this->getHtml('ProfileImage'); ?>" src="<?= $account->getImage()->getPath(); ?>">
|
||||
<td><span itemprop="familyName"><?= htmlspecialchars($account->getAccount()->getName3(), ENT_COMPAT, 'utf-8'); ?></span>, <span itemprop="givenName"><?= htmlspecialchars($account->getAccount()->getName1(), ENT_COMPAT, 'utf-8'); ?></span>
|
||||
<tr>
|
||||
<th><?= $this->getHtml('Occupation') ?>
|
||||
<td itemprop="jobTitle">Sailor
|
||||
|
|
@ -48,7 +48,7 @@ echo $this->getData('nav')->render();
|
|||
<td itemprop="memberOf">Gosling
|
||||
<tr>
|
||||
<th><?= $this->getHtml('Email') ?>
|
||||
<td itemprop="email"><a href="mailto:>donald.duck@email.com<"><?= htmlspecialchars($account->getEmail(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<td itemprop="email"><a href="mailto:>donald.duck@email.com<"><?= htmlspecialchars($account->getAccount()->getEmail(), ENT_COMPAT, 'utf-8'); ?></a>
|
||||
<tr>
|
||||
<th>Address
|
||||
<td>
|
||||
|
|
@ -72,13 +72,13 @@ echo $this->getData('nav')->render();
|
|||
<td itemprop="telephone">+01 12345-4567
|
||||
<tr>
|
||||
<th><?= $this->getHtml('Registered') ?>
|
||||
<td><?= htmlspecialchars($account->getCreatedAt()->format('Y-m-d'), ENT_COMPAT, 'utf-8'); ?>
|
||||
<td><?= htmlspecialchars($account->getAccount()->getCreatedAt()->format('Y-m-d'), ENT_COMPAT, 'utf-8'); ?>
|
||||
<tr>
|
||||
<th><?= $this->getHtml('LastLogin') ?>
|
||||
<td><?= htmlspecialchars($account->getLastActive()->format('Y-m-d'), ENT_COMPAT, 'utf-8'); ?>
|
||||
<td><?= htmlspecialchars($account->getAccount()->getLastActive()->format('Y-m-d'), ENT_COMPAT, 'utf-8'); ?>
|
||||
<tr>
|
||||
<th><?= $this->getHtml('Status') ?>
|
||||
<td><span class="tag green"><?= htmlspecialchars($account->getStatus(), ENT_COMPAT, 'utf-8'); ?></span>
|
||||
<td><span class="tag green"><?= htmlspecialchars($account->getAccount()->getStatus(), ENT_COMPAT, 'utf-8'); ?></span>
|
||||
</table>
|
||||
<!-- @formatter:on -->
|
||||
</div>
|
||||
|
|
@ -96,7 +96,7 @@ echo $this->getData('nav')->render();
|
|||
<td><?= $this->getHtml('Type', 'Media') ?>
|
||||
<td><?= $this->getHtml('Created', 'Media') ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="4"><?= htmlspecialchars($footerView->render(), ENT_COMPAT, 'utf-8'); ?>
|
||||
<tr><td colspan="4"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ([] as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user