Add goback and checkout buttons to preview job
This commit is contained in:
@ -143,7 +143,7 @@ export default contain({
|
|||||||
// sanitize user output
|
// sanitize user output
|
||||||
const jobValues = {
|
const jobValues = {
|
||||||
position: inHTMLData(position.value),
|
position: inHTMLData(position.value),
|
||||||
location: inHTMLData(locale.value),
|
locale: inHTMLData(locale.value),
|
||||||
description: inHTMLData(description.value),
|
description: inHTMLData(description.value),
|
||||||
email: inHTMLData(email.value),
|
email: inHTMLData(email.value),
|
||||||
phone: inHTMLData(phone.value),
|
phone: inHTMLData(phone.value),
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
// import React, { PropTypes } from 'react';
|
import React, { PropTypes } from 'react';
|
||||||
|
import { History } from 'react-router';
|
||||||
|
import { Well, Button, Row } from 'react-bootstrap';
|
||||||
import { contain } from 'thundercats-react';
|
import { contain } from 'thundercats-react';
|
||||||
import ShowJob from './ShowJob.jsx';
|
import ShowJob from './ShowJob.jsx';
|
||||||
|
|
||||||
@ -10,5 +12,37 @@ export default contain(
|
|||||||
return { job };
|
return { job };
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ShowJob
|
React.createClass({
|
||||||
|
displayName: 'Preview',
|
||||||
|
|
||||||
|
mixins: [History],
|
||||||
|
|
||||||
|
propTypes: {
|
||||||
|
job: PropTypes.object
|
||||||
|
},
|
||||||
|
|
||||||
|
render() {
|
||||||
|
const { job } = this.props;
|
||||||
|
const { history } = this;
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<ShowJob job={ job } />
|
||||||
|
<Row>
|
||||||
|
<Well>
|
||||||
|
<Button
|
||||||
|
block={ true }
|
||||||
|
className='signup-btn' >
|
||||||
|
Looks great! Let's Check Out
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
block={ true }
|
||||||
|
onClick={ () => history.goBack() } >
|
||||||
|
Head back and make edits
|
||||||
|
</Button>
|
||||||
|
</Well>
|
||||||
|
</Row>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
})
|
||||||
);
|
);
|
||||||
|
@ -57,7 +57,6 @@ export default Actions({
|
|||||||
saveForm: null,
|
saveForm: null,
|
||||||
getSavedForm: null,
|
getSavedForm: null,
|
||||||
setForm(form) {
|
setForm(form) {
|
||||||
form.locale = form.location;
|
|
||||||
return { form };
|
return { form };
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -36,8 +36,13 @@
|
|||||||
"country": {
|
"country": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"locale": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "format: city, state"
|
||||||
|
},
|
||||||
"location": {
|
"location": {
|
||||||
"type": "geopoint"
|
"type": "geopoint",
|
||||||
|
"description": "location in lat, long"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
Reference in New Issue
Block a user