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