diff --git a/public/site/blueprints/files/image.yml b/public/site/blueprints/files/image.yml new file mode 100644 index 0000000..94b5fc1 --- /dev/null +++ b/public/site/blueprints/files/image.yml @@ -0,0 +1,15 @@ +title: Image + +accept: + mime: image/* + type: image +focus: false + +fields: + description: + type: textarea + buttons: false + size: small + width: 1/2 + # tags: + # type: tags \ No newline at end of file diff --git a/public/site/blueprints/files/pdf.yml b/public/site/blueprints/files/pdf.yml new file mode 100644 index 0000000..fd4d5a5 --- /dev/null +++ b/public/site/blueprints/files/pdf.yml @@ -0,0 +1,5 @@ +title: PDF + +accept: + mime: application/pdf +focus: false \ No newline at end of file diff --git a/public/site/blueprints/pages/client.yml b/public/site/blueprints/pages/client.yml new file mode 100644 index 0000000..447e614 --- /dev/null +++ b/public/site/blueprints/pages/client.yml @@ -0,0 +1,45 @@ +title: Client + +tabs: + projects: + label: Projets + icon: folder + columns: + - width: 1/2 + sections: + projectsListed: + extends: sections/projects + headline: Projets en cours + query: page.projectsListed + status: unlisted + columns: + title: true + client: false + - width: 1/2 + sections: + projectsUnlisted: + extends: sections/projects + headline: Projets archivés + query: page.projectsUnlisted + status: unlisted + columns: + title: true + client: false + + brand: + label: Brand + icon: palette + fields: + logo: + type: files + multiple: false + layout: cards + image: + ratio: 1/1 + back: white + width: 1/6 + color: + label: Couleur + type: color + width: 2/6 + files: tabs/files diff --git a/public/site/blueprints/pages/clients.yml b/public/site/blueprints/pages/clients.yml new file mode 100644 index 0000000..6ffde4d --- /dev/null +++ b/public/site/blueprints/pages/clients.yml @@ -0,0 +1,21 @@ +title: Clients + +sections: + pages: + label: Tous les clients + status: all + templates: client + layout: table + columns: + title: + label: Nom + projectsListed: + label: En cours + value: "{{ page.projectsListed.count }}" + width: 1/12 + projectsUnlisted: + label: Archivés + value: "{{ page.projectsUnlisted.count }}" + width: 1/12 + image: + cover: true diff --git a/public/site/blueprints/pages/project.yml b/public/site/blueprints/pages/project.yml new file mode 100644 index 0000000..ead9b17 --- /dev/null +++ b/public/site/blueprints/pages/project.yml @@ -0,0 +1,67 @@ +title: Projet +icon: page + +tabs: + brief: + label: Brief client + icon: document + columns: + - width: 1/2 + sections: + brief: + type: fields + fields: + client: + type: pages + multiple: false + query: site.find("clients").childrenAndDrafts + subpages: false + image: + query: page.logo.toFile + layout: cardlets + width: 1/2 + briefClientPdf: + label: PDF + type: files + multiple: false + uploads: pdf + layout: cardlets + width: 1/2 + - width: 1/2 + sections: + description: + type: fields + fields: + description: + type: textarea + size: tiny + buttons: false + maxlength: 700 + - width: 1/1 + sections: + images: + type: fields + fields: + briefClientImages: + label: Images + type: files + uploads: image + layout: cards + size: medium + # client: + # label: Client + # icon: account + # columns: + # - width: 1/1 + # sections: + # client: + # type: fields + # fields: + # client: + # type: pages + # multiple: false + # query: site.find("clients").childrenAndDrafts + # subpages: false + # layout: cards + # size: medium + files: tabs/files diff --git a/public/site/blueprints/pages/projects.yml b/public/site/blueprints/pages/projects.yml new file mode 100644 index 0000000..61c4dee --- /dev/null +++ b/public/site/blueprints/pages/projects.yml @@ -0,0 +1,15 @@ +title: Projets + +sections: + drafts: + extends: sections/projects + headline: Brouillons + status: draft + listed: + extends: sections/projects + headline: En cours + status: listed + unlisted: + extends: sections/projects + headline: Archivés + status: unlisted diff --git a/public/site/blueprints/sections/projects.yml b/public/site/blueprints/sections/projects.yml new file mode 100644 index 0000000..988e9ff --- /dev/null +++ b/public/site/blueprints/sections/projects.yml @@ -0,0 +1,11 @@ +type: pages +headline: Projets +template: project +layout: table +columns: + title: + label: Titre + client: true +empty: Pas encore de projet +image: false +search: true \ No newline at end of file diff --git a/public/site/blueprints/tabs/files.yml b/public/site/blueprints/tabs/files.yml new file mode 100644 index 0000000..22202de --- /dev/null +++ b/public/site/blueprints/tabs/files.yml @@ -0,0 +1,15 @@ +label: + en: Files + fr: Fichiers +icon: images + +columns: + - width: 1/1 + sections: + files: + label: + en: Files + fr: Fichiers + type: files + layout: cards + size: small diff --git a/public/site/blueprints/users/admin.yml b/public/site/blueprints/users/admin.yml new file mode 100644 index 0000000..4843c22 --- /dev/null +++ b/public/site/blueprints/users/admin.yml @@ -0,0 +1 @@ +title: Admin \ No newline at end of file diff --git a/public/site/blueprints/users/client.yml b/public/site/blueprints/users/client.yml new file mode 100644 index 0000000..3e9a838 --- /dev/null +++ b/public/site/blueprints/users/client.yml @@ -0,0 +1,4 @@ +title: Client +permissions: + access: + panel: false diff --git a/public/site/blueprints/users/project-manager.yml b/public/site/blueprints/users/project-manager.yml new file mode 100644 index 0000000..de6f987 --- /dev/null +++ b/public/site/blueprints/users/project-manager.yml @@ -0,0 +1,3 @@ +title: + fr: Chef·fe de projet + en: Project Manager \ No newline at end of file