From dfba9b574275e533a198403e109b9c68f3786519 Mon Sep 17 00:00:00 2001 From: maxime-cool Date: Tue, 30 Jan 2024 10:44:59 +0100 Subject: [PATCH] added label & value in bg select --- hugo_config/_default/theme_settings.toml | 2 -- static/admin/config.yml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hugo_config/_default/theme_settings.toml b/hugo_config/_default/theme_settings.toml index c2aaf76..3a6cd7e 100644 --- a/hugo_config/_default/theme_settings.toml +++ b/hugo_config/_default/theme_settings.toml @@ -1,4 +1,2 @@ -background_color_class = "bg-red" - [params] background_color_class = "bg-blue" diff --git a/static/admin/config.yml b/static/admin/config.yml index 69e13d0..198b2ff 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -47,4 +47,4 @@ collections: name: params widget: object fields: - - { label: Couleur du thème, name: background_color_class, widget: 'select', options: ["bg-red", "bg-blue", "bg-green", "bg-purple"] } \ No newline at end of file + - { label: Couleur du thème, name: background_color_class, widget: 'select', options: [{ label: 'Rouge', value: 'bg-red'},{ label: 'Bleu', value: 'bg-blue'},{ label: 'Vert', value: 'bg-green'},{ label: 'Violet', value: 'bg-purple'}] } \ No newline at end of file