Skip to content

Commit

Permalink
Revert "Merge pull request #1149 from mewtaylor/issue/r2-4092"
Browse files Browse the repository at this point in the history
This reverts commit 8e82398, reversing
changes made to e1a0e9f.
  • Loading branch information
mewtaylor committed Jan 31, 2017
1 parent 6363a16 commit ca09855
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 30 deletions.
44 changes: 16 additions & 28 deletions src/components/registration/steps.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -872,35 +872,23 @@ module.exports = {
</p>
<Card>
<Form onValidSubmit={this.onValidSubmit}>
<Input
label={formatMessage({id: 'general.emailAddress'})}
type="text"
name="user.email"
validations="isEmail"
validationError={formatMessage({id: 'general.validationEmail'})}
required
/>
<Input
label={formatMessage({id: 'general.confirmEmail'})}
type="text"
name="confirmEmail"
validations="equalsField:user.email"
validationErrors={{
equalsField: formatMessage({id: 'general.validationEmailMatch'})
}}
required
/>
<Checkbox
label={formatMessage({id: 'registration.optIn'})}
value={true}
help={null}
name="subscribe"
/>
<Input label={formatMessage({id: 'general.emailAddress'})}
type="text"
name="user.email"
validations="isEmail"
validationError={formatMessage({id: 'general.validationEmail'})}
required />
<Input label={formatMessage({id: 'general.confirmEmail'})}
type="text"
name="confirmEmail"
validations="equalsField:user.email"
validationErrors={{
equalsField: formatMessage({id: 'general.validationEmailMatch'})
}}
required />
<GeneralError name="all" />
<NextStepButton
waiting={this.props.waiting}
text={<intl.FormattedMessage id="registration.nextStep" />}
/>
<NextStepButton waiting={this.props.waiting}
text={<intl.FormattedMessage id="registration.nextStep" />} />
</Form>
</Card>
<StepNavigation steps={this.props.totalSteps - 1} active={this.props.activeStep} />
Expand Down
1 change: 0 additions & 1 deletion src/l10n.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
"registration.newPassword": "New Password",
"registration.nextStep": "Next Step",
"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.personalStepDescription": "Your individual responses will not be displayed publicly, and will be kept confidential and secure",
"registration.selectCountry": "select country",
Expand Down
1 change: 0 additions & 1 deletion src/views/teacherregistration/teacherregistration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ var TeacherRegistration = intl.injectIntl(React.createClass({
this.state.formData.user.gender
),
country: this.state.formData.user.country,
subscribe: formData.subscribe,
is_robot: this.state.formData.user.isRobot,
first_name: this.state.formData.user.name.first,
last_name: this.state.formData.user.name.last,
Expand Down

0 comments on commit ca09855

Please sign in to comment.