Add new cert goals to backend
This commit is contained in:
@ -106,10 +106,9 @@ export default function commit(app) {
|
||||
Object.assign(
|
||||
{
|
||||
title: 'Commit to a nonprofit. Commit to your goal.',
|
||||
pledge,
|
||||
frontEndCert: commitGoals.frontEndCert,
|
||||
fullStackCert: commitGoals.fullStackCert
|
||||
pledge
|
||||
},
|
||||
commitGoals,
|
||||
nonprofit
|
||||
)
|
||||
);
|
||||
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
"frontEndCert": "Front End Development Certification",
|
||||
"backEndCert": "Back End Development Certification",
|
||||
"dataVisCert": "Data Visualisation Certification",
|
||||
"fullStackCert": "Full Stack Development Certification"
|
||||
}
|
||||
|
@ -28,10 +28,10 @@ block content
|
||||
input(type='radio' id=frontEndCert value=frontEndCert name='goal' checked="checked")
|
||||
| Front End Development Certification (takes about 400 hours)
|
||||
label.btn.btn-primary.btn-lg
|
||||
input(type='radio' id=fullStackCert value=dataVisCert name='goal')
|
||||
input(type='radio' id=dataVisCert value=dataVisCert name='goal')
|
||||
| Data Visualization Certification (takes about 800 hours)
|
||||
label.btn.btn-primary.btn-lg
|
||||
input(type='radio' id=fullStackCert value=backEndCert name='goal')
|
||||
input(type='radio' id=backEndCert value=backEndCert name='goal')
|
||||
| Back End Development Certification (takes about 1,200 hours)
|
||||
label.btn.btn-primary.btn-lg
|
||||
input(type='radio' id=fullStackCert value=fullStackCert name='goal')
|
||||
@ -91,6 +91,15 @@ block content
|
||||
});
|
||||
|
||||
$('#commit-btn-submit').click(function() {
|
||||
|
||||
if (
|
||||
history &&
|
||||
typeof history.pushState === 'function'
|
||||
) {
|
||||
history.pushState(history.state, null, '/commit/pledge?' + $('form').serialize());
|
||||
return null;
|
||||
}
|
||||
|
||||
window.location.href = '/commit/pledge?' + $('form').serialize();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user