2016-01-16 17:36:22 +05:30
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
2016-01-16 18:05:12 +05:30
|
|
|
import Helmet from 'react-helmet';
|
2016-01-16 17:36:22 +05:30
|
|
|
|
|
|
|
import buttons from 'components/ui/buttons.scss';
|
2016-01-19 11:47:21 +05:30
|
|
|
import { Panel, PanelBody, PanelFooter } from 'components/ui/Panel';
|
2016-01-16 17:36:22 +05:30
|
|
|
import { Input, Checkbox } from 'components/ui/Form';
|
|
|
|
|
2016-01-19 11:47:21 +05:30
|
|
|
import {helpLinks as helpLinksStyles} from './helpLinks.scss';
|
|
|
|
import messages from './Register.messages';
|
|
|
|
import activationMessages from './Activation.messages';
|
2016-01-16 17:36:22 +05:30
|
|
|
|
|
|
|
export default class Register extends Component {
|
|
|
|
displayName = 'Register';
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2016-01-19 11:47:21 +05:30
|
|
|
<div>
|
|
|
|
<Message {...messages.signUpTitle}>
|
|
|
|
{(msg) => <Helmet title={msg} />}
|
|
|
|
</Message>
|
2016-01-16 18:05:12 +05:30
|
|
|
|
2016-01-16 17:36:22 +05:30
|
|
|
<Panel title={<Message {...messages.signUpTitle} />}>
|
|
|
|
<PanelBody>
|
2016-01-19 11:47:21 +05:30
|
|
|
<Input icon="user" color="blue" type="text" placeholder={messages.yourNickname} />
|
|
|
|
<Input icon="envelope" color="blue" type="email" placeholder={messages.yourEmail} />
|
|
|
|
<Input icon="key" color="blue" type="password" placeholder={messages.accountPassword} />
|
|
|
|
<Input icon="key" color="blue" type="password" placeholder={messages.repeatPassword} />
|
2016-01-16 17:36:22 +05:30
|
|
|
|
|
|
|
<Checkbox color="blue" label={
|
|
|
|
<Message {...messages.acceptRules} values={{
|
|
|
|
link: (
|
|
|
|
<a href="#">
|
|
|
|
<Message {...messages.termsOfService} />
|
|
|
|
</a>
|
|
|
|
)
|
|
|
|
}} />
|
|
|
|
} />
|
|
|
|
</PanelBody>
|
|
|
|
<PanelFooter>
|
|
|
|
<button className={buttons.blue}>
|
|
|
|
<Message {...messages.signUpButton} />
|
|
|
|
</button>
|
|
|
|
</PanelFooter>
|
|
|
|
</Panel>
|
2016-01-19 11:47:21 +05:30
|
|
|
<div className={helpLinksStyles}>
|
2016-01-16 17:36:22 +05:30
|
|
|
<a href="#">
|
2016-01-19 11:47:21 +05:30
|
|
|
<Message {...activationMessages.didNotReceivedEmail} />
|
2016-01-16 17:36:22 +05:30
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|