diff --git a/public/site/blueprints/fields/notifications.yml b/public/site/blueprints/fields/notifications.yml new file mode 100644 index 0000000..5d38804 --- /dev/null +++ b/public/site/blueprints/fields/notifications.yml @@ -0,0 +1,45 @@ +label: Notifications +type: structure +fields: + type: + type: text + disabled: true + location: + type: object + fields: + page: + type: object + fields: + label: Page d'origine + disabled: true + title: + type: text + uri: + disabled: true + type: text + project: + label: Projet correspondant + type: object + fields: + title: + disabled: true + type: text + uri: + disabled: true + type: text + author: + label: Auteur + type: object + fields: + name: + label: Nom + disabled: true + type: text + email: + type: email + disabled: true + date: + type: hidden + isread: + type: toggle + disabled: true diff --git a/public/site/blueprints/users/admin.yml b/public/site/blueprints/users/admin.yml index 09bcce7..3fdce7c 100644 --- a/public/site/blueprints/users/admin.yml +++ b/public/site/blueprints/users/admin.yml @@ -3,49 +3,4 @@ description: Possède tous les droits et les accès, peut accéder à l’ensemb home: /panel/pages/projects fields: - notifications: - label: Notifications - type: structure - fields: - type: - type: text - disabled: true - location: - type: object - fields: - page: - type: object - fields: - label: Page d'origine - disabled: true - title: - type: text - uri: - disabled: true - type: text - project: - label: Projet correspondant - type: object - fields: - title: - disabled: true - type: text - uri: - disabled: true - type: text - author: - label: Auteur - type: object - fields: - name: - label: Nom - disabled: true - type: text - email: - type: email - disabled: true - date: - type: hidden - isread: - type: toggle - disabled: true + notifications: fields/notifications diff --git a/public/site/blueprints/users/client.yml b/public/site/blueprints/users/client.yml index 35d8d51..166f7fd 100644 --- a/public/site/blueprints/users/client.yml +++ b/public/site/blueprints/users/client.yml @@ -13,5 +13,4 @@ fields: label: Projets type: pages query: page('projects').children - notifications: - type: hidden + notifications: fields/notifications diff --git a/public/site/blueprints/users/pochet.yml b/public/site/blueprints/users/pochet.yml index e49ca0b..3464dea 100644 --- a/public/site/blueprints/users/pochet.yml +++ b/public/site/blueprints/users/pochet.yml @@ -19,5 +19,4 @@ fields: type: pages query: page('projects').children width: 3/4 - notifications: - type: hidden + notifications: fields/notifications