From 1251b14d9de849ec7ef1f7353171af6340a642a8 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Wed, 4 Nov 2015 13:45:22 -0800 Subject: [PATCH] Add job cert buttons --- common/app/routes/Jobs/components/NewJob.jsx | 53 ++++++++++++++++++-- 1 file changed, 50 insertions(+), 3 deletions(-) diff --git a/common/app/routes/Jobs/components/NewJob.jsx b/common/app/routes/Jobs/components/NewJob.jsx index a3535290d8..6dce6817c0 100644 --- a/common/app/routes/Jobs/components/NewJob.jsx +++ b/common/app/routes/Jobs/components/NewJob.jsx @@ -45,6 +45,7 @@ const hightlightCopy = ` Highlight my post to make it stand out. (+$50) `; + const isRemoteCopy = ` This job can be performed remotely. `; @@ -113,6 +114,8 @@ export default contain({ url, logo, company, + isFrontEndCert, + isFullStackCert, isHighlighted, isRemoteOk, howToApply @@ -127,7 +130,9 @@ export default contain({ company: formatValue(company, makeRequired(isAscii)), isHighlighted: formatValue(isHighlighted, null, 'bool'), isRemoteOk: formatValue(isRemoteOk, null, 'bool'), - howToApply: formatValue(howToApply, makeRequired(isAscii)) + howToApply: formatValue(howToApply, makeRequired(isAscii)), + isFrontEndCert, + isFullStackCert }; }, subscribeOnWillMount() { @@ -148,6 +153,8 @@ export default contain({ company: PropTypes.object, isHighlighted: PropTypes.object, isRemoteOk: PropTypes.object, + isFrontEndCert: PropTypes.bool, + isFullStackCert: PropTypes.bool, howToApply: PropTypes.object }, @@ -180,6 +187,8 @@ export default contain({ url, logo, company, + isFrontEndCert, + isFullStackCert, isHighlighted, isRemoteOk, howToApply @@ -196,7 +205,9 @@ export default contain({ company: inHTMLData(company.value), isHighlighted: !!isHighlighted.value, isRemoteOk: !!isRemoteOk.value, - howToApply: inHTMLData(howToApply.value) + howToApply: inHTMLData(howToApply.value), + isFrontEndCert, + isFullStackCert }; const job = Object.keys(jobValues).reduce((accu, prop) => { @@ -235,8 +246,11 @@ export default contain({ isHighlighted, isRemoteOk, howToApply, + isFrontEndCert, + isFullStackCert, jobActions: { handleForm } } = this.props; + const { handleChange } = this; const labelClass = 'col-sm-offset-1 col-sm-2'; const inputClass = 'col-sm-6'; @@ -253,7 +267,40 @@ export default contain({ onSubmit={ this.handleSubmit }>
-

First, tell us about the position

+

First, select your ideal applicant:

+
+ + + + + + +
+ + + + + +
+

Tell us about the position