Commit cf4a0572 authored by Matthew Taylor's avatar Matthew Taylor

Fix “afterschool” typo

Also make default country selectable in the user demographic step, and fix the spacing with `Create a Username`
parent 668f1414
...@@ -124,12 +124,14 @@ module.exports = { ...@@ -124,12 +124,14 @@ module.exports = {
<Card> <Card>
<Form onValidSubmit={this.onValidSubmit}> <Form onValidSubmit={this.onValidSubmit}>
<div> <div>
<b>{formatMessage({id: 'registration.createUsername'})}</b> <div className="username-label">
{this.props.usernameHelp ? ( <b>{formatMessage({id: 'registration.createUsername'})}</b>
<p className="help-text">{this.props.usernameHelp}</p> {this.props.usernameHelp ? (
):( <p className="help-text">{this.props.usernameHelp}</p>
null ):(
)} null
)}
</div>
<Input className={this.state.validUsername} <Input className={this.state.validUsername}
type="text" type="text"
name="user.username" name="user.username"
...@@ -280,6 +282,17 @@ module.exports = { ...@@ -280,6 +282,17 @@ module.exports = {
}, },
render: function () { render: function () {
var formatMessage = this.props.intl.formatMessage; var formatMessage = this.props.intl.formatMessage;
var countryOptions = countryData.countryOptions.concat({
label: formatMessage({id: 'teacherRegistration.selectCountry'}),
disabled: true,
selected: true
}).sort(function (a, b) {
if (a.disabled) return -1;
if (b.disabled) return 1;
if (a.value === this.props.defaultCountry) return -1;
if (b.value === this.props.defaultCountry) return 1;
return 0;
}.bind(this));
return ( return (
<Slide className="registration-step demographics-step"> <Slide className="registration-step demographics-step">
<h2> <h2>
...@@ -321,8 +334,7 @@ module.exports = { ...@@ -321,8 +334,7 @@ module.exports = {
</div> </div>
<Select label={formatMessage({id: 'general.country'})} <Select label={formatMessage({id: 'general.country'})}
name="user.country" name="user.country"
options={countryData.countryOptions} options={countryOptions}
value={this.props.defaultCountry}
required /> required />
<Checkbox className="demographics-checkbox-is-robot" <Checkbox className="demographics-checkbox-is-robot"
label="I'm a robot!" label="I'm a robot!"
......
...@@ -50,6 +50,12 @@ ...@@ -50,6 +50,12 @@
} }
} }
&.username-step {
.username-label {
margin-bottom: .75rem;
}
}
&.demographics-step { &.demographics-step {
.gender-input { .gender-input {
margin-top: -5.5rem; margin-top: -5.5rem;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"teacherRegistration.orgChoiceMiddleSchool": "Middle School", "teacherRegistration.orgChoiceMiddleSchool": "Middle School",
"teacherRegistration.orgChoiceHighSchool": "High School", "teacherRegistration.orgChoiceHighSchool": "High School",
"teacherRegistration.orgChoiceUniversity": "College/University", "teacherRegistration.orgChoiceUniversity": "College/University",
"teacherRegistration.orgChoiceAfterschool": "Afterscool Program", "teacherRegistration.orgChoiceAfterschool": "Afterschool Program",
"teacherRegistration.orgChoiceMuseum": "Museum", "teacherRegistration.orgChoiceMuseum": "Museum",
"teacherRegistration.orgChoiceLibrary": "Library", "teacherRegistration.orgChoiceLibrary": "Library",
"teacherRegistration.orgChoiceCamp": "Camp", "teacherRegistration.orgChoiceCamp": "Camp",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment