update settings

This commit is contained in:
Dennis Eichhorn 2022-05-01 22:07:54 +02:00
parent 7cf8506c30
commit 7ccb7478c3
4 changed files with 23 additions and 5 deletions

View File

@ -11,7 +11,7 @@
"create_collection": false,
"name": "Default Profile Image",
"virtualPath": "/Modules/Profile",
"path": "/Modules/Media/Files/Modules/Profile",
"path": "/Modules/Profile",
"files": [
"/Modules/Profile/Admin/Install/Media/default_profile.png"
],

View File

@ -0,0 +1,18 @@
<?php
/**
* Karaka
*
* PHP Version 8.1
*
* @package Template
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
echo $this->getData('nav')->render();
?>
Settings

View File

@ -190,10 +190,10 @@ final class BackendController extends Controller
*
* @since 1.0.0
*/
public function viewProfileAdminSettings(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : RenderableInterface
public function viewModuleSettings(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : RenderableInterface
{
$view = new View($this->app->l11nManager, $request, $response);
$view->setTemplate('/Modules/Profile/Theme/Backend/modules-settings');
$view->setTemplate('/Modules/' . static::NAME . '/Admin/Settings/Theme/Backend/settings');
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000300000, $request, $response));
return $view;

View File

@ -195,13 +195,13 @@ echo $this->getData('nav')->render();
<tr><td>
<div class="ipt-wrap">
<div class="ipt-first"><select id="iDefaultLocalizations" name="localization_load">
<option selected disabled><?= $this->getHtml('Customized'); ?>
<option value="-1" 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" formaction="<?= UriFactory::build('{/api}profile/settings/localization?load=1'); ?>" value="<?= $this->getHtml('Load'); ?>"></div>
<div class="ipt-second"><input type="submit" name="loadDefaultLocalization" formaction="<?= UriFactory::build('{/api}profile/settings/localization'); ?>" value="<?= $this->getHtml('Load'); ?>"></div>
</div>
<tr><td colspan="2"><label for="iCountries"><?= $this->getHtml('Country'); ?></label>
<tr><td colspan="2">