Skip to content

Commit

Permalink
Add a red button for accessing the sped referral packets from the stu…
Browse files Browse the repository at this point in the history
…dent profile. Issue studentinsights#502
  • Loading branch information
Margaret Scott committed May 18, 2016
1 parent fecbcf9 commit a344b1e
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions app/assets/javascripts/student_profile/interventions_details.js
Expand Up @@ -29,12 +29,27 @@
borderBottom: '1px solid #333',
color: 'black',
padding: 10,
paddingLeft: 0
paddingLeft: 0,
},
servicesTitle: {
color: 'black'
},
servicesHeading: {
display: 'flex',
justifyContent: 'flex-start',
borderBottom: '1px solid #333',
padding: 10,
paddingLeft: 0,
},
spedButton: {
backgroundColor: '#E5370E',
width: '20em',
fontSize: 12,
padding: 8
}
};



/*
The bottom region of the page, showing notes about the student, services
they are receiving, and allowing users to enter new information about
Expand Down Expand Up @@ -73,6 +88,11 @@
this.setState({ isTakingNotes: false });
},

onClickGenerateSpedReferral: function(event) {
window.location = this.props.student.id + '/sped_referral.pdf';
return null;
},

onClickRecordService: function(event) {
this.setState({ isAddingService: true });
},
Expand Down Expand Up @@ -102,7 +122,14 @@
})
),
dom.div({ style: styles.servicesContainer },
dom.h4({ style: styles.title}, 'Services'),
dom.div({ className: 'ServicesHeader', style: styles.servicesHeading },
dom.h4({ style: styles.servicesTitle }, 'Services'),
dom.button({
className: 'btn',
style: styles.spedButton,
onClick: this.onClickGenerateSpedReferral
}, 'BETA: Generate SPED Referral')
),
dom.div({ style: styles.addServiceContainer }, this.renderRecordServiceSection()),
createEl(ServicesList, {
servicesFeed: this.props.feed.services,
Expand Down

0 comments on commit a344b1e

Please sign in to comment.