This commit is contained in:
Dennis Eichhorn 2018-08-24 21:09:18 +02:00
parent fe558826c2
commit 6d930f1229
2 changed files with 210 additions and 86 deletions

View File

@ -120,19 +120,20 @@ final class Controller extends ModuleAbstract implements WebInterface
public function viewSettingsGeneral(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable
{
$view = new View($this->app, $request, $response);
$settings = $this->app->appSettings->get([1000000009, 1000000019, 1000000020, 1000000021, 1000000022, 1000000023, 1000000027, 1000000028,]);
$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,
]);
$view->setTemplate('/Modules/Admin/Theme/Backend/settings-general');
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000104001, $request, $response));
$view->setData('oname', $settings[1000000009]);
$view->setData('country', $settings[1000000019]);
$view->setData('timezone', $settings[1000000021]);
$view->setData('timeformat', $settings[1000000022]);
$view->setData('language', $settings[1000000020]);
$view->setData('currency', $settings[1000000023]);
$view->setData('decimal_point', $settings[1000000027]);
$view->setData('thousands_sep', $settings[1000000028]);
$view->setData('countries', $settings[1000000028]);
$view->setData('settings', $settings);
return $view;
}
@ -376,7 +377,7 @@ final class Controller extends ModuleAbstract implements WebInterface
public function apiSettingsGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{
$response->set(
$request->getUri()->__toString(),
$request->getUri()->__toString(),
[
'response' => $this->app->appSettings->get((int) $request->getData('id'))
]
@ -398,12 +399,20 @@ final class Controller extends ModuleAbstract implements WebInterface
*/
public function apiSettingsSet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{
$this->app->appSettings->set(
\json_decode((string) $request->getData('settings'), true),
true
);
if (($data = $request->getData('settings')) === null) {
$data = $request->getLike('(settings_)(.*)');
} else {
$data = \json_decode((string) $request->getData('settings'), true);
}
$response->set($request->getUri()->__toString(), true);
$this->app->appSettings->set($data, true);
$response->set($request->getUri()->__toString(), [
'status' => NotificationLevel::OK,
'title' => 'Settings',
'message' => 'Settings successfully modified.',
'response' => $data
]);
}
/**
@ -631,7 +640,7 @@ final class Controller extends ModuleAbstract implements WebInterface
{
$response->getHeader()->set('Content-Type', MimeType::M_JSON . '; charset=utf-8', true);
$response->set(
$request->getUri()->__toString(),
$request->getUri()->__toString(),
\array_values(
AccountMapper::find((string) ($request->getData('search') ?? ''))
)

View File

@ -14,15 +14,7 @@
/**
* @var \phpOMS\Views\View $this
*/
$_oname = $this->getData('oname') ?? '';
$_timezone = $this->getData('timezone') ?? '';
$_timeformat = $this->getData('timeformat') ?? '';
$_language = $this->getData('language') ?? '';
$_currency = $this->getData('currency') ?? '';
$_decimal_point = $this->getData('decimal_point') ?? '';
$_thousands_sep = $this->getData('thousands_sep') ?? '';
$_password = $this->getData('password') ?? '';
$_country = $this->getData('country') ?? '';
$settings = $this->getData('settings') ?? [];
$countries = \phpOMS\Localization\ISO3166NameEnum::getConstants();
$timezones = \phpOMS\Localization\TimeZoneEnumArray::getConstants();
@ -30,6 +22,13 @@ $timeformats = \phpOMS\Localization\ISO8601EnumArray::getConstants();
$languages = \phpOMS\Localization\ISO639Enum::getConstants();
$currencies = \phpOMS\Localization\ISO4217Enum::getConstants();
$l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../../../phpOMS/Localization/Defaults/Definitions');
$weights = \phpOMS\Utils\Converter\WeightType::getConstants();
$speeds = \phpOMS\Utils\Converter\SpeedType::getConstants();
$areas = \phpOMS\Utils\Converter\AreaType::getConstants();
$lengths = \phpOMS\Utils\Converter\LengthType::getConstants();
$volumes = \phpOMS\Utils\Converter\VolumeType::getConstants();
$temperatures = \phpOMS\Utils\Converter\TemperatureType::getConstants();
?>
<div class="tabular-2">
@ -51,7 +50,7 @@ $l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../.
<table class="layout wf-100">
<tbody>
<tr><td><label for="iOname"><?= $this->getHtml('OrganizationName'); ?></label>
<tr><td><input id="iOname" name="oname" type="text" value="<?= $this->printHtml($_oname); ?>" placeholder="&#xf12e; Money Bin" required>
<tr><td><input id="iOname" name="settings_1000000009" type="text" value="<?= $this->printHtml($settings[1000000009]); ?>" placeholder="&#xf12e; Money Bin" required>
<tr><td><input id="iSubmitGeneral" name="submitGeneral" type="submit" value="<?= $this->getHtml('Save', 0); ?>">
</table>
</form>
@ -69,23 +68,23 @@ $l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../.
<tr><td>
<label for="iPassword"><?= $this->getHtml('PasswordRegex'); ?></label>
<i class="fa fa-info-circle tooltip"><i><?= $this->getHtml('i:PasswordRegex') ?></i></i>
<tr><td><input id="iPassword" name="passpattern" type="text" value="<?= $this->printHtml($_password); ?>" placeholder="&#xf023; ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&;:\(\)\[\]=\{\}\+\-])[A-Za-z\d$@$!%*?&;:\(\)\[\]=\{\}\+\-]{8,}">
<tr><td><input id="iPassword" name="settings_1000000001" type="text" value="<?= $this->printHtml($settings[1000000001]); ?>" placeholder="&#xf023; ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$@$!%*?&;:\(\)\[\]=\{\}\+\-])[A-Za-z\d$@$!%*?&;:\(\)\[\]=\{\}\+\-]{8,}">
<tr><td>
<label for="iLoginRetries"><?= $this->getHtml('LoginRetries'); ?></label>
<i class="fa fa-info-circle tooltip"><i><?= $this->getHtml('i:LoginRetries') ?></i></i>
<tr><td><input id="iLoginRetries" name="loginretries" type="number" value="3" min="-1">
<tr><td><input id="iLoginRetries" name="settings_1000000005" type="number" value="<?= $this->printHtml($settings[1000000005]); ?>" min="-1">
<tr><td>
<label for="iTimeoutPeriod"><?= $this->getHtml('TimeoutPeriod'); ?></label>
<i class="fa fa-info-circle tooltip"><i><?= $this->getHtml('i:TimeoutPeriod') ?></i></i>
<tr><td><input id="iTimeoutPeriod" name="timeoutperiod" type="number" value="3">
<tr><td><input id="iTimeoutPeriod" name="settings_1000000002" type="number" value="<?= $this->printHtml($settings[1000000002]); ?>">
<tr><td>
<label for="iPasswordChangeInterval"><?= $this->getHtml('PasswordChangeInterval'); ?></label>
<i class="fa fa-info-circle tooltip"><i><?= $this->getHtml('i:PasswordChangeInterval') ?></i></i>
<tr><td><input id="iPasswordChangeInterval" name="passwordchangeinterval" type="number" value="90">
<tr><td><input id="iPasswordChangeInterval" name="settings_1000000003" type="number" value="<?= $this->printHtml($settings[1000000003]); ?>">
<tr><td>
<label for="iPasswordHistory"><?= $this->getHtml('PasswordHistory'); ?></label>
<i class="fa fa-info-circle tooltip"><i><?= $this->getHtml('i:PasswordHistory') ?></i></i>
<tr><td><input id="iPasswordHistory" name="passwordhistory" type="number" value="3">
<tr><td><input id="iPasswordHistory" name="settings_1000000004" type="number" value="<?= $this->printHtml($settings[1000000004]); ?>">
<tr><td><input id="iSubmitGeneral" name="submitGeneral" type="submit" value="<?= $this->getHtml('Save', 0); ?>">
</table>
</form>
@ -102,11 +101,11 @@ $l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../.
<tbody>
<tr><td>
<span class="checkbox">
<input id="iLog" name="log" type="checkbox" value="1">
<input id="iLog" name="settings_1000000006" type="checkbox" value="<?= $this->printHtml($settings[1000000006]); ?>">
<label for="iLog"><?= $this->getHtml('Log'); ?></label>
</span>
<tr><td><label for="iLogPath"><?= $this->getHtml('LogPath'); ?></label>
<tr><td><input id="iLogPath" name="logpath" type="text" value="<?= $this->printHtml($_password); ?>" placeholder="&#xf023; asdf">
<tr><td><input id="iLogPath" name="settings_1000000007" type="text" value="<?= $this->printHtml($settings[1000000007]); ?>" placeholder="&#xf023; asdf">
<tr><td><input id="iSubmitGeneral" name="submitGeneral" type="submit" value="<?= $this->getHtml('Save', 0); ?>">
</table>
</form>
@ -131,7 +130,7 @@ $l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../.
<div class="ipt-first"><select id="iDefaultLocalizations" name="defaultlocalizations">
<option selected><?= $this->getHtml('Customized'); ?>
<?php foreach ($l11nDefinitions as $def) : ?>
<option value="<?= $this->printHtml(explode('.', $def)[0]); ?>"><?= $this->printHtml(explode('.', $def)[0]); ?>
<option value="<?= $this->printHtml(\explode('.', $def)[0]); ?>"><?= $this->printHtml(\explode('.', $def)[0]); ?>
<?php endforeach; ?>
</select>
</div>
@ -139,35 +138,31 @@ $l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../.
</div>
<tr><td colspan="2"><label for="iCountries"><?= $this->getHtml('Country'); ?></label>
<tr><td colspan="2">
<select id="iCountries" name="country">
<select id="iCountries" name="settings_1000000019">
<?php foreach ($countries as $code => $country) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(strtolower($code) == strtolower($_country) ? ' selected' : ''); ?>><?= $this->printHtml($country); ?>
<?php endforeach; ?>
<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="timezone">
<select id="iTimezones" name="settings_1000000021">
<?php foreach ($timezones as $code => $timezone) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($timezone == $_timezone ? ' selected' : ''); ?>><?= $this->printHtml($timezone); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><label for="iTimeformats"><?= $this->getHtml('Timeformat'); ?></label>
<tr><td colspan="2">
<select id="iTimeformats" name="timeformat">
<?php foreach ($timeformats as $code => $timeformat) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(strtolower($timeformat) == strtolower($_timeformat) ? ' selected' : ''); ?>><?= $this->printHtml($timeformat); ?>
<?php endforeach; ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml($timezone === $settings[1000000021] ? ' selected' : ''); ?>><?= $this->printHtml($timezone); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><label for="iLanguages"><?= $this->getHtml('Language'); ?></label>
<tr><td colspan="2">
<select id="iLanguages" name="language">
<select id="iLanguages" name="settings_1000000020">
<?php foreach ($languages as $code => $language) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(strtolower($code) == strtolower($_language) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
<?php endforeach; ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' 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="temperature">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td colspan="2"><input id="iSubmitLocalization" name="submitLocalization" type="submit" value="<?= $this->getHtml('Save', 0); ?>">
</table>
@ -184,16 +179,16 @@ $l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../.
<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="currency">
<select form="fLocalization" id="iCurrencies" name="settings_1000000023">
<?php foreach ($currencies as $code => $currency) : ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(strtolower($code) == strtolower($_currency) ? ' selected' : ''); ?>><?= $this->printHtml($currency); ?>
<option value="<?= $this->printHtml($code); ?>"<?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000023]) ? ' selected' : ''); ?>><?= $this->printHtml($currency); ?>
<?php endforeach; ?>
</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="decimalpoint" type="text" value="<?= $this->printHtml($_decimal_point); ?>" placeholder="." required>
<td><input form="fLocalization" id="iThousandSep" name="thousandsep" type="text" value="<?= $this->printHtml($_thousands_sep); ?>" placeholder="," required>
<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>
</table>
</form>
</div>
@ -208,19 +203,39 @@ $l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../.
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVeryLight"><?= $this->getHtml('VeryLight'); ?></label>
<tr><td><select form="fLocalization" id="iVeryLight" name="very_light">
<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>
<tr><td><select form="fLocalization" id="iLight" name="light">
<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>
<tr><td><select form="fLocalization" id="iMedium" name="medium">
<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>
<tr><td><select form="fLocalization" id="iHeavy" name="heavy">
<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>
<tr><td><select form="fLocalization" id="iVeryHeavy" name="very_heavy">
<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>
</table>
</form>
@ -238,22 +253,46 @@ $l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../.
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVerySlow"><?= $this->getHtml('VerySlow'); ?></label>
<tr><td><select form="fLocalization" id="iVerySlow" name="very_slow">
<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="slow">
<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="medium">
<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="fast">
<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="very_fast">
<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="sea_speed">
<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>
@ -269,22 +308,46 @@ $l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../.
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVeryShort"><?= $this->getHtml('VeryShort'); ?></label>
<tr><td><select form="fLocalization" id="iVeryShort" name="very_short">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iShort"><?= $this->getHtml('Short'); ?></label>
<tr><td><select form="fLocalization" id="iShort" name="short">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td><select form="fLocalization" id="iMedium" name="medium">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iLong"><?= $this->getHtml('Long'); ?></label>
<tr><td><select form="fLocalization" id="iLong" name="long">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryLong"><?= $this->getHtml('VeryLong'); ?></label>
<tr><td><select form="fLocalization" id="iVeryLong" name="very_long">
<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="sea_length">
<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); ?>
<?php endforeach; ?>
</select>
</table>
</form>
@ -300,19 +363,39 @@ $l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../.
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVerySmall"><?= $this->getHtml('VerySmall'); ?></label>
<tr><td><select form="fLocalization" id="iVerySmall" name="very_small">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSmall"><?= $this->getHtml('Small'); ?></label>
<tr><td><select form="fLocalization" id="iSmall" name="small">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td><select form="fLocalization" id="iMedium" name="medium">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iLarge"><?= $this->getHtml('Large'); ?></label>
<tr><td><select form="fLocalization" id="iLarge" name="large">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label>
<tr><td><select form="fLocalization" id="iVeryLarge" name="very_large">
<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); ?>
<?php endforeach; ?>
</select>
</table>
</form>
@ -330,28 +413,60 @@ $l11nDefinitions = \phpOMS\System\File\Local\Directory::list(__DIR__ . '/../../.
<table class="layout wf-100">
<tbody>
<tr><td><label for="iVerySmall"><?= $this->getHtml('VerySmall'); ?></label>
<tr><td><select form="fLocalization" id="iVerySmall" name="very_small">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iSmall"><?= $this->getHtml('Small'); ?></label>
<tr><td><select form="fLocalization" id="iSmall" name="small">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iMedium"><?= $this->getHtml('Medium'); ?></label>
<tr><td><select form="fLocalization" id="iMedium" name="medium">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iLarge"><?= $this->getHtml('Large'); ?></label>
<tr><td><select form="fLocalization" id="iLarge" name="large">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iVeryLarge"><?= $this->getHtml('VeryLarge'); ?></label>
<tr><td><select form="fLocalization" id="iVeryLarge" name="very_large">
<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); ?>
<?php endforeach; ?>
</select>
<tr><td><label for="iTeaspoon"><?= $this->getHtml('Teaspoon'); ?></label>
<tr><td><select form="fLocalization" id="iTeaspoon" name="teaspoon">
<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="tablespoon">
<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="glass">
<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); ?>
<?php endforeach; ?>
</select>
</table>
</form>