Start implementing flexbox grid

This commit is contained in:
Dennis Eichhorn 2017-01-28 13:57:23 +01:00
parent ff106e04fc
commit 5c01bd782d
6 changed files with 360 additions and 292 deletions

View File

@ -19,50 +19,58 @@
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <div class="row">
<header><h1><?= $this->getText('Group') ?></h1></header> <div class="col-xs-12 col-md-6">
<div class="inner"> <section class="box wf-100">
<form id="group-create" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="<?= \phpOMS\Message\Http\RequestMethod::PUT; ?>"> <header><h1><?= $this->getText('Group') ?></h1></header>
<table class="layout wf-100"> <div class="inner">
<tbody> <form id="group-create" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="<?= \phpOMS\Message\Http\RequestMethod::PUT; ?>">
<tr><td colspan="2"><label for="iStatus"><?= $this->getText('Status') ?></label> <table class="layout wf-100">
<tr><td colspan="2"><select id="iStatus" name="status"> <tbody>
<option value="<?= \phpOMS\Account\GroupStatus::ACTIVE; ?>" selected><?= $this->getText('Active') ?> <tr><td colspan="2"><label for="iStatus"><?= $this->getText('Status') ?></label>
<option value="<?= \phpOMS\Account\GroupStatus::INACTIVE; ?>"><?= $this->getText('Inactive') ?> <tr><td colspan="2"><select id="iStatus" name="status">
<tr><td><label for="iGname"><?= $this->getText('Name') ?></label> <option value="<?= \phpOMS\Account\GroupStatus::ACTIVE; ?>" selected><?= $this->getText('Active') ?>
<tr><td><input id="iGname" name="name" type="text" placeholder="&#xf0c0; Guest" required> <option value="<?= \phpOMS\Account\GroupStatus::INACTIVE; ?>"><?= $this->getText('Inactive') ?>
<tr><td><label for="iGroupDescription"><?= $this->getText('Description') ?></label> <tr><td><label for="iGname"><?= $this->getText('Name') ?></label>
<tr><td><textarea id="iGroupDescription" name="description" placeholder="&#xf040;"></textarea> <tr><td><input id="iGname" name="name" type="text" placeholder="&#xf0c0; Guest" required>
<tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>"> <tr><td><label for="iGroupDescription"><?= $this->getText('Description') ?></label>
</table> <tr><td><textarea id="iGroupDescription" name="description" placeholder="&#xf040;"></textarea>
</form> <tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
</table>
</form>
</div>
</section>
</div> </div>
</section>
<section class="box w-66 floatLeft"> <div class="col-xs-12 col-md-6">
<header><h1><?= $this->getText('Parent') ?></h1></header> <section class="box wf-100">
<div class="inner"> <header><h1><?= $this->getText('Parent') ?></h1></header>
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post"> <div class="inner">
<table class="layout wf-100"> <form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
<tbody> <table class="layout wf-100">
<tr><td><label for="iGParentName"><?= $this->getText('Name') ?></label> <tbody>
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iGParentName" name="parentname" type="text" placeholder="&#xf0c0; Guest" required></span> <tr><td><label for="iGParentName"><?= $this->getText('Name') ?></label>
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>"> <tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iGParentName" name="parentname" type="text" placeholder="&#xf0c0; Guest" required></span>
</table> <tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
</form> </table>
</form>
</div>
</section>
</div> </div>
</section>
<section class="box w-66 floatLeft"> <div class="col-xs-12 col-md-6">
<header><h1><?= $this->getText('Permissions') ?></h1></header> <section class="box wf-100">
<div class="inner"> <header><h1><?= $this->getText('Permissions') ?></h1></header>
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post"> <div class="inner">
<table class="layout wf-100"> <form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
<tbody> <table class="layout wf-100">
<tr><td><label for="iPermissionName"><?= $this->getText('Name') ?></label> <tbody>
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPermissionName" name="permissionname" type="text" placeholder="&#xf084; Admin" required></span> <tr><td><label for="iPermissionName"><?= $this->getText('Name') ?></label>
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>"> <tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPermissionName" name="permissionname" type="text" placeholder="&#xf084; Admin" required></span>
</table> <tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
</form> </table>
</form>
</div>
</section>
</div> </div>
</section> </div>

