From 29ee0fdc549103b7a68fca62b12c5db1a4b22e6c Mon Sep 17 00:00:00 2001 From: Benjamin Guedj Date: Mon, 29 Jan 2024 16:44:40 +0100 Subject: [PATCH] feat: ajoute un flag zeroAccident sur les articles --- .../api/article/models/article.settings.js | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/back/strapi/api/article/models/article.settings.js b/back/strapi/api/article/models/article.settings.js index e7b3945e8..4eb19ab1c 100644 --- a/back/strapi/api/article/models/article.settings.js +++ b/back/strapi/api/article/models/article.settings.js @@ -5,6 +5,11 @@ const enBrefIconeType = { module.exports = { attributes: { + cartographie_pois_types: { + collection: "cartographie-types", + dominant: true, + via: "articles", + }, enbref_1_icone: enBrefIconeType, enbref_1_texte: { default: "", @@ -25,6 +30,14 @@ module.exports = { dominant: true, via: "articles", }, + evenements: { + collection: "evenement", + via: "articles", + }, + handicap: { + default: false, + type: "boolean", + }, le_saviez_vous: { default: "", type: "text", @@ -61,34 +74,21 @@ module.exports = { default: "", type: "string", }, + mots_cles: { + default: "", + type: "text", + }, notifications: { default: false, type: "boolean", }, - evenements: { - collection: "evenement", - via: "articles", - }, ordre: { type: "integer", }, - cartographie_pois_types: { - collection: "cartographie-types", - dominant: true, - via: "articles", - }, - handicap: { - default: false, - type: "boolean", - }, resume: { required: true, type: "text", }, - mots_cles: { - default: "", - type: "text", - }, texte_1: { default: "", type: "richtext", @@ -121,6 +121,10 @@ module.exports = { required: true, via: "related", }, + zero_accident: { + default: false, + type: "boolean", + }, }, collectionName: "articles", info: {