Skip to content

Commit

Permalink
Merge pull request #67 from nf-osi/cconrad8-patch-1
Browse files Browse the repository at this point in the history
Add files via upload
  • Loading branch information
anngvu authored Sep 3, 2024
2 parents fe2e718 + 0c8e878 commit 366af18
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 0 deletions.
87 changes: 87 additions & 0 deletions NF-Tools-Schemas/SubmitObservationSchema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"title": "Submission Form for NF Tools",
"type": "object",
"properties": {
"name": {
"type": "object",
"required": ["first_name", "last_name", "email"],
"properties": {
"first_name": {
"type": "string",
"title": "First Name"
},
"last_name": {
"type": "string",
"title": "Last Name"
},
"email": {
"type": "string",
"title": "Contact Email",
"format": "email"
},
"institution": {
"type": "string",
"title": "Institution",
"default": ""
}
}
},
"submitObservation": {
"type": "object",
"properties": {
"observations": {
"type": "array",
"title": "Add Observations",
"items": {
"type": "object",
"required": ["resourceName", "observationType", "details"],
"properties": {
"resourceName": {
"type": "string",
"title": "Name of Resource"
},
"observationType": {
"type": "string",
"title": "Observation Type",
"enum": [
"Body Length",
"Body Weight",
"Coat Color",
"Depositor Comment",
"Disease Susceptibility",
"Feed Intake",
"Feeding Behavior",
"General Comment or Review",
"Growth Rate",
"Issue",
"Lifespan",
"Motor Activity",
"Organ Development",
"Other",
"Reflex Development",
"Reproductive Behavior",
"Social Behavior",
"Swimming Behavior",
"Tumor Growth",
"Usage Instructions"
]
},
"details": {
"type": "string",
"title": "Observation Details"
},
"referencePublication": {
"type": "string",
"title": "Publication Reference"
},
"fileUpload": {
"type": "string",
"title": "Associated File"
}
}
}
}
}
}
}
}
29 changes: 29 additions & 0 deletions NF-Tools-Schemas/SubmitObservationUiSchema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"observations": {
"items": {
"resourceName": {
"ui:placeholder": "Enter the name of the resource"
},
"observationType": {
"ui:widget": "select",
"ui:placeholder": "Select an observation type"
},
"details": {
"ui:widget": "textarea",
"ui:placeholder": "Enter details of the observation",
"ui:options": {
"rows": 5
}
},
"referencePublication": {
"ui:placeholder": "Enter publication DOI"
},
"fileUpload": {
"ui:widget": "file"
}
},
"ui:options": {
"addButtonText": "Add Observation"
}
}
}

0 comments on commit 366af18

Please sign in to comment.