View File

@ -26,30 +26,32 @@ $footerView->setResults($this->getData('list:count') ?? 1);
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="row">
<table class="table"> <div class="col-xs-12">
<caption><?= $this->getText('Groups'); ?></caption> <table class="box table">
<thead> <caption><?= $this->getText('Groups'); ?></caption>
<tr> <thead>
<td><?= $this->getText('ID', 0, 0); ?> <tr>
<td class="wf-100"><?= $this->getText('Name'); ?> <td><?= $this->getText('ID', 0, 0); ?>
<td><?= $this->getText('Parents'); ?> <td class="wf-100"><?= $this->getText('Name'); ?>
<td><?= $this->getText('Children'); ?> <td><?= $this->getText('Parents'); ?>
<td><?= $this->getText('Members'); ?> <td><?= $this->getText('Children'); ?>
<tfoot> <td><?= $this->getText('Members'); ?>
<tr><td colspan="5"><?= $footerView->render(); ?> <tfoot>
<tbody> <tr><td colspan="5"><?= $footerView->render(); ?>
<?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : $c++; <tbody>
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?> <?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : $c++;
<tr> $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?>
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a> <tr>
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
<td> <td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
<td> <td>
<td> <td>
<?php endforeach; ?> <td>
<?php if($c === 0) : ?> <?php endforeach; ?>
<tr><td colspan="5" class="empty"><?= $this->getText('Empty', 0, 0); ?> <?php if($c === 0) : ?>
<?php endif; ?> <tr><td colspan="5" class="empty"><?= $this->getText('Empty', 0, 0); ?>
</table> <?php endif; ?>
</div> </table>
</div>
</div>

View File

