mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-15 23:08:40 +00:00
update settings
This commit is contained in:
parent
7cf8506c30
commit
7ccb7478c3
|
|
@ -11,7 +11,7 @@
|
||||||
"create_collection": false,
|
"create_collection": false,
|
||||||
"name": "Default Profile Image",
|
"name": "Default Profile Image",
|
||||||
"virtualPath": "/Modules/Profile",
|
"virtualPath": "/Modules/Profile",
|
||||||
"path": "/Modules/Media/Files/Modules/Profile",
|
"path": "/Modules/Profile",
|
||||||
"files": [
|
"files": [
|
||||||
"/Modules/Profile/Admin/Install/Media/default_profile.png"
|
"/Modules/Profile/Admin/Install/Media/default_profile.png"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
18
Admin/Settings/Theme/Backend/settings.tpl.php
Normal file
18
Admin/Settings/Theme/Backend/settings.tpl.php
Normal 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
|
||||||
|
|
@ -190,10 +190,10 @@ final class BackendController extends Controller
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @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 = 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));
|
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000300000, $request, $response));
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
|
|
||||||
|
|
@ -195,13 +195,13 @@ echo $this->getData('nav')->render();
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<div class="ipt-wrap">
|
<div class="ipt-wrap">
|
||||||
<div class="ipt-first"><select id="iDefaultLocalizations" name="localization_load">
|
<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) : ?>
|
<?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; ?>
|
<?php endforeach; ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
<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">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user