mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Merge pull request #935 from mewtaylor/issue/gh-933
Fix GH-933: Put label for “Not Required” above input
This commit is contained in:
commit
5c3cba2a89
2 changed files with 15 additions and 3 deletions
|
@ -20,3 +20,8 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.row-label {
|
||||
margin-bottom: .75rem;
|
||||
line-height: 1.7rem;
|
||||
}
|
||||
|
|
|
@ -741,8 +741,15 @@ module.exports = {
|
|||
required /> :
|
||||
[]
|
||||
}
|
||||
<Input label={formatMessage({id: 'teacherRegistration.zipCode'})}
|
||||
type="text"
|
||||
<b className="row-label">
|
||||
<intl.FormattedMessage id="teacherRegistration.zipCode" />
|
||||
</b>
|
||||
{this.state.countryChoice !== 'us' ?
|
||||
<p className="help-text">
|
||||
<intl.FormattedMessage id="teacherRegistration.notRequired" />
|
||||
</p> : []
|
||||
}
|
||||
<Input type="text"
|
||||
name="address.zip"
|
||||
validations={{
|
||||
maxLength: 10
|
||||
|
@ -752,7 +759,7 @@ module.exports = {
|
|||
id: 'registration.validationMaxLength'
|
||||
})
|
||||
}}
|
||||
required={(this.state.countryChoice === 'us')} />
|
||||
required={(this.state.countryChoice === 'us') ? true : 'isFalse'} />
|
||||
<GeneralError name="all" />
|
||||
<NextStepButton waiting={this.props.waiting || this.state.waiting}
|
||||
text={<intl.FormattedMessage id="registration.nextStep" />} />
|
||||
|
|
Loading…
Reference in a new issue