@ -35,7 +35,7 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
?> ?>
<div class="tabular-2"> <div class="tabular-2">
<div class="box"> <div class="box wf-100">
<ul class="tab-links"> <ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getText('General') ?></label></li> <li><label for="c-tab-1"><?= $this->getText('General') ?></label></li>
<li><label for="c-tab-2"><?= $this->getText('Localization') ?></label></li> <li><label for="c-tab-2"><?= $this->getText('Localization') ?></label></li>
@ -44,85 +44,95 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
<div class="tab-content"> <div class="tab-content">
<input type="radio" id="c-tab-1" name="tabular-2" checked> <input type="radio" id="c-tab-1" name="tabular-2" checked>
<div class="tab"> <div class="tab">
<section class="box w-50 floatLeft"> <div class="row">
<header><h1><?= $this->getText('Settings') ?></h1></header> <div class="col-xs-12 col-md-6">
<div class="inner"> <section class="box wf-100">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/settings/general'); ?>" method="post"> <header><h1><?= $this->getText('Settings') ?></h1></header>
<table class="layout wf-100"> <div class="inner">
<tbody> <form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/settings/general'); ?>" method="post">
<tr><td><label for="iOname"><?= $this->getText('OrganizationName') ?></label> <table class="layout wf-100">
<tr><td><input id="iOname" name="oname" type="text" value="<?= $_oname; ?>" placeholder="&#xf12e; Money Bin" required> <tbody>
<tr><td><label for="iPassword"><?= $this->getText('PasswordRegex') ?></label> <tr><td><label for="iOname"><?= $this->getText('OrganizationName') ?></label>
<tr><td><input id="iPassword" name="passpattern" type="text" value="<?= $_password; ?>" placeholder="&#xf023; ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&;:\(\)\[\]=\{\}\+\-])[A-Za-z\d$@$!%*?&;:\(\)\[\]=\{\}\+\-]{8,}"> <tr><td><input id="iOname" name="oname" type="text" value="<?= $_oname; ?>" placeholder="&#xf12e; Money Bin" required>
<tr><td><input type="submit" value="<?= $this->getText('Save', 0) ?>"> <tr><td><label for="iPassword"><?= $this->getText('PasswordRegex') ?></label>
</table> <tr><td><input id="iPassword" name="passpattern" type="text" value="<?= $_password; ?>" placeholder="&#xf023; ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&;:\(\)\[\]=\{\}\+\-])[A-Za-z\d$@$!%*?&;:\(\)\[\]=\{\}\+\-]{8,}">
</form> <tr><td><input type="submit" value="<?= $this->getText('Save', 0) ?>">
</table>
</form>
</div>
</section>
</div> </div>
</section> </div>
</div> </div>
<input type="radio" id="c-tab-2" name="tabular-2"> <input type="radio" id="c-tab-2" name="tabular-2">
<div class="tab"> <div class="tab">
<section class="box w-33 floatLeft"> <div class="row">
<header><h1><?= $this->getText('Localization') ?></h1></header> <div class="col-xs-12 col-md-4">
<div class="inner"> <section class="box wf-100">
<form id="fLocalization" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/settings/localization'); ?>" method="post"> <header><h1><?= $this->getText('Localization') ?></h1></header>
<table class="layout wf-100"> <div class="inner">
<tbody> <form id="fLocalization" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/settings/localization'); ?>" method="post">
<tr><td colspan="2"><label for="iCountries"><?= $this->getText('Country') ?></label> <table class="layout wf-100">
<tr><td colspan="2"><select id="iCountries" name="country"> <tbody>
<?php foreach($countries as $code => $country) : ?> <tr><td colspan="2"><label for="iCountries"><?= $this->getText('Country') ?></label>
<option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_country) ? ' selected' : ''; ?>><?= $country; ?> <tr><td colspan="2"><select id="iCountries" name="country">
<?php endforeach; ?> <?php foreach($countries as $code => $country) : ?>
</select> <option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_country) ? ' selected' : ''; ?>><?= $country; ?>
<tr><td colspan="2"><label for="iTimezones"><?= $this->getText('Timezone') ?></label> <?php endforeach; ?>
<tr><td colspan="2"><select id="iTimezones" name="timezone"> </select>
<?php foreach($timezones as $code => $timezone) : ?> <tr><td colspan="2"><label for="iTimezones"><?= $this->getText('Timezone') ?></label>
<option value="<?= $code; ?>"<?= $timezone == $_timezone ? ' selected' : ''; ?>><?= $timezone; ?> <tr><td colspan="2"><select id="iTimezones" name="timezone">
<?php endforeach; ?> <?php foreach($timezones as $code => $timezone) : ?>
</select> <option value="<?= $code; ?>"<?= $timezone == $_timezone ? ' selected' : ''; ?>><?= $timezone; ?>
<tr><td colspan="2"><label for="iTimeformats"><?= $this->getText('Timeformat') ?></label> <?php endforeach; ?>
<tr><td colspan="2"><select id="iTimeformats" name="timeformat"> </select>
<?php foreach($timeformats as $code => $timeformat) : ?> <tr><td colspan="2"><label for="iTimeformats"><?= $this->getText('Timeformat') ?></label>
<option value="<?= $code; ?>"<?= strtolower($timeformat) == strtolower($_timeformat) ? ' selected' : ''; ?>><?= $timeformat; ?> <tr><td colspan="2"><select id="iTimeformats" name="timeformat">
<?php endforeach; ?> <?php foreach($timeformats as $code => $timeformat) : ?>
</select> <option value="<?= $code; ?>"<?= strtolower($timeformat) == strtolower($_timeformat) ? ' selected' : ''; ?>><?= $timeformat; ?>
<tr><td colspan="2"><label for="iLanguages"><?= $this->getText('Language') ?></label> <?php endforeach; ?>
<tr><td colspan="2"><select id="iLanguages" name="language"> </select>
<?php foreach($languages as $code => $language) : ?> <tr><td colspan="2"><label for="iLanguages"><?= $this->getText('Language') ?></label>
<option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_language) ? ' selected' : ''; ?>><?= $language; ?> <tr><td colspan="2"><select id="iLanguages" name="language">
<?php endforeach; ?> <?php foreach($languages as $code => $language) : ?>
</select> <option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_language) ? ' selected' : ''; ?>><?= $language; ?>
<tr><td colspan="2"><label for="iTemperature"><?= $this->getText('Temperature') ?></label> <?php endforeach; ?>
<tr><td colspan="2"><select id="iTemperature" name="temperature"> </select>
</select> <tr><td colspan="2"><label for="iTemperature"><?= $this->getText('Temperature') ?></label>
<tr><td colspan="2"><input type="submit" value="<?= $this->getText('Save', 0) ?>"> <tr><td colspan="2"><select id="iTemperature" name="temperature">
</table> </select>
</form> <tr><td colspan="2"><input type="submit" value="<?= $this->getText('Save', 0) ?>">
</table>
</form>
</div>
</section>
</div> </div>
</section>
<section class="box w-33 floatLeft"> <div class="col-xs-12 col-md-4">
<header><h1><?= $this->getText('Numeric') ?></h1></header> <section class="box wf-100">
<div class="inner"> <header><h1><?= $this->getText('Numeric') ?></h1></header>
<form> <div class="inner">
<table class="layout wf-100"> <form>
<tr><td colspan="2"><label for="iCurrencies"><?= $this->getText('Currency') ?></label> <table class="layout wf-100">
<tr><td colspan="2"><select form="fLocalization" id="iCurrencies" name="currency"> <tr><td colspan="2"><label for="iCurrencies"><?= $this->getText('Currency') ?></label>
<?php foreach($currencies as $code => $currency) : ?> <tr><td colspan="2"><select form="fLocalization" id="iCurrencies" name="currency">
<option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_currency) ? ' selected' : ''; ?>><?= $currency; ?> <?php foreach($currencies as $code => $currency) : ?>
<?php endforeach; ?> <option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_currency) ? ' selected' : ''; ?>><?= $currency; ?>
</select> <?php endforeach; ?>
<tr><td colspan="2"><h2><?= $this->getText('Numberformat') ?></h2> </select>
<tr><td><label for="iDecimalPoint"><?= $this->getText('DecimalPoint') ?></label> <tr><td colspan="2"><h2><?= $this->getText('Numberformat') ?></h2>
<td><label for="iThousandSep"><?= $this->getText('ThousandsSeparator') ?></label> <tr><td><label for="iDecimalPoint"><?= $this->getText('DecimalPoint') ?></label>
<tr><td><input form="fLocalization" id="iDecimalPoint" name="decimalpoint" type="text" value="<?= $_decimal_point; ?>" placeholder="." required> <td><label for="iThousandSep"><?= $this->getText('ThousandsSeparator') ?></label>
<td><input form="fLocalization" id="iThousandSep" name="thousandsep" type="text" value="<?= $_thousands_sep; ?>" placeholder="," required> <tr><td><input form="fLocalization" id="iDecimalPoint" name="decimalpoint" type="text" value="<?= $_decimal_point; ?>" placeholder="." required>
</table> <td><input form="fLocalization" id="iThousandSep" name="thousandsep" type="text" value="<?= $_thousands_sep; ?>" placeholder="," required>
</form> </table>
</div> </form>
</section> </div>
</section>
</div>
<section class="box w-33 floatLeft"> <div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Weight') ?></h1></header> <header><h1><?= $this->getText('Weight') ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
@ -147,8 +157,12 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
</form> </form>
</div> </div>
</section> </section>
</div>
</div>
<section class="box w-33 floatLeft"> <div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Speed') ?></h1></header> <header><h1><?= $this->getText('Speed') ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
@ -176,8 +190,10 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
</form> </form>
</div> </div>
</section> </section>
</div>
<section class="box w-33 floatLeft"> <div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Length') ?></h1></header> <header><h1><?= $this->getText('Length') ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
@ -205,8 +221,10 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
</form> </form>
</div> </div>
</section> </section>
</div>
<section class="box w-33 floatLeft"> <div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Area') ?></h1></header> <header><h1><?= $this->getText('Area') ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
@ -231,8 +249,12 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
</form> </form>
</div> </div>
</section> </section>
</div>
</div>
<section class="box w-33 floatLeft"> <div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Volume') ?></h1></header> <header><h1><?= $this->getText('Volume') ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
@ -266,6 +288,8 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
</form> </form>
</div> </div>
</section> </section>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -19,50 +19,58 @@
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <div class="row">
<header><h1><?= $this->getText('Group') ?></h1></header> <div class="col-xs-12 col-md-6">
<div class="inner"> <section class="box wf-100">
<form id="group-create" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="<?= \phpOMS\Message\Http\RequestMethod::PUT; ?>"> <header><h1><?= $this->getText('Group') ?></h1></header>
<table class="layout wf-100"> <div class="inner">
<tbody> <form id="group-create" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="<?= \phpOMS\Message\Http\RequestMethod::PUT; ?>">
<tr><td colspan="2"><label for="iStatus"><?= $this->getText('Status') ?></label> <table class="layout wf-100">
<tr><td colspan="2"><select id="iStatus" name="status"> <tbody>
<option value="<?= \phpOMS\Account\GroupStatus::ACTIVE; ?>" selected><?= $this->getText('Active') ?> <tr><td colspan="2"><label for="iStatus"><?= $this->getText('Status') ?></label>
<option value="<?= \phpOMS\Account\GroupStatus::INACTIVE; ?>"><?= $this->getText('Inactive') ?> <tr><td colspan="2"><select id="iStatus" name="status">
<tr><td><label for="iGname"><?= $this->getText('Name') ?></label> <option value="<?= \phpOMS\Account\GroupStatus::ACTIVE; ?>" selected><?= $this->getText('Active') ?>
<tr><td><input id="iGname" name="name" type="text" placeholder="&#xf0c0; Guest" required> <option value="<?= \phpOMS\Account\GroupStatus::INACTIVE; ?>"><?= $this->getText('Inactive') ?>
<tr><td><label for="iGroupDescription"><?= $this->getText('Description') ?></label> <tr><td><label for="iGname"><?= $this->getText('Name') ?></label>
<tr><td><textarea id="iGroupDescription" name="description" placeholder="&#xf040;"></textarea> <tr><td><input id="iGname" name="name" type="text" placeholder="&#xf0c0; Guest" required>
<tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>"> <tr><td><label for="iGroupDescription"><?= $this->getText('Description') ?></label>
</table> <tr><td><textarea id="iGroupDescription" name="description" placeholder="&#xf040;"></textarea>
</form> <tr><td><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
</table>
</form>
</div>
</section>
</div> </div>
</section>
<section class="box w-66 floatLeft"> <div class="col-xs-12 col-md-6">
<header><h1><?= $this->getText('Parent') ?></h1></header> <section class="box wf-100">
<div class="inner"> <header><h1><?= $this->getText('Parent') ?></h1></header>
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post"> <div class="inner">
<table class="layout wf-100"> <form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
<tbody> <table class="layout wf-100">
<tr><td><label for="iGParentName"><?= $this->getText('Name') ?></label> <tbody>
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iGParentName" name="parentname" type="text" placeholder="&#xf0c0; Guest" required></span> <tr><td><label for="iGParentName"><?= $this->getText('Name') ?></label>
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>"> <tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iGParentName" name="parentname" type="text" placeholder="&#xf0c0; Guest" required></span>
</table> <tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
</form> </table>
</form>
</div>
</section>
</div> </div>
</section>
<section class="box w-66 floatLeft"> <div class="col-xs-12 col-md-6">
<header><h1><?= $this->getText('Permissions') ?></h1></header> <section class="box wf-100">
<div class="inner"> <header><h1><?= $this->getText('Permissions') ?></h1></header>
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post"> <div class="inner">
<table class="layout wf-100"> <form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
<tbody> <table class="layout wf-100">
<tr><td><label for="iPermissionName"><?= $this->getText('Name') ?></label> <tbody>
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPermissionName" name="permissionname" type="text" placeholder="&#xf084; Admin" required></span> <tr><td><label for="iPermissionName"><?= $this->getText('Name') ?></label>
<tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>"> <tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iPermissionName" name="permissionname" type="text" placeholder="&#xf084; Admin" required></span>
</table> <tr><td><input type="submit" value="<?= $this->getText('Add', 0, 0) ?>">
</form> </table>
</form>
</div>
</section>
</div> </div>
</section> </div>

View File

@ -26,30 +26,32 @@ $footerView->setResults($this->getData('list:count') ?? 1);
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="row">
<table class="table"> <div class="col-xs-12">
<caption><?= $this->getText('Groups'); ?></caption> <table class="box table">
<thead> <caption><?= $this->getText('Groups'); ?></caption>
<tr> <thead>
<td><?= $this->getText('ID', 0, 0); ?> <tr>
<td class="wf-100"><?= $this->getText('Name'); ?> <td><?= $this->getText('ID', 0, 0); ?>
<td><?= $this->getText('Parents'); ?> <td class="wf-100"><?= $this->getText('Name'); ?>
<td><?= $this->getText('Children'); ?> <td><?= $this->getText('Parents'); ?>
<td><?= $this->getText('Members'); ?> <td><?= $this->getText('Children'); ?>
<tfoot> <td><?= $this->getText('Members'); ?>
<tr><td colspan="5"><?= $footerView->render(); ?> <tfoot>
<tbody> <tr><td colspan="5"><?= $footerView->render(); ?>
<?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : $c++; <tbody>
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?> <?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : $c++;
<tr> $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?>
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a> <tr>
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
<td> <td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
<td> <td>
<td> <td>
<?php endforeach; ?> <td>
<?php if($c === 0) : ?> <?php endforeach; ?>
<tr><td colspan="5" class="empty"><?= $this->getText('Empty', 0, 0); ?> <?php if($c === 0) : ?>
<?php endif; ?> <tr><td colspan="5" class="empty"><?= $this->getText('Empty', 0, 0); ?>
</table> <?php endif; ?>
</div> </table>
</div>
</div>

