UX: Add new classes to make user creation more targetable
This commit is contained in:
parent
c8ad89afd4
commit
a0da098e6b
|
@ -25,7 +25,7 @@ export default Ember.Mixin.create({
|
||||||
this.set('uniqueUsernameValidation', null);
|
this.set('uniqueUsernameValidation', null);
|
||||||
|
|
||||||
|
|
||||||
if (accountUsername === this.get('prefilledUsername')) {
|
if (accountUsername && accountUsername === this.get('prefilledUsername')) {
|
||||||
return InputValidation.create({
|
return InputValidation.create({
|
||||||
ok: true,
|
ok: true,
|
||||||
reason: I18n.t('user.username.prefilled')
|
reason: I18n.t('user.username.prefilled')
|
||||||
|
|
|
@ -11,14 +11,14 @@
|
||||||
<form>
|
<form>
|
||||||
<table>
|
<table>
|
||||||
|
|
||||||
<tr class="input">
|
<tr class="input create-account-email">
|
||||||
<td class="label"><label for='new-account-email'>{{i18n 'user.email.title'}}</label></td>
|
<td class="label"><label for='new-account-email'>{{i18n 'user.email.title'}}</label></td>
|
||||||
<td>
|
<td>
|
||||||
{{input type="email" value=accountEmail id="new-account-email" disabled=emailValidated name="email" autofocus="autofocus"}}
|
{{input type="email" value=accountEmail id="new-account-email" disabled=emailValidated name="email" autofocus="autofocus"}}
|
||||||
{{input-tip validation=emailValidation}}
|
{{input-tip validation=emailValidation}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="instructions">
|
<tr class="instructions create-account-email">
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><label>{{i18n 'user.email.instructions'}}</label></td>
|
<td><label>{{i18n 'user.email.instructions'}}</label></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue