Skip to content

Commit

Permalink
System Admin: added an importer for Behaviour Records
Browse files Browse the repository at this point in the history
  • Loading branch information
SKuipers committed Feb 5, 2024
1 parent 74373a7 commit a7edda9
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Expand Up @@ -43,6 +43,7 @@ v27.0.00
Timetable: added timetable iCal Export buttons to staff and student profiles
User Admin: added an option to disable the display of privacy options, so they can be managed internally
User Admin: increased the field length for Departure Reason to 100 characters
System Admin: added an importer for Behaviour Records

Bug Fixes
System: fixed PHP 8+ compatibility in CustomFieldIDs migration file
Expand Down
57 changes: 57 additions & 0 deletions resources/imports/behaviour.yml
@@ -0,0 +1,57 @@
details:
type: behaviour
category: Behaviour
name: Behaviour Record
table: gibbonBehaviour
modes: { update: false, insert: true }
access:
module: Behaviour
action: Manage Behaviour Records
primaryKey:
gibbonBehaviourID
uniqueKeys:
[]
table:
gibbonSchoolYearID:
name: "School Year"
desc: "School year name, as set in School Admin. Must already exist."
args: { filter: schoolyear, required: true }
relationship: { table: gibbonSchoolYear, key: gibbonSchoolYearID, field: name }
gibbonPersonID:
name: "Student"
desc: "Username, student ID, or Email (if unique)"
args: { filter: nospaces, required: true }
relationship: { table: gibbonPerson, key: gibbonPersonID, field: username|email|studentID }
date:
name: "Date"
desc: "Must be unique."
args: { filter: date, required: true }
type:
name: "Type"
desc: "Positive or Negative"
args: { filter: string, required: true }
descriptor:
name: "Descriptor"
desc: "Optional, as defined in School Admin > Behaviour Settings"
args: { filter: string, required: false }
level:
name: "Level"
desc: "Optional, as defined in School Admin > Behaviour Settings"
args: { filter: string, required: false }
comment:
name: "Comment"
desc: ""
args: { filter: html, required: false }
followup:
name: "Followup"
desc: ""
args: { filter: html, required: false }
gibbonPersonIDCreator:
name: "Created By"
desc: "Username or Email (if unique)"
args: { filter: string, custom: true }
relationship: { table: gibbonPerson, key: gibbonPersonID, field: username|email }
timestamp:
name: "Timestamp"
desc: ""
args: { filter: timestamp, function: timestamp }

0 comments on commit a7edda9

Please sign in to comment.