View File

@ -35,7 +35,7 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
?> ?>
<div class="tabular-2"> <div class="tabular-2">
<div class="box"> <div class="box wf-100">
<ul class="tab-links"> <ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getText('General') ?></label></li> <li><label for="c-tab-1"><?= $this->getText('General') ?></label></li>
<li><label for="c-tab-2"><?= $this->getText('Localization') ?></label></li> <li><label for="c-tab-2"><?= $this->getText('Localization') ?></label></li>
@ -44,85 +44,95 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
<div class="tab-content"> <div class="tab-content">
<input type="radio" id="c-tab-1" name="tabular-2" checked> <input type="radio" id="c-tab-1" name="tabular-2" checked>
<div class="tab"> <div class="tab">
<section class="box w-50 floatLeft"> <div class="row">
<header><h1><?= $this->getText('Settings') ?></h1></header> <div class="col-xs-12 col-md-6">
<div class="inner"> <section class="box wf-100">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/settings/general'); ?>" method="post"> <header><h1><?= $this->getText('Settings') ?></h1></header>
<table class="layout wf-100"> <div class="inner">
<tbody> <form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/settings/general'); ?>" method="post">
<tr><td><label for="iOname"><?= $this->getText('OrganizationName') ?></label> <table class="layout wf-100">
<tr><td><input id="iOname" name="oname" type="text" value="<?= $_oname; ?>" placeholder="&#xf12e; Money Bin" required> <tbody>
<tr><td><label for="iPassword"><?= $this->getText('PasswordRegex') ?></label> <tr><td><label for="iOname"><?= $this->getText('OrganizationName') ?></label>
<tr><td><input id="iPassword" name="passpattern" type="text" value="<?= $_password; ?>" placeholder="&#xf023; ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&;:\(\)\[\]=\{\}\+\-])[A-Za-z\d$@$!%*?&;:\(\)\[\]=\{\}\+\-]{8,}"> <tr><td><input id="iOname" name="oname" type="text" value="<?= $_oname; ?>" placeholder="&#xf12e; Money Bin" required>
<tr><td><input type="submit" value="<?= $this->getText('Save', 0) ?>"> <tr><td><label for="iPassword"><?= $this->getText('PasswordRegex') ?></label>
</table> <tr><td><input id="iPassword" name="passpattern" type="text" value="<?= $_password; ?>" placeholder="&#xf023; ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&;:\(\)\[\]=\{\}\+\-])[A-Za-z\d$@$!%*?&;:\(\)\[\]=\{\}\+\-]{8,}">
</form> <tr><td><input type="submit" value="<?= $this->getText('Save', 0) ?>">
</table>
</form>
</div>
</section>
</div> </div>
</section> </div>
</div> </div>
<input type="radio" id="c-tab-2" name="tabular-2"> <input type="radio" id="c-tab-2" name="tabular-2">
<div class="tab"> <div class="tab">
<section class="box w-33 floatLeft"> <div class="row">
<header><h1><?= $this->getText('Localization') ?></h1></header> <div class="col-xs-12 col-md-4">
<div class="inner"> <section class="box wf-100">
<form id="fLocalization" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/settings/localization'); ?>" method="post"> <header><h1><?= $this->getText('Localization') ?></h1></header>
<table class="layout wf-100"> <div class="inner">
<tbody> <form id="fLocalization" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/settings/localization'); ?>" method="post">
<tr><td colspan="2"><label for="iCountries"><?= $this->getText('Country') ?></label> <table class="layout wf-100">
<tr><td colspan="2"><select id="iCountries" name="country"> <tbody>
<?php foreach($countries as $code => $country) : ?> <tr><td colspan="2"><label for="iCountries"><?= $this->getText('Country') ?></label>
<option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_country) ? ' selected' : ''; ?>><?= $country; ?> <tr><td colspan="2"><select id="iCountries" name="country">
<?php endforeach; ?> <?php foreach($countries as $code => $country) : ?>
</select> <option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_country) ? ' selected' : ''; ?>><?= $country; ?>
<tr><td colspan="2"><label for="iTimezones"><?= $this->getText('Timezone') ?></label> <?php endforeach; ?>
<tr><td colspan="2"><select id="iTimezones" name="timezone"> </select>
<?php foreach($timezones as $code => $timezone) : ?> <tr><td colspan="2"><label for="iTimezones"><?= $this->getText('Timezone') ?></label>
<option value="<?= $code; ?>"<?= $timezone == $_timezone ? ' selected' : ''; ?>><?= $timezone; ?> <tr><td colspan="2"><select id="iTimezones" name="timezone">
<?php endforeach; ?> <?php foreach($timezones as $code => $timezone) : ?>
</select> <option value="<?= $code; ?>"<?= $timezone == $_timezone ? ' selected' : ''; ?>><?= $timezone; ?>
<tr><td colspan="2"><label for="iTimeformats"><?= $this->getText('Timeformat') ?></label> <?php endforeach; ?>
<tr><td colspan="2"><select id="iTimeformats" name="timeformat"> </select>
<?php foreach($timeformats as $code => $timeformat) : ?> <tr><td colspan="2"><label for="iTimeformats"><?= $this->getText('Timeformat') ?></label>
<option value="<?= $code; ?>"<?= strtolower($timeformat) == strtolower($_timeformat) ? ' selected' : ''; ?>><?= $timeformat; ?> <tr><td colspan="2"><select id="iTimeformats" name="timeformat">
<?php endforeach; ?> <?php foreach($timeformats as $code => $timeformat) : ?>
</select> <option value="<?= $code; ?>"<?= strtolower($timeformat) == strtolower($_timeformat) ? ' selected' : ''; ?>><?= $timeformat; ?>
<tr><td colspan="2"><label for="iLanguages"><?= $this->getText('Language') ?></label> <?php endforeach; ?>
<tr><td colspan="2"><select id="iLanguages" name="language"> </select>
<?php foreach($languages as $code => $language) : ?> <tr><td colspan="2"><label for="iLanguages"><?= $this->getText('Language') ?></label>
<option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_language) ? ' selected' : ''; ?>><?= $language; ?> <tr><td colspan="2"><select id="iLanguages" name="language">
<?php endforeach; ?> <?php foreach($languages as $code => $language) : ?>
</select> <option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_language) ? ' selected' : ''; ?>><?= $language; ?>
<tr><td colspan="2"><label for="iTemperature"><?= $this->getText('Temperature') ?></label> <?php endforeach; ?>
<tr><td colspan="2"><select id="iTemperature" name="temperature"> </select>
</select> <tr><td colspan="2"><label for="iTemperature"><?= $this->getText('Temperature') ?></label>
<tr><td colspan="2"><input type="submit" value="<?= $this->getText('Save', 0) ?>"> <tr><td colspan="2"><select id="iTemperature" name="temperature">
</table> </select>
</form> <tr><td colspan="2"><input type="submit" value="<?= $this->getText('Save', 0) ?>">
</table>
</form>
</div>
</section>
</div> </div>
</section>
<section class="box w-33 floatLeft"> <div class="col-xs-12 col-md-4">
<header><h1><?= $this->getText('Numeric') ?></h1></header> <section class="box wf-100">
<div class="inner"> <header><h1><?= $this->getText('Numeric') ?></h1></header>
<form> <div class="inner">
<table class="layout wf-100"> <form>
<tr><td colspan="2"><label for="iCurrencies"><?= $this->getText('Currency') ?></label> <table class="layout wf-100">
<tr><td colspan="2"><select form="fLocalization" id="iCurrencies" name="currency"> <tr><td colspan="2"><label for="iCurrencies"><?= $this->getText('Currency') ?></label>
<?php foreach($currencies as $code => $currency) : ?> <tr><td colspan="2"><select form="fLocalization" id="iCurrencies" name="currency">
<option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_currency) ? ' selected' : ''; ?>><?= $currency; ?> <?php foreach($currencies as $code => $currency) : ?>
<?php endforeach; ?> <option value="<?= $code; ?>"<?= strtolower($code) == strtolower($_currency) ? ' selected' : ''; ?>><?= $currency; ?>
</select> <?php endforeach; ?>
<tr><td colspan="2"><h2><?= $this->getText('Numberformat') ?></h2> </select>
<tr><td><label for="iDecimalPoint"><?= $this->getText('DecimalPoint') ?></label> <tr><td colspan="2"><h2><?= $this->getText('Numberformat') ?></h2>
<td><label for="iThousandSep"><?= $this->getText('ThousandsSeparator') ?></label> <tr><td><label for="iDecimalPoint"><?= $this->getText('DecimalPoint') ?></label>
<tr><td><input form="fLocalization" id="iDecimalPoint" name="decimalpoint" type="text" value="<?= $_decimal_point; ?>" placeholder="." required> <td><label for="iThousandSep"><?= $this->getText('ThousandsSeparator') ?></label>
<td><input form="fLocalization" id="iThousandSep" name="thousandsep" type="text" value="<?= $_thousands_sep; ?>" placeholder="," required> <tr><td><input form="fLocalization" id="iDecimalPoint" name="decimalpoint" type="text" value="<?= $_decimal_point; ?>" placeholder="." required>
</table> <td><input form="fLocalization" id="iThousandSep" name="thousandsep" type="text" value="<?= $_thousands_sep; ?>" placeholder="," required>
</form> </table>
</div> </form>
</section> </div>
</section>
</div>
<section class="box w-33 floatLeft"> <div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Weight') ?></h1></header> <header><h1><?= $this->getText('Weight') ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
@ -147,8 +157,12 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
</form> </form>
</div> </div>
</section> </section>
</div>
</div>
<section class="box w-33 floatLeft"> <div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Speed') ?></h1></header> <header><h1><?= $this->getText('Speed') ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
@ -176,8 +190,10 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
</form> </form>
</div> </div>
</section> </section>
</div>
<section class="box w-33 floatLeft"> <div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Length') ?></h1></header> <header><h1><?= $this->getText('Length') ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
@ -205,8 +221,10 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
</form> </form>
</div> </div>
</section> </section>
</div>
<section class="box w-33 floatLeft"> <div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Area') ?></h1></header> <header><h1><?= $this->getText('Area') ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
@ -231,8 +249,12 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
</form> </form>
</div> </div>
</section> </section>
</div>
</div>
<section class="box w-33 floatLeft"> <div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Volume') ?></h1></header> <header><h1><?= $this->getText('Volume') ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
@ -266,6 +288,8 @@ $currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
</form> </form>
</div> </div>
</section> </section>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>