oms-Admin/Theme/Backend/accounts-single.tpl.php

93 lines
6.4 KiB
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.1
*
* @category TBD
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
/*
* UI Logic
*/
$account = $this->getData('account');
echo $this->getData('nav')->render(); ?>
<div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Account'); ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/admin/account'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iId"><?= $this->getHtml('ID', 0, 0); ?></label>
<tr><td><input id="iId" name="id" type="text" value="<?= htmlspecialchars($account->getId(), ENT_COMPAT, 'utf-8'); ?>" disabled>
<tr><td><label for="iType"><?= $this->getHtml('Type'); ?></label>
<tr><td><select id="iType" name="type">
<option value="<?= htmlspecialchars(\phpOMS\Account\AccountType::USER, ENT_COMPAT, 'utf-8'); ?>"<?= htmlspecialchars($account->getType() === \phpOMS\Account\AccountType::USER ? ' selected' : '', ENT_COMPAT, 'utf-8'); ?>><?= $this->getHtml('Person'); ?>
<option value="<?= htmlspecialchars(\phpOMS\Account\AccountType::GROUP, ENT_COMPAT, 'utf-8'); ?>"<?= htmlspecialchars($account->getType() === \phpOMS\Account\AccountType::GROUP ? ' selected' : '', ENT_COMPAT, 'utf-8'); ?>><?= $this->getHtml('Organization'); ?>
</select>
<tr><td><label for="iStatus"><?= $this->getHtml('Status'); ?></label>
<tr><td><select id="iStatus" name="status">
<option value="<?= htmlspecialchars(\phpOMS\Account\AccountStatus::ACTIVE, ENT_COMPAT, 'utf-8'); ?>"<?= htmlspecialchars($account->getStatus() === \phpOMS\Account\AccountStatus::ACTIVE ? ' selected' : '', ENT_COMPAT, 'utf-8'); ?>><?= $this->getHtml('Active'); ?>
<option value="<?= htmlspecialchars(\phpOMS\Account\AccountStatus::INACTIVE, ENT_COMPAT, 'utf-8'); ?>"<?= htmlspecialchars($account->getStatus() === \phpOMS\Account\AccountStatus::INACTIVE ? ' selected' : '', ENT_COMPAT, 'utf-8'); ?>><?= $this->getHtml('Inactive'); ?>
<option value="<?= htmlspecialchars(\phpOMS\Account\AccountStatus::TIMEOUT, ENT_COMPAT, 'utf-8'); ?>"<?= htmlspecialchars($account->getStatus() === \phpOMS\Account\AccountStatus::TIMEOUT ? ' selected' : '', ENT_COMPAT, 'utf-8'); ?>><?= $this->getHtml('Timeout'); ?>
<option value="<?= htmlspecialchars(\phpOMS\Account\AccountStatus::BANNED, ENT_COMPAT, 'utf-8'); ?>"<?= htmlspecialchars($account->getStatus() === \phpOMS\Account\AccountStatus::BANNED ? ' selected' : '', ENT_COMPAT, 'utf-8'); ?>><?= $this->getHtml('Banned'); ?>
</select>
<tr><td><label for="iUsername"><?= $this->getHtml('Username'); ?></label>
<tr><td><input id="iUsername" name="name" type="text" placeholder="&#xf007; Fred" value="<?= htmlspecialchars($account->getName(), ENT_COMPAT, 'utf-8'); ?>" disabled>
<tr><td><label for="iName1"><?= $this->getHtml('Name1'); ?></label>
<tr><td><input id="iName1" name="name1" type="text" placeholder="&#xf007; Donald" value="<?= htmlspecialchars($account->getName1(), ENT_COMPAT, 'utf-8'); ?>" required>
<tr><td><label for="iName2"><?= $this->getHtml('Name2'); ?></label>
<tr><td><input id="iName2" name="name2" type="text" placeholder="&#xf007; Fauntleroy" value="<?= htmlspecialchars($account->getName2(), ENT_COMPAT, 'utf-8'); ?>">
<tr><td><label for="iName3"><?= $this->getHtml('Name3'); ?></label>
<tr><td><input id="iName3" name="name3" type="text" placeholder="&#xf007; Duck" value="<?= htmlspecialchars($account->getName3(), ENT_COMPAT, 'utf-8'); ?>">
<tr><td><label for="iEmail"><?= $this->getHtml('Email'); ?></label>
<tr><td><input id="iEmail" name="email" type="email" placeholder="&#xf0e0; d.duck@duckburg.com" value="<?= htmlspecialchars($account->getEmail(), ENT_COMPAT, 'utf-8'); ?>">
<tr><td><label for="iPassword"><?= $this->getHtml('Name3'); ?></label>
<tr><td><input id="iPassword" name="password" type="text" placeholder="&#xf023; Pa55ssw0rd?">
<tr><td><input type="submit" value="<?= $this->getHtml('Save', 0, 0); ?>">
</table>
</form>
</div>
</section>
</div>
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Groups'); ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/admin/group'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iGroup"><?= $this->getHtml('Name'); ?></label>
<tr><td><input id="iGroup" name="group" type="text" placeholder="&#xf0c0; Guest">
<tr><td><input type="submit" value="<?= $this->getHtml('Add', 0, 0); ?>">
</table>
</form>
</div>
</section>
</div>
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Permissions'); ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/admin/group'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iGroup"><?= $this->getHtml('Name'); ?></label>
<tr><td><input id="iGroup" name="group" type="text" placeholder="&#xf084; news_create">
<tr><td><input type="submit" value="<?= $this->getHtml('Add', 0, 0); ?>">
</table>
</form>
</div>
</section>
</div>
</div>