show l11n in profile and setup during install

This commit is contained in:
Dennis Eichhorn 2020-02-08 22:32:20 +01:00
parent 4906e13da6
commit 7364c6873c
2 changed files with 107 additions and 66 deletions

View File

@ -17,6 +17,7 @@ return ['Profile' => [
'Account/Group' => 'Account/Group', 'Account/Group' => 'Account/Group',
'Activity' => 'Activity', 'Activity' => 'Activity',
'Address' => 'Address', 'Address' => 'Address',
'Amount' => '{Amount}',
'Area' => 'Area', 'Area' => 'Area',
'Birthday' => 'Birthday', 'Birthday' => 'Birthday',
'City' => 'City', 'City' => 'City',
@ -26,8 +27,10 @@ return ['Profile' => [
'Country' => 'Country', 'Country' => 'Country',
'CreateProfile' => 'Create Profile', 'CreateProfile' => 'Create Profile',
'Currency' => 'Currency', 'Currency' => 'Currency',
'Currencyformat' => 'Currencyformat',
'Customized' => 'Customized', 'Customized' => 'Customized',
'DecimalPoint' => 'Decimal Point', 'DecimalPoint' => 'Decimal Point',
'DateDelim' => 'Date Separator',
'Defaults' => 'Defaults', 'Defaults' => 'Defaults',
'Email' => 'Email', 'Email' => 'Email',
'Fast' => 'Fast', 'Fast' => 'Fast',
@ -39,6 +42,7 @@ return ['Profile' => [
'LastLogin' => 'Last Login', 'LastLogin' => 'Last Login',
'Length' => 'Length', 'Length' => 'Length',
'Light' => 'Light', 'Light' => 'Light',
'Load' => 'Load',
'Localization' => 'Localization', 'Localization' => 'Localization',
'Long' => 'Long', 'Long' => 'Long',
'Medium' => 'Medium', 'Medium' => 'Medium',
@ -65,6 +69,9 @@ return ['Profile' => [
'Teaspoon' => 'Teaspoon', 'Teaspoon' => 'Teaspoon',
'Temperature' => 'Temperature', 'Temperature' => 'Temperature',
'ThousandsSeparator' => 'Thousands Separator', 'ThousandsSeparator' => 'Thousands Separator',
'Time' => 'Time',
'TimeDelim' => 'Time Separator',
'Timeformat' => 'Timeformat',
'Timezone' => 'Timezone', 'Timezone' => 'Timezone',
'VeryFast' => 'Very Fast', 'VeryFast' => 'Very Fast',
'VeryHeavy' => 'Very Heavy', 'VeryHeavy' => 'Very Heavy',

View File

@ -17,11 +17,12 @@ use phpOMS\Uri\UriFactory;
/** /**
* @var \phpOMS\Views\View $this * @var \phpOMS\Views\View $this
* @var \Modules\Profile\Models\Profile $account * @var \Modules\Profile\Models\Profile $profile
*/ */
$account = $this->getData('account'); $profile = $this->getData('account');
$settings = $this->getData('settings') ?? []; $settings = $this->getData('settings') ?? [];
$countryCodes = \phpOMS\Localization\ISO3166TwoEnum::getConstants();
$countries = \phpOMS\Localization\ISO3166NameEnum::getConstants(); $countries = \phpOMS\Localization\ISO3166NameEnum::getConstants();
$timezones = \phpOMS\Localization\TimeZoneEnumArray::getConstants(); $timezones = \phpOMS\Localization\TimeZoneEnumArray::getConstants();
$timeformats = \phpOMS\Localization\ISO8601EnumArray::getConstants(); $timeformats = \phpOMS\Localization\ISO8601EnumArray::getConstants();
@ -36,6 +37,9 @@ $lengths = \phpOMS\Utils\Converter\LengthType::getConstants();
$volumes = \phpOMS\Utils\Converter\VolumeType::getConstants(); $volumes = \phpOMS\Utils\Converter\VolumeType::getConstants();
$temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants(); $temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants();
$account = $profile->getAccount();
$l11n = $account->getL11n();
echo $this->getData('nav')->render(); echo $this->getData('nav')->render();
?> ?>
<div class="tabview tab-2"> <div class="tabview tab-2">
@ -53,12 +57,12 @@ echo $this->getData('nav')->render();
<section itemscope itemtype="http://schema.org/Person" itemtype="http://schema.org/Organization" class="box wf-100"> <section itemscope itemtype="http://schema.org/Person" itemtype="http://schema.org/Organization" class="box wf-100">
<header> <header>
<h1> <h1>
<?php if (!empty($account->getAccount()->getName3()) || !empty($account->getAccount()->getName2())) : ?> <?php if (!empty($account->getName3()) || !empty($account->getName2())) : ?>
<span itemprop="familyName" itemprop="legalName"> <span itemprop="familyName" itemprop="legalName">
<?= $this->printHtml(empty($account->getAccount()->getName3()) ? $account->getAccount()->getName2() : $account->getAccount()->getName3()); ?></span>, <?= $this->printHtml(empty($account->getName3()) ? $account->getName2() : $account->getName3()); ?></span>,
<?php endif; ?> <?php endif; ?>
<span itemprop="givenName" itemprop="legalName"> <span itemprop="givenName" itemprop="legalName">
<?= $this->printHtml($account->getAccount()->getName1()); ?> <?= $this->printHtml($account->getName1()); ?>
</span> </span>
</h1> </h1>
</header> </header>
@ -69,9 +73,9 @@ echo $this->getData('nav')->render();
alt="<?= $this->getHtml('ProfileImage'); ?>" alt="<?= $this->getHtml('ProfileImage'); ?>"
itemprop="logo" itemprop="logo"
data-lazyload="<?= data-lazyload="<?=
$account->getImage() instanceof NullMedia ? $profile->getImage() instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') : UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
UriFactory::build('{/prefix}' . $account->getImage()->getPath()); ?>" UriFactory::build('{/prefix}' . $profile->getImage()->getPath()); ?>"
> >
</span> </span>
<table class="list" style="table-layout: fixed"> <table class="list" style="table-layout: fixed">
@ -80,15 +84,15 @@ echo $this->getData('nav')->render();
<td itemprop="jobTitle">Sailor <td itemprop="jobTitle">Sailor
<tr> <tr>
<th><?= $this->getHtml('Birthday') ?> <th><?= $this->getHtml('Birthday') ?>
<td itemprop="birthDate" itemprop="foundingDate"><?= $account->getBirthday()->format('Y-m-d'); ?> <td itemprop="birthDate" itemprop="foundingDate"><?= $profile->getBirthday()->format('Y-m-d'); ?>
<tr> <tr>
<th><?= $this->getHtml('Email') ?> <th><?= $this->getHtml('Email') ?>
<td itemprop="email"><a href="mailto:>donald.duck@email.com<"><?= $this->printHtml($account->getAccount()->getEmail()); ?></a> <td itemprop="email"><a href="mailto:>donald.duck@email.com<"><?= $this->printHtml($account->getEmail()); ?></a>
<tr> <tr>
<th><?= $this->getHtml('Address') ?> <th><?= $this->getHtml('Address') ?>
<td> <td>
<?php <?php
$locations = $account->getLocation(); $locations = $profile->getLocation();
if (empty($locations)) : if (empty($locations)) :
?> ?>
<tr> <tr>
@ -104,7 +108,7 @@ echo $this->getData('nav')->render();
<th><?= $this->getHtml('Contact') ?> <th><?= $this->getHtml('Contact') ?>
<td> <td>
<?php <?php
$contacts = $account->getContactElements(); $contacts = $profile->getContactElements();
if (empty($contacts)) : if (empty($contacts)) :
?> ?>
<tr> <tr>
@ -118,13 +122,13 @@ echo $this->getData('nav')->render();
<?php endforeach; ?> <?php endforeach; ?>
<tr> <tr>
<th><?= $this->getHtml('Registered') ?> <th><?= $this->getHtml('Registered') ?>
<td><?= $this->printHtml($account->getAccount()->getCreatedAt()->format('Y-m-d')); ?> <td><?= $this->printHtml($account->getCreatedAt()->format('Y-m-d')); ?>
<tr> <tr>
<th><?= $this->getHtml('LastLogin') ?> <th><?= $this->getHtml('LastLogin') ?>
<td><?= $this->printHtml($account->getAccount()->getLastActive()->format('Y-m-d')); ?> <td><?= $this->printHtml($account->getLastActive()->format('Y-m-d')); ?>
<tr> <tr>
<th><?= $this->getHtml('Status') ?> <th><?= $this->getHtml('Status') ?>
<td><span class="tag green"><?= $this->getHtml(':s' . $account->getAccount()->getStatus(), 'Admin'); ?></span> <td><span class="tag green"><?= $this->getHtml(':s' . $account->getStatus(), 'Admin'); ?></span>
</table> </table>
<!-- @formatter:on --> <!-- @formatter:on -->
</div> </div>
@ -177,29 +181,22 @@ echo $this->getData('nav')->render();
<tr><td colspan="2"><label for="iCountries"><?= $this->getHtml('Country'); ?></label> <tr><td colspan="2"><label for="iCountries"><?= $this->getHtml('Country'); ?></label>
<tr><td colspan="2"> <tr><td colspan="2">
<select id="iCountries" name="settings_1000000019"> <select id="iCountries" name="settings_1000000019">
<?php foreach ($countries as $code => $country) : ?> <?php foreach ($countryCodes as $code3 => $code2) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000019]) ? ' selected' : ''); ?>><?= $this->printHtml($country); ?> <option value="<?= $this->printHtml($code2); ?>"<?= $this->printHtml($code2 === $l11n->getCountry() ? ' selected' : ''); ?>><?= $this->printHtml($countries[$code3]); ?>
<?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); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td colspan="2"><label for="iLanguages"><?= $this->getHtml('Language'); ?></label> <tr><td colspan="2"><label for="iLanguages"><?= $this->getHtml('Language'); ?></label>
<tr><td colspan="2"> <tr><td colspan="2">
<select id="iLanguages" name="settings_1000000020"> <select id="iLanguages" name="settings_1000000020">
<?php foreach ($languages as $code => $language) : ?> <?php foreach ($languages as $code => $language) : $code = \strtolower(\substr($code, 1)); ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?> <option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($code === $l11n->getLanguage() ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td colspan="2"><label for="iTemperature"><?= $this->getHtml('Temperature'); ?></label> <tr><td colspan="2"><label for="iTemperature"><?= $this->getHtml('Temperature'); ?></label>
<tr><td colspan="2"> <tr><td colspan="2">
<select id="iTemperature" name="settings_1000000022"> <select id="iTemperature" name="settings_1000000022">
<?php foreach ($temperatures as $code => $temperature) : ?> <?php foreach ($temperatures as $code => $temperature) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($temperature === $settings[1000000022] ? ' selected' : ''); ?>><?= $this->printHtml($temperature); ?> <option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($temperature === $l11n->getTemperature() ? ' selected' : ''); ?>><?= $this->printHtml($temperature); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td colspan="2"><input id="iSubmitLocalization" name="submitLocalization" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>"> <tr><td colspan="2"><input id="iSubmitLocalization" name="submitLocalization" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
@ -209,30 +206,72 @@ echo $this->getData('nav')->render();
</section> </section>
</div> </div>
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Time'); ?></h1></header>
<div class="inner">
<form>
<table class="layout wf-100">
<tbody>
<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 === $l11n->getTimezone() ? ' selected' : ''); ?>><?= $this->printHtml($timezone); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><h2><?= $this->getHtml('Timeformat'); ?></h2>
<tr><td><label for="iDateDelim"><?= $this->getHtml('DateDelim'); ?></label>
<td><label for="iTimeDelim"><?= $this->getHtml('TimeDelim'); ?></label>
<tr><td><input form="fLocalization" id="iDateDelim" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDateDelim()); ?>" placeholder="." required>
<td><input form="fLocalization" id="iTimeDelim" name="settings_1000000028" type="text" value="<?= $this->printHtml($l11n->getTimeDelim()); ?>" placeholder=":" required>
<tr><td colspan="2"><label for="iVeryShort"><?= $this->getHtml('VeryShort'); ?></label>
<tr><td colspan="2"><input form="fLocalization" id="iDateDelim" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDatetime()['very_short']); ?>" placeholder="Y" required>
<tr><td colspan="2"><label for="iShort"><?= $this->getHtml('Short'); ?></label>
<tr><td colspan="2"><input form="fLocalization" id="iDateDelim" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDatetime()['short']); ?>" placeholder="Y" required>
<tr><td colspan="2"><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td colspan="2"><input form="fLocalization" id="iDateDelim" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDatetime()['medium']); ?>" placeholder="Y" required>
<tr><td colspan="2"><label for="iLong"><?= $this->getHtml('Long'); ?></label>
<tr><td colspan="2"><input form="fLocalization" id="iDateDelim" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDatetime()['long']); ?>" placeholder="Y" required>
<tr><td colspan="2"><label for="iVeryLong"><?= $this->getHtml('VeryLong'); ?></label>
<tr><td colspan="2"><input form="fLocalization" id="iDateDelim" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDatetime()['very_long']); ?>" placeholder="Y" required>
</table>
</form>
</div>
</section>
</div>
<div class="col-xs-12 col-md-4"> <div class="col-xs-12 col-md-4">
<section class="box wf-100 green"> <section class="box wf-100 green">
<header><h1><?= $this->getHtml('Numeric'); ?></h1></header> <header><h1><?= $this->getHtml('Numeric'); ?></h1></header>
<div class="inner"> <div class="inner">
<form> <form>
<table class="layout wf-100"> <table class="layout wf-100">
<tr><td colspan="2"><label for="iCurrencies"><?= $this->getHtml('Currency'); ?></label> <tr><td colspan="2"><label for="iCurrencies"><?= $this->getHtml('Currency'); ?></label>
<tr><td colspan="2"> <tr><td colspan="2">
<select form="fLocalization" id="iCurrencies" name="settings_1000000023"> <select form="fLocalization" id="iCurrencies" name="settings_1000000023">
<?php foreach ($currencies as $code => $currency) : ?> <?php foreach ($currencies as $code => $currency) : $code = \substr($code, 1); ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000023]) ? ' selected' : ''); ?>><?= $this->printHtml($currency); ?> <option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($code === $l11n->getCurrency() ? ' selected' : ''); ?>><?= $this->printHtml($currency); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td colspan="2"><label><?= $this->getHtml('Currencyformat'); ?></label>
<tr><td colspan="2">
<select form="fLocalization">
<option value="%s1 %s2"<?= $this->printHtml('%s1 %s2' === $l11n->getCurrencyFormat() ? ' selected' : ''); ?>><?= $this->getHtml('Amount') , ' ' , $this->printHtml($l11n->getCurrency()); ?>
<option value="%s2 %s1"<?= $this->printHtml('%s2 %s1' === $l11n->getCurrencyFormat() ? ' selected' : ''); ?>><?= $this->printHtml($l11n->getCurrency()) , ' ' , $this->getHtml('Amount'); ?>
</select>
<tr><td colspan="2"><h2><?= $this->getHtml('Numberformat'); ?></h2> <tr><td colspan="2"><h2><?= $this->getHtml('Numberformat'); ?></h2>
<tr><td><label for="iDecimalPoint"><?= $this->getHtml('DecimalPoint'); ?></label> <tr><td><label for="iDecimalPoint"><?= $this->getHtml('DecimalPoint'); ?></label>
<td><label for="iThousandSep"><?= $this->getHtml('ThousandsSeparator'); ?></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> <tr><td><input form="fLocalization" id="iDecimalPoint" name="settings_1000000027" type="text" value="<?= $this->printHtml($l11n->getDecimal()); ?>" placeholder="." required>
<td><input form="fLocalization" id="iThousandSep" name="settings_1000000028" type="text" value="<?= $this->printHtml($settings[1000000028]); ?>" placeholder="," required> <td><input form="fLocalization" id="iThousandSep" name="settings_1000000028" type="text" value="<?= $this->printHtml($l11n->getThousands()); ?>" placeholder="," required>
</table> </table>
</form> </form>
</div> </div>
</section> </section>
</div> </div>
<div class="col-xs-12 col-md-4"> <div class="col-xs-12 col-md-4">
<section class="box wf-100 red"> <section class="box wf-100 red">
<header><h1><?= $this->getHtml('Weight'); ?></h1></header> <header><h1><?= $this->getHtml('Weight'); ?></h1></header>
@ -244,35 +283,35 @@ echo $this->getData('nav')->render();
<tr><td> <tr><td>
<select form="fLocalization" id="iVeryLight" name="settings_1000001001"> <select form="fLocalization" id="iVeryLight" name="settings_1000001001">
<?php foreach ($weights as $code => $weight) : ?> <?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $settings[1000002001] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?> <option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['very_light'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iLight"><?= $this->getHtml('Light'); ?></label> <tr><td><label for="iLight"><?= $this->getHtml('Light'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iLight" name="settings_1000001002"> <select form="fLocalization" id="iLight" name="settings_1000001002">
<?php foreach ($weights as $code => $weight) : ?> <?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $settings[1000002002] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?> <option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['light'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label> <tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000001003"> <select form="fLocalization" id="iMedium" name="settings_1000001003">
<?php foreach ($weights as $code => $weight) : ?> <?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $settings[1000002003] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?> <option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iHeavy"><?= $this->getHtml('Heavy'); ?></label> <tr><td><label for="iHeavy"><?= $this->getHtml('Heavy'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iHeavy" name="settings_1000001004"> <select form="fLocalization" id="iHeavy" name="settings_1000001004">
<?php foreach ($weights as $code => $weight) : ?> <?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $settings[1000002004] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?> <option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['heavy'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iVeryHeavy"><?= $this->getHtml('VeryHeavy'); ?></label> <tr><td><label for="iVeryHeavy"><?= $this->getHtml('VeryHeavy'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iVeryHeavy" name="settings_1000001005"> <select form="fLocalization" id="iVeryHeavy" name="settings_1000001005">
<?php foreach ($weights as $code => $weight) : ?> <?php foreach ($weights as $code => $weight) : ?>
<option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $settings[1000002005] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?> <option value="<?= $this->printHtml($weight); ?>"<?= $this->printHtml($weight === $l11n->getWeight()['very_heavy'] ? ' selected' : ''); ?>><?= $this->printHtml($weight); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
</table> </table>
@ -280,9 +319,7 @@ echo $this->getData('nav')->render();
</div> </div>
</section> </section>
</div> </div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4"> <div class="col-xs-12 col-md-4">
<section class="box wf-100 blue"> <section class="box wf-100 blue">
<header><h1><?= $this->getHtml('Speed'); ?></h1></header> <header><h1><?= $this->getHtml('Speed'); ?></h1></header>
@ -294,42 +331,42 @@ echo $this->getData('nav')->render();
<tr><td> <tr><td>
<select form="fLocalization" id="iVerySlow" name="settings_1000002001"> <select form="fLocalization" id="iVerySlow" name="settings_1000002001">
<?php foreach ($speeds as $code => $speed) : ?> <?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002001] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?> <option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['very_slow'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iSlow"><?= $this->getHtml('Slow'); ?></label> <tr><td><label for="iSlow"><?= $this->getHtml('Slow'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iSlow" name="settings_1000002002"> <select form="fLocalization" id="iSlow" name="settings_1000002002">
<?php foreach ($speeds as $code => $speed) : ?> <?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002002] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?> <option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['slow'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label> <tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000002003"> <select form="fLocalization" id="iMedium" name="settings_1000002003">
<?php foreach ($speeds as $code => $speed) : ?> <?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002003] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?> <option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iFast"><?= $this->getHtml('Fast'); ?></label> <tr><td><label for="iFast"><?= $this->getHtml('Fast'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iFast" name="settings_1000002004"> <select form="fLocalization" id="iFast" name="settings_1000002004">
<?php foreach ($speeds as $code => $speed) : ?> <?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002004] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?> <option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['fast'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iVeryFast"><?= $this->getHtml('VeryFast'); ?></label> <tr><td><label for="iVeryFast"><?= $this->getHtml('VeryFast'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iVeryFast" name="settings_1000002005"> <select form="fLocalization" id="iVeryFast" name="settings_1000002005">
<?php foreach ($speeds as $code => $speed) : ?> <?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002005] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?> <option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['very_fast'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iSeaSpeed"><?= $this->getHtml('Sea'); ?></label> <tr><td><label for="iSeaSpeed"><?= $this->getHtml('Sea'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iSeaSpeed" name="settings_1000002006"> <select form="fLocalization" id="iSeaSpeed" name="settings_1000002006">
<?php foreach ($speeds as $code => $speed) : ?> <?php foreach ($speeds as $code => $speed) : ?>
<option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $settings[1000002006] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?> <option value="<?= $this->printHtml($speed); ?>"<?= $this->printHtml($speed === $l11n->getSpeed()['sea'] ? ' selected' : ''); ?>><?= $this->printHtml($speed); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
</table> </table>
@ -349,42 +386,42 @@ echo $this->getData('nav')->render();
<tr><td> <tr><td>
<select form="fLocalization" id="iVeryShort" name="settings_1000003001"> <select form="fLocalization" id="iVeryShort" name="settings_1000003001">
<?php foreach ($lengths as $code => $length) : ?> <?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003001] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?> <option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['very_short'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iShort"><?= $this->getHtml('Short'); ?></label> <tr><td><label for="iShort"><?= $this->getHtml('Short'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iShort" name="settings_1000003002"> <select form="fLocalization" id="iShort" name="settings_1000003002">
<?php foreach ($lengths as $code => $length) : ?> <?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003002] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?> <option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['short'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label> <tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000003003"> <select form="fLocalization" id="iMedium" name="settings_1000003003">
<?php foreach ($lengths as $code => $length) : ?> <?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003003] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?> <option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iLong"><?= $this->getHtml('Long'); ?></label> <tr><td><label for="iLong"><?= $this->getHtml('Long'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iLong" name="settings_1000003004"> <select form="fLocalization" id="iLong" name="settings_1000003004">
<?php foreach ($lengths as $code => $length) : ?> <?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003004] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?> <option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['long'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iVeryLong"><?= $this->getHtml('VeryLong'); ?></label> <tr><td><label for="iVeryLong"><?= $this->getHtml('VeryLong'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iVeryLong" name="settings_1000003005"> <select form="fLocalization" id="iVeryLong" name="settings_1000003005">
<?php foreach ($lengths as $code => $length) : ?> <?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003005] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?> <option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['very_long'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iSeaLength"><?= $this->getHtml('Sea'); ?></label> <tr><td><label for="iSeaLength"><?= $this->getHtml('Sea'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iSeaLength" name="settings_1000003006"> <select form="fLocalization" id="iSeaLength" name="settings_1000003006">
<?php foreach ($lengths as $code => $length) : ?> <?php foreach ($lengths as $code => $length) : ?>
<option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $settings[1000003006] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?> <option value="<?= $this->printHtml($length); ?>"<?= $this->printHtml($length === $l11n->getLength()['sea'] ? ' selected' : ''); ?>><?= $this->printHtml($length); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
</table> </table>
@ -404,35 +441,35 @@ echo $this->getData('nav')->render();
<tr><td> <tr><td>
<select form="fLocalization" id="iVerySmall" name="settings_1000004001"> <select form="fLocalization" id="iVerySmall" name="settings_1000004001">
<?php foreach ($areas as $code => $area) : ?> <?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $settings[1000004001] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?> <option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['very_small'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iSmall"><?= $this->getHtml('Small'); ?></label> <tr><td><label for="iSmall"><?= $this->getHtml('Small'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iSmall" name="settings_1000004002"> <select form="fLocalization" id="iSmall" name="settings_1000004002">
<?php foreach ($areas as $code => $area) : ?> <?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $settings[1000004002] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?> <option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['small'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label> <tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000004003"> <select form="fLocalization" id="iMedium" name="settings_1000004003">
<?php foreach ($areas as $code => $area) : ?> <?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $settings[1000004003] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?> <option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iLarge"><?= $this->getHtml('Large'); ?></label> <tr><td><label for="iLarge"><?= $this->getHtml('Large'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iLarge" name="settings_1000004004"> <select form="fLocalization" id="iLarge" name="settings_1000004004">
<?php foreach ($areas as $code => $area) : ?> <?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $settings[1000004004] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?> <option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['large'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label> <tr><td><label for="iVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iVeryLarge" name="settings_1000004005"> <select form="fLocalization" id="iVeryLarge" name="settings_1000004005">
<?php foreach ($areas as $code => $area) : ?> <?php foreach ($areas as $code => $area) : ?>
<option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $settings[1000004005] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?> <option value="<?= $this->printHtml($area); ?>"<?= $this->printHtml($area === $l11n->getArea()['very_large'] ? ' selected' : ''); ?>><?= $this->printHtml($area); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
</table> </table>
@ -440,9 +477,7 @@ echo $this->getData('nav')->render();
</div> </div>
</section> </section>
</div> </div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4"> <div class="col-xs-12 col-md-4">
<section class="box wf-100"> <section class="box wf-100">
<header><h1><?= $this->getHtml('Volume'); ?></h1></header> <header><h1><?= $this->getHtml('Volume'); ?></h1></header>
@ -454,56 +489,56 @@ echo $this->getData('nav')->render();
<tr><td> <tr><td>
<select form="fLocalization" id="iVerySmall" name="settings_1000005001"> <select form="fLocalization" id="iVerySmall" name="settings_1000005001">
<?php foreach ($volumes as $code => $volume) : ?> <?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005001] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?> <option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['very_small'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iSmall"><?= $this->getHtml('Small'); ?></label> <tr><td><label for="iSmall"><?= $this->getHtml('Small'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iSmall" name="settings_1000005002"> <select form="fLocalization" id="iSmall" name="settings_1000005002">
<?php foreach ($volumes as $code => $volume) : ?> <?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005002] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?> <option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['small'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label> <tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iMedium" name="settings_1000005003"> <select form="fLocalization" id="iMedium" name="settings_1000005003">
<?php foreach ($volumes as $code => $volume) : ?> <?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005003] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?> <option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['medium'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iLarge"><?= $this->getHtml('Large'); ?></label> <tr><td><label for="iLarge"><?= $this->getHtml('Large'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iLarge" name="settings_1000005004"> <select form="fLocalization" id="iLarge" name="settings_1000005004">
<?php foreach ($volumes as $code => $volume) : ?> <?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005004] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?> <option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['large'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label> <tr><td><label for="iVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iVeryLarge" name="settings_1000005005"> <select form="fLocalization" id="iVeryLarge" name="settings_1000005005">
<?php foreach ($volumes as $code => $volume) : ?> <?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005005] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?> <option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['very_large'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iTeaspoon"><?= $this->getHtml('Teaspoon'); ?></label> <tr><td><label for="iTeaspoon"><?= $this->getHtml('Teaspoon'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iTeaspoon" name="settings_1000005006"> <select form="fLocalization" id="iTeaspoon" name="settings_1000005006">
<?php foreach ($volumes as $code => $volume) : ?> <?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005006] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?> <option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['teaspoon'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iTablespoon"><?= $this->getHtml('Tablespoon'); ?></label> <tr><td><label for="iTablespoon"><?= $this->getHtml('Tablespoon'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iTablespoon" name="settings_1000005007"> <select form="fLocalization" id="iTablespoon" name="settings_1000005007">
<?php foreach ($volumes as $code => $volume) : ?> <?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005007] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?> <option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['tablespoon'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
<tr><td><label for="iGlass"><?= $this->getHtml('Glass'); ?></label> <tr><td><label for="iGlass"><?= $this->getHtml('Glass'); ?></label>
<tr><td> <tr><td>
<select form="fLocalization" id="iGlass" name="settings_1000005008"> <select form="fLocalization" id="iGlass" name="settings_1000005008">
<?php foreach ($volumes as $code => $volume) : ?> <?php foreach ($volumes as $code => $volume) : ?>
<option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $settings[1000005008] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?> <option value="<?= $this->printHtml($volume); ?>"<?= $this->printHtml($volume === $l11n->getVolume()['glass'] ? ' selected' : ''); ?>><?= $this->printHtml($volume); ?>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
</table> </table>
@ -511,7 +546,6 @@ echo $this->getData('nav')->render();
</div> </div>
</section> </section>
</div> </div>
</div>
</div> </div>
</div> </div>
</div> </div>