Implementing basic activate/deactivate

This commit is contained in:
Dennis Eichhorn 2016-07-02 12:39:31 +02:00
parent d4848b3906
commit 768c2ceffe
3 changed files with 27 additions and 2 deletions

View File

@ -18,6 +18,7 @@ namespace Modules\Profile\Admin;
use phpOMS\DataStorage\Database\Pool;
use phpOMS\Module\ActivateAbstract;
use phpOMS\Module\InfoManager;
/**
* Navigation class.
@ -36,7 +37,7 @@ class Activate extends ActivateAbstract
/**
* {@inheritdoc}
*/
public static function activate(Pool $dbPool, array $info)
public static function activate(Pool $dbPool, InfoManager $info)
{
parent::activate($dbPool, $info);
}

View File

@ -18,6 +18,7 @@ namespace Modules\Profile\Admin;
use phpOMS\DataStorage\Database\Pool;
use phpOMS\Module\DeactivateAbstract;
use phpOMS\Module\InfoManager;
/**
* Navigation class.
@ -36,7 +37,7 @@ class Deactivate extends DeactivateAbstract
/**
* {@inheritdoc}
*/
public static function deactivate(Pool $dbPool, array $info)
public static function deactivate(Pool $dbPool, InfoManager $info)
{
parent::deactivate($dbPool, $info);
}

View File

@ -0,0 +1,23 @@
<template id="acc-grp-tpl">
<section id="acc-grp" class="box w-50" style="z-index: 9; position: absolute; margin: 0 auto; left: 50%; top: 50%; transform: translate(-50%, -50%);">
<header><h1><?= $this->l11n->lang['Profile']['Account/Group']; ?></h1></header>
<div class="inner">
<form id="fAccGrp" method="GET" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/accgrp'); ?>">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iReceiver">Search</label>
<tr><td><input type="text" id="iDue" name="due" value=""><td>
<tr><td colspan="2">
<table class="table">
<thead>
<tr><th>ID<th>Name<th>Address<th>City<th>Zip<th>Country
<tbody>
<tfoot>
</table>
<tr><td colspan="2"><input type="submit" value="<?= $this->l11n->lang[0]['Search']; ?>"><input type="hidden" name="type" value="<?= \Modules\Tasks\Models\TaskType::SINGLE; ?>">
</table>
</form>
</div>
</section>
</template>