From ac8a1a3f6f4fa35b14cb7126017a26c70ae017ab Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Tue, 20 Oct 2015 15:01:05 -0700 Subject: [PATCH] Finish copy, add flags --- .../app/routes/Jobs/components/GoToPayPal.jsx | 7 +- common/app/routes/Jobs/components/NewJob.jsx | 139 ++++++++---------- .../Jobs/components/NewJobCompleted.jsx | 15 +- common/app/routes/Jobs/components/Preview.jsx | 2 +- 4 files changed, 75 insertions(+), 88 deletions(-) diff --git a/common/app/routes/Jobs/components/GoToPayPal.jsx b/common/app/routes/Jobs/components/GoToPayPal.jsx index a29ecbe976..229c86ddb4 100644 --- a/common/app/routes/Jobs/components/GoToPayPal.jsx +++ b/common/app/routes/Jobs/components/GoToPayPal.jsx @@ -19,7 +19,7 @@ export default contain( }, render() { - const { id } = this.props; + const { id, isHighlighted } = this.props; return (
@@ -58,7 +58,10 @@ export default contain( + value={ isHighlighted ? + '' : + 'ZVU498PLMPHKU' + } /> !!val && validator(val); } @@ -95,7 +93,6 @@ export default contain({ locale, description, email, - phone, url, logo, company, @@ -109,7 +106,6 @@ export default contain({ locale: formatValue(locale, makeRequired(isAscii)), description: formatValue(description, makeRequired(isAscii)), email: formatValue(email, makeRequired(isEmail)), - phone: formatValue(phone, isValidPhone), url: formatValue(url, isValidURL), logo: formatValue(logo, isValidURL), company: formatValue(company, makeRequired(isAscii)), @@ -132,7 +128,6 @@ export default contain({ locale: PropTypes.object, description: PropTypes.object, email: PropTypes.object, - phone: PropTypes.object, url: PropTypes.object, logo: PropTypes.object, company: PropTypes.object, @@ -168,7 +163,6 @@ export default contain({ locale, description, email, - phone, url, logo, company, @@ -184,7 +178,6 @@ export default contain({ locale: inHTMLData(locale.value), description: inHTMLData(description.value), email: inHTMLData(email.value), - phone: inHTMLData(phone.value), url: uriInSingleQuotedAttr(url.value), logo: uriInSingleQuotedAttr(logo.value), company: inHTMLData(company.value), @@ -224,7 +217,6 @@ export default contain({ locale, description, email, - phone, url, logo, company, @@ -285,67 +277,6 @@ export default contain({ type='textarea' value={ description.value } wrapperClassName={ inputClass } /> - -
-

Tell us about your organization

-
- handleChange('company', e) } - type='text' - value={ company.value } - wrapperClassName={ inputClass } /> - handleChange('email', e) } - placeholder='you@yourcompany.com' - required={ true } - type='email' - value={ email.value } - wrapperClassName={ inputClass } /> - handleChange('phone', e) } - placeholder='555-867-5309' - type='tel' - value={ phone.value } - wrapperClassName={ inputClass } /> - handleChange('url', e) } - placeholder='http://freecodecamp.com' - type='url' - value={ url.value } - wrapperClassName={ inputClass } /> - handleChange('logo', e) } - placeholder='http://freecatphotoapp.com/logo.png' - type='url' - value={ logo.value } - wrapperClassName={ inputClass } /> - -
- handleForm({ - isHighlighted: !!checked - }) - } - type='checkbox' - wrapperClassName={ checkboxClass } /> + + * { foo } + +
+ +
+

Tell us about your organization

+
+ handleChange('company', e) } + type='text' + value={ company.value } + wrapperClassName={ inputClass } /> + handleChange('email', e) } + placeholder='This is how we will contact you' + required={ true } + type='email' + value={ email.value } + wrapperClassName={ inputClass } /> + handleChange('url', e) } + placeholder='http://yourcompany.com' + type='url' + value={ url.value } + wrapperClassName={ inputClass } /> + handleChange('logo', e) } + placeholder='http://yourcompany.com/logo.png' + type='url' + value={ logo.value } + wrapperClassName={ inputClass } /> + +
+ handleForm({ + isHighlighted: !!checked + }) + } + type='checkbox' + wrapperClassName={ checkboxClass } />
+
-

- Job under review +

+ Your Position has Been Submitted

- Congrats! Your job has been posted and is under review. - Once we review you job post we will publish it and you will receive - an email from us with a link to the listing. + We’ll review your listing and email you when it’s live. +
+ Thank you for listing this job with Free Code Camp.
diff --git a/common/app/routes/Jobs/components/Preview.jsx b/common/app/routes/Jobs/components/Preview.jsx index 0504794904..8f64906d6a 100644 --- a/common/app/routes/Jobs/components/Preview.jsx +++ b/common/app/routes/Jobs/components/Preview.jsx @@ -36,7 +36,7 @@ export default contain( render() { const { appActions, job, jobActions } = this.props; - if (!job || !job.position || job.description) { + if (!job || !job.position || !job.description) { return ; }