fix general/localization tpl

This commit is contained in:
Dennis Eichhorn 2020-06-06 10:25:36 +02:00
parent ca1971a297
commit 6f1e9974e7
4 changed files with 307 additions and 243 deletions

View File

@ -14,10 +14,12 @@ declare(strict_types=1);
namespace Modules\Admin\Controller;
use Model\Settings;
use Modules\Admin\Models\AccountMapper;
use Modules\Admin\Models\AccountPermissionMapper;
use Modules\Admin\Models\GroupMapper;
use Modules\Admin\Models\GroupPermissionMapper;
use Modules\Admin\Models\LocalizationMapper;
use Modules\Admin\Models\NullAccountPermission;
use Modules\Admin\Models\NullGroupPermission;
@ -58,20 +60,15 @@ final class BackendController extends Controller
public function viewSettingsGeneral(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
{
$view = new View($this->app->l11nManager, $request, $response);
$settings = $this->app->appSettings->get([
1000000001, 1000000002, 1000000003, 1000000004, 1000000005, 1000000006, 1000000007, 1000000008, 1000000009,
1000000010, 1000000011, 1000000012, 1000000013, 1000000014, 1000000015, 1000000016, 1000000017, 1000000018, 1000000019,
1000000020, 1000000021, 1000000022, 1000000023, 1000000024, 1000000025, 1000000026, 1000000027, 1000000028, 1000000029,
1000001001, 1000001002, 1000001003, 1000001004, 1000001005,
1000002001, 1000002002, 1000002003, 1000002004, 1000002005, 1000002006,
1000003001, 1000003002, 1000003003, 1000003004, 1000003005, 1000003006,
1000004001, 1000004002, 1000004003, 1000004004, 1000004005,
1000005001, 1000005002, 1000005003, 1000005004, 1000005005, 1000005006, 1000005007, 1000005008,
$settings = $this->app->appSettings->get(null, [
Settings::PASSWORD_PATTERN, Settings::LOGIN_TIMEOUT, Settings::PASSWORD_INTERVAL, Settings::PASSWORD_HISTORY, Settings::LOGIN_TRIES, Settings::LOGGING_STATUS, Settings::LOGGING_PATH, Settings::DEFAULT_ORGANIZATION,
Settings::LOGIN_STATUS, Settings::DEFAULT_LOCALIZATION, Settings::ADMIN_MAIL
]);
$view->setTemplate('/Modules/Admin/Theme/Backend/settings-general');
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000104001, $request, $response));
$view->setData('settings', $settings);
$view->setData('defaultlocalization', LocalizationMapper::get((int) $settings[Settings::DEFAULT_LOCALIZATION]));
return $view;
}

View File

@ -27,6 +27,7 @@ return [
'AuditLog' => 'Audit Log',
'Available' => 'Verfügbar',
'All' => 'Alle',
'Amount' => 'Menge',
'App' => 'App',
'Area' => 'Gebiet',
'Banned' => 'Gabannt',
@ -41,6 +42,7 @@ return [
'Created' => 'Erstellt',
'CreatedBy' => 'Erstellt von',
'Currency' => 'Currency',
'Currencyformat' => 'Währungsformat',
'Customized' => 'Customized',
'DecimalPoint' => 'Decimal Point',
'Defaults' => 'Defaults',
@ -105,6 +107,7 @@ return [
'Permission' => 'Permission',
'Permissions' => 'Permissions',
'Person' => 'Person',
'Precision' => 'Genauigkeit',
'Profile' => 'Profile',
'Read' => 'Read',
'RAddress' => 'Remote Address',

View File

@ -27,6 +27,7 @@ return [
'AuditLog' => 'Audit Log',
'Available' => 'Available',
'All' => 'All',
'Amount' => 'Amount',
'App' => 'App',
'Area' => 'Area',
'Banned' => 'Banned',
@ -41,6 +42,7 @@ return [
'Created' => 'Created',
'CreatedBy' => 'Created By',
'Currency' => 'Currency',
'Currencyformat' => 'Currency Format',
'Customized' => 'Customized',
'DecimalPoint' => 'Decimal Point',
'Defaults' => 'Defaults',
@ -105,6 +107,7 @@ return [
'Permission' => 'Permission',
'Permissions' => 'Permissions',
'Person' => 'Person',
'Precision' => 'Precision',
'Profile' => 'Profile',
'Read' => 'Read',
'RAddress' => 'Remote Address',

View File

@ -13,12 +13,15 @@
declare(strict_types=1);
use Modules\Organization\Models\UnitMapper;
use phpOMS\Localization\NullLocalization;
use phpOMS\Uri\UriFactory;
/**
* @var \phpOMS\Views\View $this
*/
$settings = $this->getData('settings') ?? [];
$countryCodes = \phpOMS\Localization\ISO3166TwoEnum::getConstants();
$countries = \phpOMS\Localization\ISO3166NameEnum::getConstants();
$timezones = \phpOMS\Localization\TimeZoneEnumArray::getConstants();
$timeformats = \phpOMS\Localization\ISO8601EnumArray::getConstants();
@ -32,6 +35,8 @@ $areas = \phpOMS\Utils\Converter\AreaType::getConstants();
$lengths = \phpOMS\Utils\Converter\LengthType::getConstants();
$volumes = \phpOMS\Utils\Converter\VolumeType::getConstants();
$temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants();
$l11n = $this->getData('defaultlocalization') ?? new NullLocalization();
?>
<div class="tabview tab-2">
@ -49,7 +54,7 @@ $temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants();
<section class="box wf-100">
<header><h1><?= $this->getHtml('Settings'); ?></h1></header>
<div class="inner">
<form id="iGeneralSettings" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/settings/general'); ?>" method="post">
<form id="iGeneralSettings" action="<?= UriFactory::build('{/api}admin/settings/general'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iOname"><?= $this->getHtml('OrganizationName'); ?></label>
@ -69,7 +74,7 @@ $temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants();
<section class="box wf-100">
<header><h1><?= $this->getHtml('Security'); ?></h1></header>
<div class="inner">
<form id="iSecuritySettings" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/settings/general'); ?>" method="post">
<form id="iSecuritySettings" action="<?= UriFactory::build('{/api}admin/settings/general'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td>
@ -103,7 +108,7 @@ $temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants();
<section class="box wf-100">
<header><h1><?= $this->getHtml('Logging'); ?></h1></header>
<div class="inner">
<form id="iLoggingSettings" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/settings/general'); ?>" method="post">
<form id="iLoggingSettings" action="<?= UriFactory::build('{/api}admin/settings/general'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td>
@ -125,360 +130,416 @@ $temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants();
<div class="tab">
<div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Localization'); ?></h1></header>
<div class="inner">
<form id="fLocalization" name="fLocalization" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/settings/localization'); ?>" method="post">
<div class="portlet">
<form id="fLocalization" name="fLocalization" action="<?= UriFactory::build('{/api}profile/settings/localization'); ?>" method="post">
<div class="portlet-head"><?= $this->getHtml('Localization'); ?></div>
<div class="portlet-body">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iDefaultLocalizations"><?= $this->getHtml('Defaults'); ?></label>
<tr><td>
<div class="ipt-wrap">
<div class="ipt-first"><select id="iDefaultLocalizations" name="defaultlocalizations">
<div class="ipt-first"><select id="iDefaultLocalizations" name="localization_load">
<option selected disabled><?= $this->getHtml('Customized'); ?>
<?php foreach ($l11nDefinitions as $def) : ?>
<option value="<?= $this->printHtml(\explode('.', $def)[0]); ?>"><?= $this->printHtml(\explode('.', $def)[0]); ?>
<?php endforeach; ?>
</select>
</div>
<div class="ipt-second"><input type="submit" name="loadDefaultLocalization" value="<?= $this->getHtml('Load') ?>"></div>
<div class="ipt-second"><input type="submit" name="loadDefaultLocalization" formaction="<?= UriFactory::build('{/api}profile/settings/localization?load=1'); ?>" value="<?= $this->getHtml('Load') ?>"></div>
</div>
<tr><td colspan="2"><label for="iCountries"><?= $this->getHtml('Country'); ?></label>
<tr><td colspan="2">
<select id="iCountries" name="settings_1000000019">
<?php foreach ($countries as $code => $country) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000019]) ? ' selected' : ''); ?>><?= $this->printHtml($country); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><label for="iTimezones"><?= $this->getHtml('Timezone'); ?></label>
<tr><td colspan="2">
<select id="iTimezones" name="settings_1000000021">
<?php foreach ($timezones as $code => $timezone) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($timezone === $settings[1000000021] ? ' selected' : ''); ?>><?= $this->printHtml($timezone); ?>
<select id="iCountries" name="settings_country">
<?php foreach ($countryCodes as $code3 => $code2) : ?>
<option value="<?= $this->printHtml($code2); ?>"<?= $this->printHtml($code2 === $l11n->getCountry() ? ' selected' : ''); ?>><?= $this->printHtml($countries[$code3]); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><label for="iLanguages"><?= $this->getHtml('Language'); ?></label>
<tr><td colspan="2">
<select id="iLanguages" name="settings_1000000020">
<?php foreach ($languages as $code => $language) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
<select id="iLanguages" name="settings_language">
<?php foreach ($languages as $code => $language) : $code = \strtolower(\substr($code, 1)); ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($code === $l11n->getLanguage() ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><label for="iTemperature"><?= $this->getHtml('Temperature'); ?></label>
<tr><td colspan="2">
<select id="iTemperature" name="settings_1000000022">
<?php foreach ($temperatures as $code => $temperature) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($temperature === $settings[1000000022] ? ' selected' : ''); ?>><?= $this->printHtml($temperature); ?>
<select id="iTemperature" name="settings_temperature">
<?php foreach ($temperatures as $temperature) : ?>
<option value="<?= $this->printHtml($temperature); ?>"<?= $this->printHtml($temperature === $l11n->getTemperature() ? ' selected' : ''); ?>><?= $this->printHtml($temperature); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><input id="iSubmitLocalization" name="submitLocalization" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
</table>
</form>
</div>
</section>
</div>
<div class="portlet-foot">
<input id="iSubmitLocalization" name="submitLocalization" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
</div>
</form>
</div>
</div>
<div class="col-xs-12 col-md-4">
<section class="box wf-100 green">
<header><h1><?= $this->getHtml('Numeric'); ?></h1></header>
<div class="inner">
<form id="fNumerics" name="fNumerics">
<table class="layout wf-100">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Time'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iTimezones"><?= $this->getHtml('Timezone'); ?></label>
<tr><td>
<select form="fLocalization" id="iTimezones" name="settings_timezone">
<?php foreach ($timezones as $timezone) : ?>
<option value="<?= $this->printHtml($timezone); ?>"<?= $this->printHtml($timezone === $l11n->getTimezone() ? ' selected' : ''); ?>><?= $this->printHtml($timezone); ?>
<?php endforeach; ?>
</select>
<tr><td><h2><?= $this->getHtml('Timeformat'); ?></h2>
<tr><td><label for="iTimeformatVeryShort"><?= $this->getHtml('VeryShort'); ?></label>
<tr><td><input form="fLocalization" id="iTimeformatVeryShort" name="settings_timeformat_vs" type="text" value="<?= $this->printHtml($l11n->getDatetime()['very_short']); ?>" placeholder="Y" required>
<tr><td><label for="iTimeformatShort"><?= $this->getHtml('Short'); ?></label>
<tr><td><input form="fLocalization" id="iTimeformatShort" name="settings_timeformat_s" type="text" value="<?= $this->printHtml($l11n->getDatetime()['short']); ?>" placeholder="Y" required>
<tr><td><label for="iTimeformatMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td><input form="fLocalization" id="iTimeformatMedium" name="settings_timeformat_m" type="text" value="<?= $this->printHtml($l11n->getDatetime()['medium']); ?>" placeholder="Y" required>
<tr><td><label for="iTimeformatLong"><?= $this->getHtml('Long'); ?></label>
<tr><td><input form="fLocalization" id="iTimeformatLong" name="settings_timeformat_l" type="text" value="<?= $this->printHtml($l11n->getDatetime()['long']); ?>" placeholder="Y" required>
<tr><td><label for="iTimeformatVeryLong"><?= $this->getHtml('VeryLong'); ?></label>
<tr><td><input form="fLocalization" id="iTimeformatVeryLong" name="settings_timeformat_vl" type="text" value="<?= $this->printHtml($l11n->getDatetime()['very_long']); ?>" placeholder="Y" required>
</table>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Numeric'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tr><td colspan="2"><label for="iCurrencies"><?= $this->getHtml('Currency'); ?></label>
<tr><td colspan="2">
<select form="fLocalization" id="iCurrencies" name="settings_1000000023">
<?php foreach ($currencies as $code => $currency) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000023]) ? ' selected' : ''); ?>><?= $this->printHtml($currency); ?>
<select form="fLocalization" id="iCurrencies" name="settings_currency">
<?php foreach ($currencies as $code => $currency) : $code = \substr($code, 1); ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($code === $l11n->getCurrency() ? ' selected' : ''); ?>><?= $this->printHtml($currency); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><label><?= $this->getHtml('Currencyformat'); ?></label>
<tr><td colspan="2">
<select form="fLocalization" name="settings_currencyformat">
<option value="0"<?= $this->printHtml('0' === $l11n->getCurrencyFormat() ? ' selected' : ''); ?>><?= $this->getHtml('Amount') , ' ' , $this->printHtml($l11n->getCurrency()); ?>
<option value="1"<?= $this->printHtml('1' === $l11n->getCurrencyFormat() ? ' selected' : ''); ?>><?= $this->printHtml($l11n->getCurrency()) , ' ' , $this->getHtml('Amount'); ?>
</select>
<tr><td colspan="2"><h2><?= $this->getHtml('Numberformat'); ?></h2>
<tr><td><label for="iDecimalPoint"><?= $this->getHtml('DecimalPoint'); ?></label>
<td><label for="iThousandSep"><?= $this->getHtml('ThousandsSeparator'); ?></label>
<tr><td><input form="fLocalization" id="iDecimalPoint" name="settings_1000000027" type="text" value="<?= $this->printHtml($settings[1000000027]); ?>" placeholder="." required>
<td><input form="fLocalization" id="iThousandSep" name="settings_1000000028" type="text" value="<?= $this->printHtml($settings[1000000028]); ?>" placeholder="," required>
<tr><td><input form="fLocalization" id="iDecimalPoint" name="settings_decimal" type="text" value="<?= $this->printHtml($l11n->getDecimal()); ?>" placeholder="." required>
<td><input form="fLocalization" id="iThousandSep" name="settings_thousands" type="text" value="<?= $this->printHtml($l11n->getThousands()); ?>" placeholder="," required>
</table>
</form>
</div>
</section>
</div>
</div>
<div class="col-xs-12 col-md-4">
<section class="box wf-100 red">
<header><h1><?= $this->getHtml('Weight'); ?></h1></header>
<div class="inner">
<form id="fWeight" name="fWeight">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Precision'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVeryLight"><?= $this->getHtml('VeryLight'); ?></label>
<tr><td><label for="iPrecisionVeryShort"><?= $this->getHtml('VeryShort'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryLight" name="settings_1000001001">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $settings[1000002001] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iLight"><?= $this->getHtml('Light'); ?></label>
<input form="fLocalization" id="iPrecisionVeryShort" name="settings_precision_vs" value="<?= $this->printHtml($l11n->getPrecision()['very_short']); ?>" type="number">
<tr><td><label for="iPrecisionShort"><?= $this->getHtml('Short'); ?></label>
<tr><td>
<select form="fLocalization" id="iLight" name="settings_1000001002">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $settings[1000002002] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<input form="fLocalization" id="iPrecisionLight" name="settings_precision_s" value="<?= $this->printHtml($l11n->getPrecision()['short']); ?>" type="number">
<tr><td><label for="iPrecisionMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000001003">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $settings[1000002003] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iHeavy"><?= $this->getHtml('Heavy'); ?></label>
<input form="fLocalization" id="iPrecisionMedium" name="settings_precision_m" value="<?= $this->printHtml($l11n->getPrecision()['medium']); ?>" type="number">
<tr><td><label for="iPrecisionLong"><?= $this->getHtml('Long'); ?></label>
<tr><td>
<select form="fLocalization" id="iHeavy" name="settings_1000001004">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $settings[1000002004] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryHeavy"><?= $this->getHtml('VeryHeavy'); ?></label>
<input form="fLocalization" id="iPrecisionLong" name="settings_precision_l" value="<?= $this->printHtml($l11n->getPrecision()['long']); ?>" type="number">
<tr><td><label for="iPrecisionVeryLong"><?= $this->getHtml('VeryLong'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryHeavy" name="settings_1000001005">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $settings[1000002005] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<input form="fLocalization" id="iPrecisionVeryLong" name="settings_precision_vl" value="<?= $this->printHtml($l11n->getPrecision()['very_long']); ?>" type="number">
</table>
</form>
</div>
</section>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100 blue">
<header><h1><?= $this->getHtml('Speed'); ?></h1></header>
<div class="inner">
<form id="fSpeed" name="fSpeed">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVerySlow"><?= $this->getHtml('VerySlow'); ?></label>
<tr><td>
<select form="fLocalization" id="iVerySlow" name="settings_1000002001">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002001] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSlow"><?= $this->getHtml('Slow'); ?></label>
<tr><td>
<select form="fLocalization" id="iSlow" name="settings_1000002002">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002002] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000002003">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002003] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iFast"><?= $this->getHtml('Fast'); ?></label>
<tr><td>
<select form="fLocalization" id="iFast" name="settings_1000002004">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002004] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryFast"><?= $this->getHtml('VeryFast'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryFast" name="settings_1000002005">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002005] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSeaSpeed"><?= $this->getHtml('Sea'); ?></label>
<tr><td>
<select form="fLocalization" id="iSeaSpeed" name="settings_1000002006">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002006] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
</table>
</form>
</div>
</section>
</div>
</div>
<div class="col-xs-12 col-md-4">
<section class="box wf-100 purple">
<header><h1><?= $this->getHtml('Length'); ?></h1></header>
<div class="inner">
<form id="fLength" name="fLength">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Weight'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVeryShort"><?= $this->getHtml('VeryShort'); ?></label>
<tr><td><label for="iWeightVeryLight"><?= $this->getHtml('VeryLight'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryShort" name="settings_1000003001">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003001] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<select form="fLocalization" id="iWeightVeryLight" name="settings_weight_vl">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['very_light'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iShort"><?= $this->getHtml('Short'); ?></label>
<tr><td><label for="iWeightLight"><?= $this->getHtml('Light'); ?></label>
<tr><td>
<select form="fLocalization" id="iShort" name="settings_1000003002">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003002] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<select form="fLocalization" id="iWeightLight" name="settings_weight_l">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['light'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td><label for="iWeightMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000003003">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003003] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<select form="fLocalization" id="iWeightMedium" name="settings_weight_m">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iLong"><?= $this->getHtml('Long'); ?></label>
<tr><td><label for="iWeightHeavy"><?= $this->getHtml('Heavy'); ?></label>
<tr><td>
<select form="fLocalization" id="iLong" name="settings_1000003004">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003004] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<select form="fLocalization" id="iWeightHeavy" name="settings_weight_h">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['heavy'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryLong"><?= $this->getHtml('VeryLong'); ?></label>
<tr><td><label for="iWeightVeryHeavy"><?= $this->getHtml('VeryHeavy'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryLong" name="settings_1000003005">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003005] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSeaLength"><?= $this->getHtml('Sea'); ?></label>
<tr><td>
<select form="fLocalization" id="iSeaLength" name="settings_1000003006">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003006] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<select form="fLocalization" id="iWeightVeryHeavy" name="settings_weight_vh">
<?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['very_heavy'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?>
</select>
</table>
</form>
</div>
</section>
</div>
</div>
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Area'); ?></h1></header>
<div class="inner">
<form id="fArea" name="fArea">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Speed'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVerySmall"><?= $this->getHtml('VerySmall'); ?></label>
<tr><td><label for="iSpeedVerySlow"><?= $this->getHtml('VerySlow'); ?></label>
<tr><td>
<select form="fLocalization" id="iVerySmall" name="settings_1000004001">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $settings[1000004001] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<select form="fLocalization" id="iSpeedVerySlow" name="settings_speed_vs">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['very_slow'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSmall"><?= $this->getHtml('Small'); ?></label>
<tr><td><label for="iSpeedSlow"><?= $this->getHtml('Slow'); ?></label>
<tr><td>
<select form="fLocalization" id="iSmall" name="settings_1000004002">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $settings[1000004002] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<select form="fLocalization" id="iSpeedSlow" name="settings_speed_s">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['slow'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td><label for="iSpeedMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000004003">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $settings[1000004003] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<select form="fLocalization" id="iSpeedMedium" name="settings_speed_m">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iLarge"><?= $this->getHtml('Large'); ?></label>
<tr><td><label for="iSpeedFast"><?= $this->getHtml('Fast'); ?></label>
<tr><td>
<select form="fLocalization" id="iLarge" name="settings_1000004004">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $settings[1000004004] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<select form="fLocalization" id="iSpeedFast" name="settings_speed_f">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['fast'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label>
<tr><td><label for="iSpeedVeryFast"><?= $this->getHtml('VeryFast'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryLarge" name="settings_1000004005">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $settings[1000004005] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<select form="fLocalization" id="iSpeedVeryFast" name="settings_speed_vf">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['very_fast'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSpeedSea"><?= $this->getHtml('Sea'); ?></label>
<tr><td>
<select form="fLocalization" id="iSpeedSea" name="settings_speed_sea">
<?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['sea'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?>
</select>
</table>
</form>
</div>
</section>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Volume'); ?></h1></header>
<div class="inner">
<form id="fVolume" name="fVolume">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Length'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVerySmall"><?= $this->getHtml('VerySmall'); ?></label>
<tr><td><label for="iLengthVeryShort"><?= $this->getHtml('VeryShort'); ?></label>
<tr><td>
<select form="fLocalization" id="iVerySmall" name="settings_1000005001">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005001] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<select form="fLocalization" id="iLengthVeryShort" name="settings_length_vs">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['very_short'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSmall"><?= $this->getHtml('Small'); ?></label>
<tr><td><label for="iLengthShort"><?= $this->getHtml('Short'); ?></label>
<tr><td>
<select form="fLocalization" id="iSmall" name="settings_1000005002">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005002] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<select form="fLocalization" id="iLengthShort" name="settings_length_s">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['short'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td><label for="iLengthMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000005003">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005003] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<select form="fLocalization" id="iLengthMedium" name="settings_length_m">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iLarge"><?= $this->getHtml('Large'); ?></label>
<tr><td><label for="iLengthLong"><?= $this->getHtml('Long'); ?></label>
<tr><td>
<select form="fLocalization" id="iLarge" name="settings_1000005004">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005004] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<select form="fLocalization" id="iLengthLong" name="settings_length_l">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['long'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label>
<tr><td><label for="iLengthVeryLong"><?= $this->getHtml('VeryLong'); ?></label>
<tr><td>
<select form="fLocalization" id="iVeryLarge" name="settings_1000005005">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005005] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<select form="fLocalization" id="iLengthVeryLong" name="settings_length_vl">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['very_long'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iTeaspoon"><?= $this->getHtml('Teaspoon'); ?></label>
<tr><td><label for="iLengthSea"><?= $this->getHtml('Sea'); ?></label>
<tr><td>
<select form="fLocalization" id="iTeaspoon" name="settings_1000005006">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005006] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iTablespoon"><?= $this->getHtml('Tablespoon'); ?></label>
<tr><td>
<select form="fLocalization" id="iTablespoon" name="settings_1000005007">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005007] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iGlass"><?= $this->getHtml('Glass'); ?></label>
<tr><td>
<select form="fLocalization" id="iGlass" name="settings_1000005008">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005008] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<select form="fLocalization" id="iLengthSea" name="settings_length_sea">
<?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['sea'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?>
</select>
</table>
</form>
</div>
</section>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Area'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iAreaVerySmall"><?= $this->getHtml('VerySmall'); ?></label>
<tr><td>
<select form="fLocalization" id="iAreaVerySmall" name="settings_area_vs">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['very_small'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iAreaSmall"><?= $this->getHtml('Small'); ?></label>
<tr><td>
<select form="fLocalization" id="iAreaSmall" name="settings_area_s">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['small'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iAreaMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iAreaMedium" name="settings_area_m">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iAreaLarge"><?= $this->getHtml('Large'); ?></label>
<tr><td>
<select form="fLocalization" id="iAreaLarge" name="settings_area_l">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['large'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iAreaVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label>
<tr><td>
<select form="fLocalization" id="iAreaVeryLarge" name="settings_area_vl">
<?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['very_large'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?>
</select>
</table>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Volume'); ?></div>
<div class="portlet-body">
<form>
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVolumeVerySmall"><?= $this->getHtml('VerySmall'); ?></label>
<tr><td>
<select form="fLocalization" id="iVolumeVerySmall" name="settings_volume_vs">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['very_small'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVolumeSmall"><?= $this->getHtml('Small'); ?></label>
<tr><td>
<select form="fLocalization" id="iVolumeSmall" name="settings_volume_s">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['small'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVolumeMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td>
<select form="fLocalization" id="iVolumeMedium" name="settings_volume_m">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVolumeLarge"><?= $this->getHtml('Large'); ?></label>
<tr><td>
<select form="fLocalization" id="iVolumeLarge" name="settings_volume_l">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['large'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVolumeVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label>
<tr><td>
<select form="fLocalization" id="iVolumeVeryLarge" name="settings_volume_vl">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['very_large'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVolumeTeaspoon"><?= $this->getHtml('Teaspoon'); ?></label>
<tr><td>
<select form="fLocalization" id="iVolumeTeaspoon" name="settings_volume_teaspoon">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['teaspoon'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVolumeTablespoon"><?= $this->getHtml('Tablespoon'); ?></label>
<tr><td>
<select form="fLocalization" id="iVolumeTablespoon" name="settings_volume_tablespoon">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['tablespoon'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVolumeGlass"><?= $this->getHtml('Glass'); ?></label>
<tr><td>
<select form="fLocalization" id="iVolumeGlass" name="settings_volume_glass">
<?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['glass'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?>
</select>
</table>
</form>
</div>
</div>
</div>
</div>
</div>