2015-10-13 23:05:31 -07:00
|
|
|
import React, { PropTypes } from 'react';
|
2015-10-15 23:06:16 -07:00
|
|
|
import { Button, Col, Panel, Row } from 'react-bootstrap';
|
2015-10-13 23:05:31 -07:00
|
|
|
import { contain } from 'thundercats-react';
|
|
|
|
|
|
|
|
export default contain(
|
|
|
|
{
|
|
|
|
store: 'JobsStore',
|
|
|
|
actions: 'JobActions',
|
2015-10-15 23:06:16 -07:00
|
|
|
map({ job: { id, isHighlighted } = {} }) {
|
|
|
|
return { id, isHighlighted };
|
2015-10-13 23:05:31 -07:00
|
|
|
}
|
|
|
|
},
|
|
|
|
React.createClass({
|
|
|
|
displayName: 'GoToPayPal',
|
|
|
|
|
|
|
|
propTypes: {
|
2015-10-15 23:06:16 -07:00
|
|
|
id: PropTypes.string,
|
|
|
|
isHighlighted: PropTypes.bool
|
2015-10-13 23:05:31 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const { id } = this.props;
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<Row>
|
|
|
|
<Col
|
2015-10-15 23:06:16 -07:00
|
|
|
md={ 10 }
|
|
|
|
mdOffset={ 1 }
|
2015-10-13 23:05:31 -07:00
|
|
|
sm={ 8 }
|
|
|
|
smOffset={ 2 }
|
2015-10-15 20:03:07 -07:00
|
|
|
xs={ 12 }>
|
|
|
|
<Panel>
|
2015-10-15 23:06:16 -07:00
|
|
|
<Row>
|
|
|
|
<Col
|
|
|
|
md={ 6 }
|
|
|
|
mdOffset={ 3 }>
|
|
|
|
<h2 className='text-center'>
|
|
|
|
One more step
|
|
|
|
</h2>
|
|
|
|
<div className='spacer' />
|
|
|
|
You're Awesome! just one more step to go.
|
|
|
|
Clicking on the link below will redirect to paypal.
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
<div className='spacer' />
|
|
|
|
<Row>
|
|
|
|
<Col
|
|
|
|
md={ 6 }
|
|
|
|
mdOffset={ 3 }>
|
|
|
|
<form
|
|
|
|
action='https://www.sandbox.paypal.com/cgi-bin/webscr'
|
|
|
|
method='post'
|
|
|
|
target='_top'>
|
|
|
|
<input
|
|
|
|
name='cmd'
|
|
|
|
type='hidden'
|
|
|
|
value='_s-xclick' />
|
|
|
|
<input
|
|
|
|
name='hosted_button_id'
|
|
|
|
type='hidden'
|
|
|
|
value='ZVU498PLMPHKU' />
|
|
|
|
<input
|
|
|
|
name='custom'
|
|
|
|
type='hidden'
|
|
|
|
value={ '' + id } />
|
|
|
|
<Button
|
|
|
|
block={ true }
|
|
|
|
bsSize='size'
|
|
|
|
className='signup-btn'
|
|
|
|
type='submit'>
|
|
|
|
<i className='fa fa-paypal' />
|
|
|
|
Continue to PayPal
|
|
|
|
</Button>
|
|
|
|
<div className='spacer' />
|
|
|
|
<img
|
|
|
|
alt='An array of credit cards'
|
|
|
|
border='0'
|
|
|
|
src='http://i.imgur.com/Q2SdSZG.png'
|
|
|
|
style={{
|
|
|
|
width: '100%'
|
|
|
|
}} />
|
|
|
|
</form>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
<div className='spacer' />
|
2015-10-15 20:03:07 -07:00
|
|
|
</Panel>
|
2015-10-13 23:05:31 -07:00
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
);
|