mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 08:31:23 -05:00
Revert "Merge pull request #1149 from mewtaylor/issue/r2-4092"
This reverts commit8e82398255
, reversing changes made toe1a0e9fece
.
This commit is contained in:
parent
6363a16b47
commit
ca0985571e
3 changed files with 16 additions and 30 deletions
|
@ -872,35 +872,23 @@ module.exports = {
|
||||||
</p>
|
</p>
|
||||||
<Card>
|
<Card>
|
||||||
<Form onValidSubmit={this.onValidSubmit}>
|
<Form onValidSubmit={this.onValidSubmit}>
|
||||||
<Input
|
<Input label={formatMessage({id: 'general.emailAddress'})}
|
||||||
label={formatMessage({id: 'general.emailAddress'})}
|
|
||||||
type="text"
|
type="text"
|
||||||
name="user.email"
|
name="user.email"
|
||||||
validations="isEmail"
|
validations="isEmail"
|
||||||
validationError={formatMessage({id: 'general.validationEmail'})}
|
validationError={formatMessage({id: 'general.validationEmail'})}
|
||||||
required
|
required />
|
||||||
/>
|
<Input label={formatMessage({id: 'general.confirmEmail'})}
|
||||||
<Input
|
|
||||||
label={formatMessage({id: 'general.confirmEmail'})}
|
|
||||||
type="text"
|
type="text"
|
||||||
name="confirmEmail"
|
name="confirmEmail"
|
||||||
validations="equalsField:user.email"
|
validations="equalsField:user.email"
|
||||||
validationErrors={{
|
validationErrors={{
|
||||||
equalsField: formatMessage({id: 'general.validationEmailMatch'})
|
equalsField: formatMessage({id: 'general.validationEmailMatch'})
|
||||||
}}
|
}}
|
||||||
required
|
required />
|
||||||
/>
|
|
||||||
<Checkbox
|
|
||||||
label={formatMessage({id: 'registration.optIn'})}
|
|
||||||
value={true}
|
|
||||||
help={null}
|
|
||||||
name="subscribe"
|
|
||||||
/>
|
|
||||||
<GeneralError name="all" />
|
<GeneralError name="all" />
|
||||||
<NextStepButton
|
<NextStepButton waiting={this.props.waiting}
|
||||||
waiting={this.props.waiting}
|
text={<intl.FormattedMessage id="registration.nextStep" />} />
|
||||||
text={<intl.FormattedMessage id="registration.nextStep" />}
|
|
||||||
/>
|
|
||||||
</Form>
|
</Form>
|
||||||
</Card>
|
</Card>
|
||||||
<StepNavigation steps={this.props.totalSteps - 1} active={this.props.activeStep} />
|
<StepNavigation steps={this.props.totalSteps - 1} active={this.props.activeStep} />
|
||||||
|
|
|
@ -125,7 +125,6 @@
|
||||||
"registration.newPassword": "New Password",
|
"registration.newPassword": "New Password",
|
||||||
"registration.nextStep": "Next Step",
|
"registration.nextStep": "Next Step",
|
||||||
"registration.notYou": "Not you? Log in as another user",
|
"registration.notYou": "Not you? Log in as another user",
|
||||||
"registration.optIn": "Send me updates on using Scratch in educational settings",
|
|
||||||
"registration.personalStepTitle": "Personal Information",
|
"registration.personalStepTitle": "Personal Information",
|
||||||
"registration.personalStepDescription": "Your individual responses will not be displayed publicly, and will be kept confidential and secure",
|
"registration.personalStepDescription": "Your individual responses will not be displayed publicly, and will be kept confidential and secure",
|
||||||
"registration.selectCountry": "select country",
|
"registration.selectCountry": "select country",
|
||||||
|
|
|
@ -50,7 +50,6 @@ var TeacherRegistration = intl.injectIntl(React.createClass({
|
||||||
this.state.formData.user.gender
|
this.state.formData.user.gender
|
||||||
),
|
),
|
||||||
country: this.state.formData.user.country,
|
country: this.state.formData.user.country,
|
||||||
subscribe: formData.subscribe,
|
|
||||||
is_robot: this.state.formData.user.isRobot,
|
is_robot: this.state.formData.user.isRobot,
|
||||||
first_name: this.state.formData.user.name.first,
|
first_name: this.state.formData.user.name.first,
|
||||||
last_name: this.state.formData.user.name.last,
|
last_name: this.state.formData.user.name.last,
|
||||||
|
|
Loading…
Reference in a new issue