Skip to content

Commit

Permalink
Merge pull request #11 from jonasholfeld/version-2.0
Browse files Browse the repository at this point in the history
Version 2.0
  • Loading branch information
jonasholfeld authored Jan 19, 2024
2 parents e1a34ec + 490e39b commit 77aa741
Show file tree
Hide file tree
Showing 18 changed files with 188 additions and 633 deletions.
304 changes: 84 additions & 220 deletions README.md

Large diffs are not rendered by default.

24 changes: 0 additions & 24 deletions exampleBlueprints/artistsExample/artist.yml

This file was deleted.

8 changes: 0 additions & 8 deletions exampleBlueprints/artistsExample/artists.yml

This file was deleted.

24 changes: 0 additions & 24 deletions exampleBlueprints/artistsExample/work.yml

This file was deleted.

8 changes: 0 additions & 8 deletions exampleBlueprints/artistsExample/works.yml

This file was deleted.

25 changes: 25 additions & 0 deletions exampleBlueprints/employee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
title: Employee

fields:
age:
type: number
label: Age
projects:
type: manytomany
label: Projects
translate: false
fields:
foreignkey:
label: Project
type: select
options: query
query:
fetch: site.find('projects').childrenAndDrafts
text: "{{ page.title }}"
value: "{{ page.uuid }}"
hours:
type: number
label: Number of hours
validate:
unique: projects
relatationField: employees
8 changes: 8 additions & 0 deletions exampleBlueprints/employees.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: Employees

sections:

children:
headline: Employees
type: pages
templates: employee
25 changes: 25 additions & 0 deletions exampleBlueprints/project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
title: Project

fields:
description:
type: text
label: Description
employees:
type: manytomany
label: Employees
translate: false
fields:
foreignkey:
label: Employee
type: select
options: query
query:
fetch: site.find('employees').childrenAndDrafts
text: "{{ page.title }}"
value: "{{ page.uuid }}"
hours:
type: number
label: Number of hours
validate:
unique: employees
relatationField: projects
8 changes: 8 additions & 0 deletions exampleBlueprints/projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: Projects

sections:

children:
headline: Projects
type: pages
templates: project
31 changes: 0 additions & 31 deletions exampleBlueprints/projectsExample/employee.yml

This file was deleted.

31 changes: 0 additions & 31 deletions exampleBlueprints/projectsExample/project.yml

This file was deleted.

63 changes: 0 additions & 63 deletions exampleBlueprints/schoolsExample/school.yml

This file was deleted.

8 changes: 0 additions & 8 deletions exampleBlueprints/schoolsExample/schools.yml

This file was deleted.

33 changes: 0 additions & 33 deletions exampleBlueprints/schoolsExample/student.yml

This file was deleted.

8 changes: 0 additions & 8 deletions exampleBlueprints/schoolsExample/students.yml

This file was deleted.

41 changes: 0 additions & 41 deletions exampleBlueprints/schoolsExample/teacher.yml

This file was deleted.

8 changes: 0 additions & 8 deletions exampleBlueprints/schoolsExample/teachers.yml

This file was deleted.

Loading

0 comments on commit 77aa741

Please sign in to comment.