2021-11-08 16:52:20 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Settings.theme.title') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Settings.theme.title') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2022-01-02 14:11:05 +00:00
|
|
|
<form action="<?= route_to('settings-theme') ?>" method="POST" class="flex flex-col max-w-xl gap-y-4" enctype="multipart/form-data">
|
2021-11-08 16:52:20 +00:00
|
|
|
<?= csrf_field() ?>
|
|
|
|
<Forms.Section
|
|
|
|
title="<?= lang('Settings.theme.accent_section_title') ?>"
|
|
|
|
subtitle="<?= lang('Settings.theme.accent_section_subtitle') ?>">
|
|
|
|
|
|
|
|
<div class="grid gap-4 grid-cols-colorButtons">
|
2021-12-07 13:46:08 +00:00
|
|
|
<?php foreach (config('Colors')->themes as $themeName => $color): ?>
|
2021-11-08 16:52:20 +00:00
|
|
|
<Forms.ColorRadioButton
|
2021-12-07 13:46:08 +00:00
|
|
|
class="theme-<?= $themeName ?> mx-auto"
|
|
|
|
value="<?= $themeName ?>"
|
2021-11-08 16:52:20 +00:00
|
|
|
name="theme"
|
2021-12-07 13:46:08 +00:00
|
|
|
isChecked="<?= $themeName === service('settings')
|
|
|
|
->get('App.theme') ? 'true' : 'false' ?>" ><?= lang('Settings.theme.' . $themeName) ?></Forms.ColorRadioButton>
|
2021-11-08 16:52:20 +00:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<Button variant="primary" type="submit" class="self-end"><?= lang('Settings.theme.submit') ?></Button>
|
|
|
|
|
|
|
|
</Forms.Section>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
<?= $this->endSection() ?>
|