diff options
| author | winter | 2025-01-20 20:10:54 +0000 |
|---|---|---|
| committer | winter | 2025-01-20 20:10:54 +0000 |
| commit | 1b60d5ca77a387122bcf900c2972edca63403155 (patch) | |
| tree | 0c7357d42dcee447c55ce205c055e4482e766d25 /templates/settings_field.php | |
| parent | 6830e97c22f7e72c08567d2497c0319ab73e6922 (diff) | |
settings tweaks and "about instance" page
Diffstat (limited to 'templates/settings_field.php')
| -rw-r--r-- | templates/settings_field.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/settings_field.php b/templates/settings_field.php index c0f0f7d..1ebbfb3 100644 --- a/templates/settings_field.php +++ b/templates/settings_field.php @@ -1,7 +1,8 @@ <?php $id = "setting-$key"; -$inputType = 'text'; -if (($type ?? null) == 'boolean') { +$settingType = $type ?? 'text'; +$inputType = $settingType; +if ($settingType == 'boolean') { $inputType = 'select'; $options = ['true', 'false']; } @@ -23,6 +24,10 @@ $fieldName = str_replace('.', '<DOT>', $key); <?php endforeach; ?> </select> + <?php elseif ($inputType == 'longtext'): ?> + + <textarea id="<?= $id ?>" name="<?= $fieldName ?>" autocomplete="off"><?= $value ?></textarea> + <?php else: ?> <input id="<?= $id ?>" name="<?= $fieldName ?>" value="<?= $value ?>" type="<?= $inputType ?>" autocomplete="off"> |
