mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-24 11:18:41 +00:00
Fixing json serialization and reporter
This commit is contained in:
parent
4c0fc1ec38
commit
8a7bb12586
|
|
@ -389,6 +389,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
$account->setName2($request->getData('name2'));
|
||||
$account->setName3($request->getData('name3'));
|
||||
$account->setEmail($request->getData('email'));
|
||||
$account->generatePassword($request->getData('password'));
|
||||
|
||||
AccountMapper::create($account);
|
||||
|
||||
|
|
|
|||
|
|
@ -108,9 +108,9 @@ class AccountMapper extends DataMapperAbstract
|
|||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $objId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get object.
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tr><td><label for="iEmail"><?= $this->getText('Email') ?></label>
|
||||
<tr><td><input id="iEmail" name="email" type="email" placeholder=" d.duck@duckburg.com">
|
||||
<tr><td><label for="iPassword"><?= $this->getText('Name3') ?></label>
|
||||
<tr><td><input id="iPassword" name="password" type="text" placeholder=" Pa55ssw0rd?">
|
||||
<tr><td><input id="iPassword" name="password" type="password" placeholder=" Pa55ssw0rd?">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/account'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iId"><?= $this->getText('ID') ?></label>
|
||||
<tr><td><label for="iId"><?= $this->getText('ID', 0, 0) ?></label>
|
||||
<tr><td><input id="iId" name="id" type="text" value="<?= $account->getId(); ?>" disabled>
|
||||
<tr><td><label for="iType"><?= $this->getText('Type') ?></label>
|
||||
<tr><td><select id="iType" name="type">
|
||||
|
|
@ -41,7 +41,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<option value="<?= \phpOMS\Account\AccountStatus::BANNED; ?>"<?= $account->getStatus() === \phpOMS\Account\AccountStatus::BANNED ? ' selected' : ''; ?>><?= $this->getText('Banned') ?>
|
||||
</select>
|
||||
<tr><td><label for="iUsername"><?= $this->getText('Username') ?></label>
|
||||
<tr><td><input id="iUsername" name="name" type="text" placeholder=" Fred" value="<?= $account->getEmail(); ?>" disabled>
|
||||
<tr><td><input id="iUsername" name="name" type="text" placeholder=" Fred" value="<?= $account->getName(); ?>" disabled>
|
||||
<tr><td><label for="iName1"><?= $this->getText('Name1') ?></label>
|
||||
<tr><td><input id="iName1" name="name1" type="text" placeholder=" Donald" value="<?= $account->getName1(); ?>" required>
|
||||
<tr><td><label for="iName2"><?= $this->getText('Name2') ?></label>
|
||||
|
|
@ -52,7 +52,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tr><td><input id="iEmail" name="email" type="email" placeholder=" d.duck@duckburg.com" value="<?= $account->getEmail(); ?>">
|
||||
<tr><td><label for="iPassword"><?= $this->getText('Name3') ?></label>
|
||||
<tr><td><input id="iPassword" name="password" type="text" placeholder=" Pa55ssw0rd?">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Save', 0, 0); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tr><td><label for="iEmail"><?= $this->getText('Email') ?></label>
|
||||
<tr><td><input id="iEmail" name="email" type="email" placeholder=" d.duck@duckburg.com">
|
||||
<tr><td><label for="iPassword"><?= $this->getText('Name3') ?></label>
|
||||
<tr><td><input id="iPassword" name="password" type="text" placeholder=" Pa55ssw0rd?">
|
||||
<tr><td><input id="iPassword" name="password" type="password" placeholder=" Pa55ssw0rd?">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/account'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iId"><?= $this->getText('ID') ?></label>
|
||||
<tr><td><label for="iId"><?= $this->getText('ID', 0, 0) ?></label>
|
||||
<tr><td><input id="iId" name="id" type="text" value="<?= $account->getId(); ?>" disabled>
|
||||
<tr><td><label for="iType"><?= $this->getText('Type') ?></label>
|
||||
<tr><td><select id="iType" name="type">
|
||||
|
|
@ -41,7 +41,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<option value="<?= \phpOMS\Account\AccountStatus::BANNED; ?>"<?= $account->getStatus() === \phpOMS\Account\AccountStatus::BANNED ? ' selected' : ''; ?>><?= $this->getText('Banned') ?>
|
||||
</select>
|
||||
<tr><td><label for="iUsername"><?= $this->getText('Username') ?></label>
|
||||
<tr><td><input id="iUsername" name="name" type="text" placeholder=" Fred" value="<?= $account->getEmail(); ?>" disabled>
|
||||
<tr><td><input id="iUsername" name="name" type="text" placeholder=" Fred" value="<?= $account->getName(); ?>" disabled>
|
||||
<tr><td><label for="iName1"><?= $this->getText('Name1') ?></label>
|
||||
<tr><td><input id="iName1" name="name1" type="text" placeholder=" Donald" value="<?= $account->getName1(); ?>" required>
|
||||
<tr><td><label for="iName2"><?= $this->getText('Name2') ?></label>
|
||||
|
|
@ -52,7 +52,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tr><td><input id="iEmail" name="email" type="email" placeholder=" d.duck@duckburg.com" value="<?= $account->getEmail(); ?>">
|
||||
<tr><td><label for="iPassword"><?= $this->getText('Name3') ?></label>
|
||||
<tr><td><input id="iPassword" name="password" type="text" placeholder=" Pa55ssw0rd?">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->getText('Save', 0, 0); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user