mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-11 16:21:04 -05:00
some code formatting tweaks
This commit is contained in:
parent
10f154ca10
commit
86a8f94919
2 changed files with 8 additions and 16 deletions
|
@ -37,15 +37,11 @@ var Login = React.createClass({
|
|||
<div className="login">
|
||||
<Form onSubmit={this.handleSubmit}>
|
||||
<label htmlFor="username" key="usernameLabel">
|
||||
<FormattedMessage
|
||||
id='general.username'
|
||||
defaultMessage={'Username'} />
|
||||
<FormattedMessage id='general.username' />
|
||||
</label>
|
||||
<Input type="text" ref="username" name="username" maxLength="30" key="usernameInput" required />
|
||||
<label htmlFor="password" key="passwordLabel">
|
||||
<FormattedMessage
|
||||
id='general.password'
|
||||
defaultMessage={'Password'} />
|
||||
<FormattedMessage id='general.password' />
|
||||
</label>
|
||||
<Input type="password" ref="password" name="password" key="passwordInput" required />
|
||||
{this.state.waiting ? [
|
||||
|
@ -54,15 +50,11 @@ var Login = React.createClass({
|
|||
</Button>
|
||||
] : [
|
||||
<Button className="submit-button white" type="submit" key="submitButton">
|
||||
<FormattedMessage
|
||||
id='general.signIn'
|
||||
defaultMessage={'Sign in'} />
|
||||
<FormattedMessage id='general.signIn' />
|
||||
</Button>
|
||||
]}
|
||||
<a className="right" href="/accounts/password_reset/" key="passwordResetLink">
|
||||
<FormattedMessage
|
||||
id='login.forgotPassword'
|
||||
defaultMessage={'Forgot Password?'} />
|
||||
<FormattedMessage id='login.forgotPassword' />
|
||||
</a>
|
||||
{error}
|
||||
</Form>
|
||||
|
|
Loading…
Reference in a new issue