# Each page blueprint must have a title, the title may be different from the file name
title: Note

# Sorting number scheme that is applied when page status is changed to `listed`
# More about page sorting: https://getkirby.com/docs/reference/panel/blueprints/page#sorting
num: date

# Each page can have an icon that is shown in page listings when no preview image is available.
icon: 📖

# Custom descriptions for each page status depending on use case
# More about page status: https://getkirby.com/docs/reference/panel/blueprints/page#statuses
status:
  draft:
    label: Brouillon
    #text: The note is still in draft mode. It can only be seen by editors with panel access.
  unlisted:
    label: En revue
    #text: The note is online and can be visited with the direct URL. The team must still give the final go to publish it.
  listed:
    label: Publié
    #text: The note is online and listed in the blog

# Define the form layout with two columns
# Columns are optional but help structure the form layout
# More about columns: https://getkirby.com/docs/guide/blueprints/layout#defining-columns
columns:
  - width: 2/3
    # This columns only has a single field
    fields:
      text:
        type: textarea
        size: large

  - width: 1/3
    # This second column holds a fields section with multiple fields
    # More about fields sections: https://getkirby.com/docs/reference/panel/sections/fields
    sections:
      meta:
        type: fields
        fields:
          date:
            type: date
            time: true
            default: now
          author:
            type: users
          # Fields types can be added using the shortcut `fieldname: true`
          # (however, you can only use a fieldname once per page and this only makes sense for simple fields without configuration)
          tags: true
#          gallery:
#            type: pages
#            query: kirby.page("photography").children
#            multiple: false
#            info: "{{ page.images.count }} image(s)"
#            empty: "No gallery selected"
#            image:
#              cover: true
            # Use the `help` property of fields and section to provide editors with helpful information
#            help: Place the {{ gallery }} tag anywhere in your text to add the selected gallery

      downloads:
        headline:
          label: Fichier PDF
        type: files
        template: fichiers
        info: "{{ file.caption }}"