Skip to content

Commit

Permalink
feat: ajoute un flag zeroAccident sur les articles
Browse files Browse the repository at this point in the history
  • Loading branch information
benguedj committed Jan 29, 2024
1 parent c31e085 commit 29ee0fd
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions back/strapi/api/article/models/article.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: "",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -121,6 +121,10 @@ module.exports = {
required: true,
via: "related",
},
zero_accident: {
default: false,
type: "boolean",
},
},
collectionName: "articles",
info: {
Expand Down

0 comments on commit 29ee0fd

Please sign in to comment.