aboutsummaryrefslogtreecommitdiff
path: root/static/admin
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-03-02 11:36:53 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-03-02 11:36:53 +0100
commit8ddc3807a559759343c2de10063e2f8faf0f9250 (patch)
treec049d6a78ecef565cba7f4c344329a3f5d231f2c /static/admin
parent1aac795ba75e5be3d43f799a333e0cb41983a0ba (diff)
downloadguide.deuxfleurs.fr-8ddc3807a559759343c2de10063e2f8faf0f9250.tar.gz
guide.deuxfleurs.fr-8ddc3807a559759343c2de10063e2f8faf0f9250.zip
fix infra + wip config
Diffstat (limited to 'static/admin')
-rw-r--r--static/admin/config.yml179
1 files changed, 164 insertions, 15 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml
index aed2864..3d3b69d 100644
--- a/static/admin/config.yml
+++ b/static/admin/config.yml
@@ -6,18 +6,18 @@ backend:
branch: cms
media_folder: 'static/img/'
-site_url: http://guide.web.vimaire.machine.dufour.io
-display_url: http://guide.web.vimaire.machine.dufour.io
+site_url: https://guide.deuxfleurs.fr
+display_url: guide.deuxfleurs.fr
locale: 'fr'
collections:
- - name: 'accueil'
+ - name: 'special'
label: 'Accueil'
editor:
preview: false
files:
- - name: accueil2
- label: Accueil2
+ - name: accueil
+ label: Accueil
file: 'content/_index.md'
fields:
- label: Title
@@ -33,17 +33,40 @@ collections:
- name: 'prise_en_main'
label: 'Prise en main'
+ description: "Les tutoriels pour se lancer"
folder: 'content/prise_en_main'
editor:
preview: false
create: true
+ view_filters:
+ - label: 'Brouillons'
+ field: draft
+ pattern: true
+ view_groups:
+ - label: 'Section'
+ field: 'extra.parent'
+ pattern: '.*'
fields:
- - label: Titre
+ - label: Titre menu
name: title
widget: string
+ - label: Titre page (description)
+ name: description
+ widget: string
- label: Poids
name: weight
+ default: 50
widget: number
+ - label: Brouillon (ne pas publier encore)
+ name: draft
+ widget: boolean
+ default: false
+ - label: Date
+ name: date
+ widget: datetime
+ date_format: 'dd/MM/yyyy' # e.g. 24/12/2022
+ time_format: false
+ format: 'yyyy-MM-dd' # e.g. 2022-12-24
- label: Extra
name: extra
widget: object
@@ -54,29 +77,155 @@ collections:
collection: 'prise_en_main'
value_field: 'prise_en_main/{{filename}}.{{extension}}'
search_fields: [ 'title', 'filename', 'slug' ]
+ default: 'prise_en_main/_index.md'
display_fields: ['{{title}} ({{filename}})', 'filename']
- label: Corps
name: body
- widget: text
+ widget: markdown
- name: 'formations'
label: 'Se former'
+ description: 'Des ressources pour apprendre en profondeur'
folder: 'content/formations'
editor:
preview: false
create: true
- #summary: '{{title}} ({{dirname}})'
- #nested:
- # depth: 3
- # summary: '{{title}}'
+ view_filters:
+ - label: 'Brouillons'
+ field: draft
+ pattern: true
+ view_groups:
+ - label: 'Section'
+ field: 'extra.parent'
+ pattern: '.*'
fields:
- - label: Title
+ - label: Titre
name: title
widget: string
- - label: Weight
+ - label: Poids
+ default: 50
name: weight
widget: number
- - label: Body
+ - label: Brouillon (ne pas publier encore)
+ name: draft
+ widget: boolean
+ default: false
+ - label: Date
+ name: date
+ widget: datetime
+ date_format: 'dd/MM/yyyy' # e.g. 24/12/2022
+ time_format: false
+ format: 'yyyy-MM-dd' # e.g. 2022-12-24
+ - label: Extra
+ name: extra
+ widget: object
+ fields:
+ - name: parent
+ label: Parent
+ widget: relation
+ collection: 'formations'
+ value_field: 'formations/{{filename}}.{{extension}}'
+ search_fields: [ 'title', 'filename', 'slug' ]
+ default: 'formations/_index.md'
+ display_fields: ['{{title}} ({{filename}})', 'filename']
+ - label: Corps
+ name: body
+ widget: markdown
+
+ - name: 'vie_associative'
+ label: 'Vie associative'
+ description: "Tout ce qui a rapport à l'organisation et l'administration de l'asso"
+ folder: 'content/vie_associative'
+ editor:
+ preview: false
+ create: true
+ view_filters:
+ - label: 'Brouillons'
+ field: draft
+ pattern: true
+ view_groups:
+ - label: 'Section'
+ field: 'extra.parent'
+ pattern: '.*'
+ fields:
+ - label: Titre
+ name: title
+ widget: string
+ - label: Poids
+ default: 50
+ name: weight
+ widget: number
+ - label: Brouillon (ne pas publier encore)
+ name: draft
+ widget: boolean
+ default: false
+ - label: Date
+ name: date
+ widget: datetime
+ date_format: 'dd/MM/yyyy' # e.g. 24/12/2022
+ time_format: false
+ format: 'yyyy-MM-dd' # e.g. 2022-12-24
+ - label: Extra
+ name: extra
+ widget: object
+ fields:
+ - name: parent
+ label: Parent
+ widget: relation
+ collection: 'vie_associative'
+ value_field: 'vie_associative/{{filename}}.{{extension}}'
+ search_fields: [ 'title', 'filename', 'slug' ]
+ default: 'vie_associative/_index.md'
+ display_fields: ['{{title}} ({{filename}})', 'filename']
+ - label: Corps
+ name: body
+ widget: markdown
+
+ - name: 'infrastructures'
+ label: 'Infrastructures'
+ description: "Des informations d'intéret générale sur la technique"
+ folder: 'content/infrastructures'
+ editor:
+ preview: false
+ create: true
+ view_filters:
+ - label: 'Brouillons'
+ field: draft
+ pattern: true
+ view_groups:
+ - label: 'Section'
+ field: 'extra.parent'
+ pattern: '.*'
+ fields:
+ - label: Titre
+ name: title
+ widget: string
+ - label: Poids
+ default: 50
+ name: weight
+ widget: number
+ - label: Brouillon (ne pas publier encore)
+ name: draft
+ widget: boolean
+ default: false
+ - label: Date
+ name: date
+ widget: datetime
+ date_format: 'dd/MM/yyyy' # e.g. 24/12/2022
+ time_format: false
+ format: 'yyyy-MM-dd' # e.g. 2022-12-24
+ - label: Extra
+ name: extra
+ widget: object
+ fields:
+ - name: parent
+ label: Parent
+ widget: relation
+ collection: 'infrastructures'
+ value_field: 'infrastructures/{{filename}}.{{extension}}'
+ search_fields: [ 'title', 'filename', 'slug' ]
+ default: 'infrastructures/_index.md'
+ display_fields: ['{{title}} ({{filename}})', 'filename']
+ - label: Corps
name: body
widget: markdown
- #meta: { path: { widget: string, label: 'Path', index_file: '_index' } }