From 65795036eece8e0328f78b005e3931fe917c2e9d Mon Sep 17 00:00:00 2001 From: maxime-cool Date: Wed, 7 Feb 2024 15:47:54 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20des=20r=C3=A9seaux=20sociaux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/admin/config.yml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index ea7e19e..c69c848 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -47,9 +47,10 @@ collections: name: params widget: object fields: - - label: Couleur du thème + - label: Couleur du fond name: background_color_class - widget: 'select' + widget: select + hint: Pour choisir la couleur du fond options: - label: 'Rouge' value: 'bg-red' @@ -60,4 +61,25 @@ collections: - label: 'Violet' value: 'bg-purple' - label: 'Grapefruit slice atop a pile of other slices' - value: 'bg-orange' \ No newline at end of file + value: 'bg-orange' + - label: 'Réseaux sociaux' + name: ananke_socials + widget: list + collapsed: true + summary: '{{fields.name}}' + add_to_top: false + label_singular: 'Ajouter un réseau' + fields: + - label: 'Réseau social' + name: name + widget: select + options: + - label: 'Facebook' + value: 'facebook' + - label: 'LinkedIn' + value: 'linkedin' + - name: 'Lien du compte' + label: url + widget: string + +