Merge pull request #3267 from benjiwheeler/join-flow-placeholders

added placeholders to username step
This commit is contained in:
Benjamin Wheeler 2019-08-19 16:52:00 +02:00 committed by GitHub
commit 2854d9defd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -134,6 +134,7 @@ class UsernameStep extends React.Component {
error={errors.username}
id="username"
name="username"
placeholder={this.props.intl.formatMessage({id: 'general.username'})}
validate={this.validateUsernameIfPresent}
validationClassName="validation-full-width-input"
/* eslint-disable react/jsx-no-bind */
@ -155,6 +156,7 @@ class UsernameStep extends React.Component {
error={errors.password}
id="password"
name="password"
placeholder={this.props.intl.formatMessage({id: 'general.password'})}
type={values.showPassword ? 'text' : 'password'}
/* eslint-disable react/jsx-no-bind */
validate={password => this.validatePasswordIfPresent(password, values.username)}
@ -175,6 +177,9 @@ class UsernameStep extends React.Component {
error={errors.passwordConfirm}
id="passwordConfirm"
name="passwordConfirm"
placeholder={this.props.intl.formatMessage({
id: 'registration.confirmPasswordInstruction'
})}
type={values.showPassword ? 'text' : 'password'}
/* eslint-disable react/jsx-no-bind */
validate={() =>

View file

@ -157,6 +157,7 @@
"registration.generalError": "Sorry, an unexpected error occurred.",
"registration.classroomInviteExistingStudentStepDescription": "you have been invited to join the class:",
"registration.classroomInviteNewStudentStepDescription": "Your teacher has invited you to join a class:",
"registration.confirmPasswordInstruction": "Type password again",
"registration.confirmYourEmail": "Confirm Your Email",
"registration.confirmYourEmailDescription": "If you haven't already, please click the link in the confirmation email sent to:",
"registration.createAccount": "Create Your Account",