diff --git a/Examples/Projects/Project/Entity.yaml b/Examples/Projects/Project/Entity.yaml index 3fb5347..3e47821 100644 --- a/Examples/Projects/Project/Entity.yaml +++ b/Examples/Projects/Project/Entity.yaml @@ -9,7 +9,7 @@ headerFields: - currentStep: true steps: - - Start + - Subject - Upload - Assessment - Publication \ No newline at end of file diff --git a/Examples/Projects/Project/Forms/RejectSubject.yaml b/Examples/Projects/Project/Forms/RejectSubject.yaml new file mode 100644 index 0000000..e7b97d6 --- /dev/null +++ b/Examples/Projects/Project/Forms/RejectSubject.yaml @@ -0,0 +1,15 @@ +name: RejectSubject +title: + en: Reject subject + nl: Onderwerp afkeuren +pages: + Reject: + title: + en: Reject subject + nl: Onderwerp afkeuren + introduction: + nl: Je wilt het onderwerp van {{ Student.DisplayName }} afkeuren + en: You want to reject the subject of {{ Student.DisplayName }} + questions: + - SubjectRejectTarget + - SubjectRejectReason \ No newline at end of file diff --git a/Examples/Projects/Project/Forms/Start.yaml b/Examples/Projects/Project/Forms/Start.yaml index 5320eab..93c83da 100644 --- a/Examples/Projects/Project/Forms/Start.yaml +++ b/Examples/Projects/Project/Forms/Start.yaml @@ -1,10 +1,25 @@ name: Start pages: - Start: + Contents: + title: + en: Contents + nl: Inhoud questions: - Title - - EC + - Subject + - Description + Staff: + title: + en: Staff + nl: Medewerkers + questions: - Examiner - Reviewer - - Supervisor \ No newline at end of file + - Supervisor + Planning: + questions: + - StartDate + - Deadline + - EndDate + - EC \ No newline at end of file diff --git a/Examples/Projects/Project/Properties.yaml b/Examples/Projects/Project/Properties.yaml index 8aec1ad..ebf51d2 100644 --- a/Examples/Projects/Project/Properties.yaml +++ b/Examples/Projects/Project/Properties.yaml @@ -1,17 +1,40 @@ properties: Title: type: String! + text: + en: Working title + nl: Werktitel EC: type: Int! + + StartDate: + type: Date! + text: + en: Start date + nl: Startdatum + EndDate: + type: Date! + text: + en: End date + nl: Einddatum + Examiner: type: User! + text: + en: Examiner + nl: Examinator Supervisor: type: User! - text: Expected number of participants - description: Enter 0 if not applicable + text: + en: Supervisor + nl: Begeleider Reviewer: type: User! + text: + en: Reviewer + nl: Beoordelaar Student: type: "[User]!" + Report: type: File! \ No newline at end of file diff --git a/Examples/Projects/Project/Steps/Start.yaml b/Examples/Projects/Project/Steps/Start.yaml index 947e749..5b79a72 100644 --- a/Examples/Projects/Project/Steps/Start.yaml +++ b/Examples/Projects/Project/Steps/Start.yaml @@ -1,9 +1,35 @@ name: Start +title: + nl: Indienen voorstel + en: Subject proposal actions: - roles: [Student] type: Submit form: Start +properties: + Subject: + type: String! + text: + en: Subject + nl: Onderwerp + layout: + multiline: true + Description: + type: File! + text: + en: Project description + nl: Projectomschrijving + + Deadline: + type: Date! + text: + en: Important deadline + nl: Belangrijke deadline + + ends: - event: Start \ No newline at end of file + event: + id: Start + notBefore: RejectSubject \ No newline at end of file diff --git a/Examples/Projects/Project/Steps/Subject.yaml b/Examples/Projects/Project/Steps/Subject.yaml new file mode 100644 index 0000000..f6b8a2c --- /dev/null +++ b/Examples/Projects/Project/Steps/Subject.yaml @@ -0,0 +1,11 @@ +name: Subject +title: + nl: Onderwerp + en: Subject + +children: + - Start + - SubjectFeedback + +ends: + event: ApproveSubject diff --git a/Examples/Projects/Project/Steps/SubjectFeedback.yaml b/Examples/Projects/Project/Steps/SubjectFeedback.yaml new file mode 100644 index 0000000..12ee934 --- /dev/null +++ b/Examples/Projects/Project/Steps/SubjectFeedback.yaml @@ -0,0 +1,49 @@ +name: SubjectFeedback +title: + nl: Beoordelen voorstel + en: Assessment of proposal + +actions: +- name: Approve + type: Execute + roles: [Coordinator] + label: + en: Approve + nl: Goedkeuren + triggers: + - event: ApproveSubject +- name: Reject + type: Submit + form: RejectSubject + roles: [Coordinator] + label: + en: Reject + nl: Afkeuren + +properties: + SubjectRejectTarget: + type: "[RejectOption]!" + text: + nl: Wat keur je af? + en: Which part are you rejecting? + values: + Contents: + text: + en: Contents + nl: Inhoud + Staff: + text: + en: Staff + nl: Medewerkers + Planning: + text: Planning + SubjectRejectReason: + type: String! + text: + nl: Licht toe, wees daarbij zo specifiek mogelijk + en: Please explain, be as specific as possible + layout: + multiline: true + +ends: + event: RejectSubject \ No newline at end of file