backend:
  name: git-gateway #github
  repo: senegalx/codevsn # Path to your Github repository
  branch: main # Branch to update (master by default)

media_folder: "public/images/uploads" # Folder where user uploaded files should go
public_folder: "/images/uploads"

logo_url: /images/logo.png

slug: { { slug } }

collections: # A list of collections the CMS should be able to edit
  - label: Actualités # Label used in the UI for the collection
    label_singular: actualite # Label for singular post
    name: actualites # Name of the collection used for various functionality in the CMS
    folder: /src/content/actualites # Where each new post with .md should be saved
    sortable_fields: ['date', 'title', 'author']
    create: true # Allows users to create new items in the collection
    fields:
      - { label: "Titre", name: "title", widget: "string" }
      - { label: "Image", name: "image", widget: "image", required: false }
      - { label: "Auteur", name: "author", widget: "string" }
      - { label: "Date", name: "date", widget: "datetime" }
      - { label: "Catégories", name: "categories", widget: "list", summary: '{{fields.categorie}}', field: {label: nom, name: categorie, widget: string} }
      - { label: "À la une", name: "featured", widget: "boolean" }
      - { label: "Brouillon", name: "draft", widget: "boolean" }
      - { label: "Contenu", name: "body", widget: "markdown" }
  - label: Pages
    name: pages
    files:
      - label: Accueil
        name: homepage
        file: /src/content/homepage/index.md
        fields:
          - {label: "Bannière", name: "banner", widget: "object", collapsed: true,
              fields: [
                {label: "Titre", name: "title", widget: "string"},
                {label: "Contenu", name: "content", widget: "text"},
                {label: "Image", name: "image", widget: "image"},
                {label: "Bouton", name: "button", widget: "object", collapsed: true,
                fields: [
                  {label: "Label", name: "label", widget: "string"},
                  {label: "Lien", name: "link", widget: "string"},
                  {label: "Activation", name: "enable", widget: "boolean"}]}
              ]
            }
          - {label: "Domaines", name: "key_features", widget: "object", collapsed: true,
              fields: [
                {label: "Titre", name: "title", widget: "string"},
                {label: "Description", name: "description", widget: "text"},
                {label: "ODD", name: "feature_list", widget: "list", summary: "{{fields.title}}", fields: [
                  {label: "Icône", name: "icon", widget: "string"},
                  {label: "Nom", name: "title", widget: "string"},
                  {label: "Pourcentage", name: "percentage", widget: "number"},
                  {label: "Activités", name: "activities", widget: "number"},
                  {label: "Couleur", name: "color", widget: "string"}]}]
            }
          - {label: "CODEVAN", name: "service", widget: "object", collapsed: true,
              fields: [
                {label: "Mission", name: "homepage_tab", widget: "object", collapsed: true,
                fields: [
                  {label: "Titre", name: "title", widget: "string"},
                  {label: "Description", name: "description", widget: "text"},
                  {label: "ODD", name: "tab_list", widget: "list", summary: "{{fields.title}}", fields: [
                    {label: "Nom", name: "title", widget: "string"},
                    {label: "Icône", name: "icon", widget: "string"},
                    {label: "Image", name: "image", widget: "image"}]}]
                },
                {label: "Vision & Valeur", name: "our_service", widget: "object", collapsed: true,
                fields: [
                  {label: "ODD", name: "tab_list", widget: "list", summary: "{{fields.title}}", fields: [
                    {label: "Titre", name: "title", widget: "string"},
                    {label: "Description", name: "description", widget: "text", required: false},
                    {label: "Image", name: "image", widget: "image", required: false},
                    {label: "Vision", name: "list", widget: "list", summary: "{{fields.title}}", field: {name: "title", widget: "string"}},
                    {label: "Vidéo", name: "video", widget: "object", collapsed: true, required: false,
                      fields: [
                        {label: "Image", name: "thumbnail", widget: "image", required: false},
                        {label: "video id", name: "video_id", widget: "string", required: false}]},
                    {label: "Bouton", name: "button", widget: "object", collapsed: true, required: false,
                      fields: [
                        {label: "Label", name: "label", widget: "string", required: false},
                        {label: "Lien", name: "link", widget: "string", required: false},
                      {label: "Activation", name: "enable", widget: "boolean", required: false}]}
                    ]}]
                }]
              }
          - {label: "Partenaires", name: "partner", widget: "object", collapsed: true,
              fields: [
                {label: "Titre", name: "title", widget: "string"},
                {label: "Contenu", name: "content", widget: "text"},
                {label: "Image", name: "image", widget: "image"},
                {label: "Bouton", name: "button", widget: "object", collapsed: true,
                fields: [
                  {label: "Label", name: "label", widget: "string"},
                  {label: "Lien", name: "link", widget: "string"},
                  {label: "Activation", name: "enable", widget: "boolean"}]}
              ]
            }
          - {label: "Témoignage", name: "testimonial", widget: "object", collapsed: true,
              fields: [
                {label: "Titre", name: "title", widget: "string"},
                {label: "Contenu", name: "description", widget: "text"},
                {label: "Témoignages", name: "testimonial_list", widget: "list", summary: "{{fields.author}}", collapsed: true,
                fields: [
                  {label: "Auteur", name: "author", widget: "string"},
                  {label: "Photo", name: "avatar", widget: "image"},
                  {label: "organisation", name: "organization", widget: "string"},
                  {label: "Contenu", name: "content", widget: "text"}]}
              ]
            }
      - label: À Propos
        name: a-propos
        file: /src/content/a-propos/index.md
        fields:
          - {label: "Titre", name: "title", widget: "string"}
          - {label: "Titre page", name: "page_title", widget: "string"}
          - {label: "Boutons", name: "buttons", widget: "list", summary: "{{fields.label}}", collapsed: true,
              fields: [
                {label: "Nom", name: "label", widget: "string"},
                {label: "Lien", name: "link", widget: "string"}]}
          - {label: "Chiffres clés", name: "counter", widget: "list", summary: "{{fields.name}}", collapsed: true,
              fields: [
                {label: "Nom", name: "name", widget: "string"},
                {label: "Chiffre", name: "number", widget: "number"},
                {label: "Unité", name: "messurment", widget: "string"},
                {label: "Couleur", name: "color", widget: "color", allowInput: true}]}
          - {label: "Galerie Photos", name: "gallery", widget: "object", collapsed: true,
              fields: [
                {label: "Titre", name: "title", widget: "string"},
                {label: "Images", name: "images", widget: "list", field: {name: image, widget: image}}]}
          - {label: "Membres Fondateurs", name: "features", widget: "object", collapsed: true,
              fields: [
                {label: "Titre", name: "title", widget: "string"},
                {label: "Description", name: "description", widget: "text"},
                {label: "Bouton", name: "button", widget: "object", collapsed: true,
                fields: [
                  {label: "Label", name: "label", widget: "string"},
                  {label: "Lien", name: "link", widget: "string"},
                  {label: "Activation", name: "enable", widget: "boolean"}]},
                {label: "Membres", name: "features_list", widget: "list", summary: "{{fields.title}}", collapsed: true,
                fields: [
                  {label: "Photo", name: "logo", widget: "image"},
                  {label: "Nom", name: "title", widget: "string"},
                  {label: "Titre", name: "content", widget: "text"}]}
              ]
            }
          - {label: "Bureau Exécutif", name: "members", widget: "object", collapsed: true,
              fields: [
                {label: "Titre", name: "title", widget: "string"},
                {label: "Description", name: "description", widget: "text"},
                {label: "Membres", name: "member_list", widget: "list", summary: "{{fields.name}}", collapsed: true,
                fields: [
                  {label: "Nom", name: "name", widget: "string"},
                  {label: "Titre", name: "field", widget: "string"},
                  {label: "Photo", name: "image", widget: "image"}]}
              ]
            }
          - {label: "Coordination Technique", name: "membersTechnique", widget: "object", collapsed: true,
              fields: [
                {label: "Titre", name: "title", widget: "string"},
                {label: "Description", name: "description", widget: "text"},
                {label: "Membres", name: "member_list", widget: "list", summary: "{{fields.name}}", collapsed: true,
                fields: [
                  {label: "Nom", name: "name", widget: "string"},
                  {label: "Titre", name: "field", widget: "string"},
                  {label: "Photo", name: "image", widget: "image"}]}
              ]
            }
          - { label: "Contenu", name: "body", widget: "markdown" }

      - label: Contact
        name: contact
        file: /src/content/contact/index.md
        fields:
          - {label: "Titre", name: "title", widget: "string"}
          - {label: "Titre page", name: "page_title", widget: "string"}
  - label: Associations # Label used in the UI for the collection
    name: associations # Name of the collection used for various functionality in the CMS
    folder: /src/content/associations # Where each new post with .md should be saved
    create: true # Allows users to create new items in the collection
    fields:
      - { label: "Nom", name: "name", widget: "string", required: false}
      - { label: "Titre", name: "title", widget: "string"}
      - { label: "Page Titre", name: "page_title", widget: "string", required: false}
      - {label: "Description", name: "excerpt", widget: "text", required: false}
      - { label: "Image", name: "image", widget: "image", required: false}
      - { label: "Catégories", name: "categories", widget: "list", summary: '{{fields.categorie}}', field: {label: nom, name: categorie, widget: string} }
      - {label: "Sociales", name: "sociales", widget: "list", summary: "{{fields.author}}", collapsed: true,
          fields: [
            {label: "Nom", name: "name", widget: "string"},
            {label: "Lien", name: "link", widget: "string"}]}
      - { label: "Brouillon", name: "draft", widget: "boolean", required: false}
      - { label: "Contenu", name: "body", widget: "markdown" }
  - label: Volontaires # Label used in the UI for the collection
    name: volontaires # Name of the collection used for various functionality in the CMS
    folder: /src/content/volontaires # Where each new post with .md should be saved
    create: true # Allows users to create new items in the collection
    fields:
      - { label: "Titre", name: "title", widget: "string"}
      - { label: "Page Titre", name: "page_title", widget: "string", required: false}
      - { label: "Image", name: "image", widget: "image", required: false}
      - { label: "Catégories", name: "categories", widget: "list", summary: '{{fields.categorie}}', field: {label: nom, name: categorie, widget: string}, required: false }
      - { label: "Brouillon", name: "draft", widget: "boolean", required: false}
      - { label: "Contenu", name: "body", widget: "markdown" }
  - label: Configuration
    name: config
    files:
      - label: Site
        name: site
        file: /src/config/config.json
        fields:
          - {label: "Site", name: "site", widget: "object", collapsed: true,
              fields: [
                {label: "Titre", name: "title", widget: "string"},
                {label: "Url de base", name: "base_url", widget: "string"},
                {label: "path", name: "base_path", widget: "string"},
                {label: "trailing", name: "trailing_slash", widget: "boolean"},
                {label: "favicon", name: "favicon", widget: "image"},
                {label: "logo", name: "logo", widget: "image"},
                {label: "logo w", name: "logo_width", widget: "string"},
                {label: "logo h", name: "logo_height", widget: "string"},
                {label: "logo alt", name: "logo_text", widget: "string"}]}
          - {label: "Site meta", name: "metadata", widget: "object", collapsed: true,
              fields: [
                {label: "Titre", name: "meta_author", widget: "string"},
                {label: "image", name: "meta_image", widget: "image"},
                {label: "Description", name: "meta_description", widget: "text"},]}
          - {label: "Appel à l'action", name: "call_to_action", widget: "object", collapsed: true,
              fields: [
                {label: "Titre", name: "title", widget: "string"},
                {label: "Description", name: "description", widget: "text"},
                {label: "Bouton", name: "button", widget: "object", collapsed: true,
                fields: [
                  {label: "Label", name: "label", widget: "string"},
                  {label: "Lien", name: "link", widget: "string"}]}]}
          - {label: "Pied de page", name: "params", widget: "object", collapsed: true,
              fields: [
                {label: "Description", name: "footer_description", widget: "string"},
                {label: "Email", name: "email", widget: "string"},
                {label: "Adresse", name: "location", widget: "string"},
                {label: "Téléphone", name: "phone", widget: "string"},
                {label: "lien qction", name: "contact_form_action", widget: "string"},
                {label: "copyright", name: "copyright", widget: "string"}]}
      - label: Menu
        name: menu
        file: /src/config/menu.json
        fields:
          - {label: "Menu Principal", name: "main", widget: "list", summary: "{{fields.name}}", collapsed: true,
              fields: [
                {label: "Nom", name: "name", widget: "string"},
                {label: "Lien", name: "url", widget: "string"},
                {label: "Sous-menu", name: "hasChildren", widget: "boolean", required: false},
                {label: "Menus", name: "children", widget: "list", summary: "{{fields.name}}", collapsed: true, required: false,
                  fields: [
                    {label: "Nom", name: "name", widget: "string"},
                    {label: "Lien", name: "url", widget: "string"},
                  ]}]}
          - {label: "Menu Pied de page", name: "footer", widget: "list", summary: "{{fields.name}}", collapsed: true,
              fields: [
                {label: "Nom", name: "name", widget: "string"},
                {label: "Lien", name: "url", widget: "string"}]}
