1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 16:14:16 +02:00

Admin Panel: Settings Manager - Select dropdown for themes - added.

This commit is contained in:
Awilum
2019-01-09 00:06:57 +03:00
parent 4b82ee2de5
commit 8c55049869
2 changed files with 2 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ class SettingsManager
->assign('settings', Registry::get('settings'))
->assign('locales', $locales)
->assign('entries', $entries)
->assign('themes', Filesystem::getDirList(PATH['themes']))
->display();
}
}

View File

@@ -90,7 +90,7 @@ Themes::view('admin/views/partials/content-start')->display();
<div class="col-md-6">
<div class="form-group">
<?= Form::label('theme', __('admin_system_settings_system_theme'), ['for' => 'systemSettingsSystemTheme']) ?>
<?= Form::input('theme', $settings['theme'], ['class' => 'form-control', 'id' => 'systemSettingsSystemTheme', 'required']) ?>
<?= Form::select('theme', $themes, $settings['theme'], ['class' => 'form-control', 'id' => 'systemSettingsSystemTheme', 'required']) ?>
</div>
<div class="form-group">
<?= Form::label('locale', __('admin_system_settings_system_locale'), ['for' => 'systemSettingsSystemLocale']) ?>