mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-10 06:44:29 +02:00
* don't show error indicators on first time load - createaccount page
This commit is contained in:
parent
c4a1f7df5f
commit
73ed384215
1
TODO
1
TODO
@ -5,7 +5,6 @@
|
||||
* plugins: option to define custom requirements check in json file, to check if system meets the requirement
|
||||
* add support for defining max myaac version in plugin.json file
|
||||
* cache Menus in templates
|
||||
* don't show error indicators on first time load - createaccount page
|
||||
* semantic versioning support for plugins (github.com/composer/semver)
|
||||
* add some notice to the user that installing step "Import Schema" will take some time
|
||||
|
||||
|
@ -27,7 +27,7 @@ Also you have to agree to the terms presented below. If you have done so, your a
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="account" id="account_input" size="30" maxlength="{% if constant('USE_ACCOUNT_NAME') %}30{% else %}10{% endif %}" value="{{ account }}" autofocus/>
|
||||
<img id="account_indicator" src="images/global/general/{% if not save or errors.account is defined %}n{% endif %}ok.gif" />
|
||||
<img id="account_indicator" src="images/global/general/{% if not save or errors.account is defined %}n{% endif %}ok.gif" style="display: none;" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td></td><td><span id="account_error" class="FormFieldError">{% if errors.account is defined %}{{ errors.account }}{% endif %}</span></td></tr>
|
||||
@ -37,7 +37,7 @@ Also you have to agree to the terms presented below. If you have done so, your a
|
||||
</td>
|
||||
<td style="width:100%;" >
|
||||
<input type="text" name="email" id="email" size="30" maxlength="50" value="{{ email }}" />
|
||||
<img id="email_indicator" src="images/global/general/{% if not save or errors.account is defined %}n{% endif %}ok.gif" />
|
||||
<img id="email_indicator" src="images/global/general/{% if not save or errors.account is defined %}n{% endif %}ok.gif" style="display: none;" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td></td><td><span id="email_error" class="FormFieldError">{% if errors.email is defined %}{{ errors.email }}{% endif %}</span></td></tr>
|
||||
@ -65,7 +65,7 @@ Also you have to agree to the terms presented below. If you have done so, your a
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" name="password" id="password" value="" size="30" maxlength="50" />
|
||||
<img id="password_indicator" src="images/global/general/{% if not save or errors.account is defined %}n{% endif %}ok.gif" />
|
||||
<img id="password_indicator" src="images/global/general/{% if not save or errors.account is defined %}n{% endif %}ok.gif" style="display: none;" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td></td><td><span id="password_error" class="FormFieldError">{% if errors.password is defined %}{{ errors.password }}{% endif %}</span></td></tr>
|
||||
@ -75,7 +75,7 @@ Also you have to agree to the terms presented below. If you have done so, your a
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" name="password2" id="password2" value="" size="30" maxlength="50" />
|
||||
<img id="password2_indicator" src="images/global/general/{% if not save or errors.account is defined %}n{% endif %}ok.gif" />
|
||||
<img id="password2_indicator" src="images/global/general/{% if not save or errors.account is defined %}n{% endif %}ok.gif" style="display: none;" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td></td><td><span id="password2_error" class="FormFieldError">{% if errors.password is defined %}{{ errors.password }}{% endif %}</span></td></tr>
|
||||
|
@ -51,6 +51,7 @@
|
||||
{
|
||||
$('#account_error').html('Please enter account {% if constant('USE_ACCOUNT_NAME') %}name{% else %}number{% endif %}.');
|
||||
$('#account_indicator').attr('src', 'images/global/general/nok.gif');
|
||||
$('#account_indicator').show();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -78,6 +79,8 @@
|
||||
$('#account_error').html(data.error);
|
||||
$('#account_indicator').attr('src', 'images/global/general/nok.gif');
|
||||
}
|
||||
|
||||
$('#account_indicator').show();
|
||||
}
|
||||
);
|
||||
|
||||
@ -96,6 +99,7 @@
|
||||
{
|
||||
$('#email_error').html('Please enter e-mail.');
|
||||
$('#email_indicator').attr('src', 'images/global/general/nok.gif');
|
||||
$('#email_indicator').show();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -123,6 +127,8 @@
|
||||
$('#email_error').html(data.error);
|
||||
$('#email_indicator').attr('src', 'images/global/general/nok.gif');
|
||||
}
|
||||
|
||||
$('#email_indicator').show();
|
||||
}
|
||||
);
|
||||
|
||||
@ -141,6 +147,7 @@
|
||||
{
|
||||
$('#password_error').html('Please enter the password for your new account.');
|
||||
$('#password_indicator').attr('src', 'images/global/general/nok.gif');
|
||||
$('#password_indicator').show();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -148,6 +155,7 @@
|
||||
{
|
||||
$('#password2_error').html('Please enter the password again!');
|
||||
$('#password2_indicator').attr('src', 'images/global/general/nok.gif');
|
||||
$('#password2_indicator').show();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -180,6 +188,9 @@
|
||||
$('#password_indicator').attr('src', 'images/global/general/nok.gif');
|
||||
$('#password2_indicator').attr('src', 'images/global/general/nok.gif');
|
||||
}
|
||||
|
||||
$('#password_indicator').show();
|
||||
$('#password2_indicator').show();
|
||||
}
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user