-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from adhocteam/main
Add activity report fields
- Loading branch information
Showing
11 changed files
with
138 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
36 changes: 27 additions & 9 deletions
36
frontend/src/pages/ActivityReport/Pages/goalsObjectives.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,45 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Helmet } from 'react-helmet'; | ||
|
||
const GoalsObjectives = () => ( | ||
import { | ||
Fieldset, Label, Textarea, | ||
} from '@trussworks/react-uswds'; | ||
|
||
const GoalsObjectives = ({ register }) => ( | ||
<> | ||
<Helmet> | ||
<title>Goals and objectives</title> | ||
</Helmet> | ||
<div> | ||
Goals and objectives | ||
</div> | ||
<Fieldset className="smart-hub--report-legend smart-hub--form-section" legend="Context"> | ||
<Label htmlFor="context">OPTIONAL: Provide background or context for this activity</Label> | ||
<Textarea id="context" name="context" inputRef={register()} /> | ||
</Fieldset> | ||
</> | ||
); | ||
|
||
GoalsObjectives.propTypes = {}; | ||
const sections = []; | ||
GoalsObjectives.propTypes = { | ||
register: PropTypes.func.isRequired, | ||
}; | ||
|
||
const sections = [ | ||
{ | ||
title: 'Context', | ||
anchor: 'context', | ||
items: [ | ||
{ label: 'Context', name: 'context' }, | ||
], | ||
}, | ||
]; | ||
|
||
export default { | ||
position: 3, | ||
label: 'Goals and objectives', | ||
path: 'goals-objectives', | ||
review: false, | ||
sections, | ||
render: () => ( | ||
<GoalsObjectives /> | ||
), | ||
render: (hookForm) => { | ||
const { register } = hookForm; | ||
return <GoalsObjectives register={register} />; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
export const reasons = [ | ||
'Below Competitive Threshold (CLASS)', | ||
'Below Quality Threshold (CLASS)', | ||
'Change in Scope', | ||
'Full Enrollment', | ||
'New Grantee', | ||
'New Director or Management', | ||
'New Program Option', | ||
'New Staff / Turnover', | ||
'Ongoing Quality Improvement', | ||
'Planning/Coordination (also TTA Plan Agreement)', | ||
'School Readiness Goals', | ||
'Monitoring | Area of Concern', | ||
'Monitoring | Noncompliance', | ||
'Monitoring | Deficiency', | ||
]; | ||
|
||
export const granteeParticipants = [ | ||
'CEO / CFO / Executive', | ||
'Center Director / Site Director', | ||
'Coach', | ||
'Direct Service: Other', | ||
'Family Service Worker / Case Manager', | ||
'Fiscal Manager/Team', | ||
'Governing Body / Tribal Council / Policy Council', | ||
'Home Visitor', | ||
'Manager / Coordinator / Specialist', | ||
'Parent / Guardian', | ||
'Program Director (HS / EHS)', | ||
'Program Support / Administrative Assistant', | ||
'Teacher / Infant-Toddler Caregiver', | ||
'Volunteer', | ||
]; | ||
|
||
export const nonGranteeParticipants = [ | ||
'Local/State Agency(ies)', | ||
'HSCO', | ||
'OCC Regional Office', | ||
'OHS Regional Office', | ||
'Regional Head Start Association', | ||
'Regional TTA Team / Specialists', | ||
'State Early Learning System', | ||
'State Head Start Association', | ||
'Other', | ||
]; | ||
|
||
export const targetPopulations = [ | ||
'Affected by Child Welfare Involvement', | ||
'Affected by Disaster', | ||
'Affected by Substance Use', | ||
'Children with Disabilities', | ||
'Children Experiencing Homelessness', | ||
'Dual-Language Learners', | ||
'Pregnant Women', | ||
]; | ||
|
||
export const otherUsers = [ | ||
'User 1', | ||
'User 2', | ||
'User 3', | ||
]; | ||
|
||
export const programTypes = [ | ||
'program type 1', | ||
'program type 2', | ||
'program type 3', | ||
'program type 4', | ||
'program type 5', | ||
]; | ||
|
||
export const topics = [ | ||
'first', | ||
'second', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
up: async (queryInterface, Sequelize) => { | ||
queryInterface.addColumn( | ||
'ActivityReports', | ||
'context', | ||
{ | ||
type: Sequelize.DataTypes.STRING, | ||
}, | ||
); | ||
}, | ||
|
||
down: async (queryInterface) => { | ||
queryInterface.removeColumn('ActivityReports', 'context'); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters