mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-20 04:23:26 +02:00
* new account.login view for tibiacom template
* added new indicator icons for create account, create character and change character name * attempt to fix incorrect views counter behavior (its resetting to 0 in some cases) * moved check_* functions to class Validator * from now all validators ajax requests will fire onblur instead of onkeyup * ajax requests returns now json instead of xml * added 404 response when file is not found * fixed gallery
This commit is contained in:
@@ -26,25 +26,21 @@ Also you have to agree to the terms presented below. If you have done so, your a
|
||||
<span{% if errors.account[0] is defined %} class="red"{% endif %}>Account {% if constant('USE_ACCOUNT_NAME') %}Name{% else %}Number{% endif %}:</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="account" id="account_input" onkeyup="checkAccount();" size="30" maxlength="{% if constant('USE_ACCOUNT_NAME') %}30{% else %}10{% endif %}" value="{{ account }}" autofocus/>
|
||||
<small id="acc_check"></small>
|
||||
<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" />
|
||||
</td>
|
||||
</tr>
|
||||
{% if errors.account is defined %}
|
||||
<tr><td></td><td><span class="FormFieldError">{{ errors.account }}</span></td></tr>
|
||||
{% endif %}
|
||||
<tr><td></td><td><span id="account_error" class="FormFieldError">{% if errors.account is defined %}{{ errors.account }}{% endif %}</span></td></tr>
|
||||
<tr>
|
||||
<td class="LabelV" >
|
||||
<span{% if errors.email[0] is defined %} class="red"{% endif %}>Email Address:</span>
|
||||
</td>
|
||||
<td style="width:100%;" >
|
||||
<input type="text" name="email" id="email" onkeyup="checkEmail();" size="30" maxlength="50" value="{{ email }}" />
|
||||
<small id="email_check"></small>
|
||||
<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" />
|
||||
</td>
|
||||
</tr>
|
||||
{% if errors.email is defined %}
|
||||
<tr><td></td><td><span class="FormFieldError">{{ errors.email }}</span></td></tr>
|
||||
{% endif %}
|
||||
<tr><td></td><td><span id="email_error" class="FormFieldError">{% if errors.email is defined %}{{ errors.email }}{% endif %}</span></td></tr>
|
||||
{% if config.account_country %}
|
||||
<tr>
|
||||
<td class="LabelV" >
|
||||
@@ -57,27 +53,6 @@ Also you have to agree to the terms presented below. If you have done so, your a
|
||||
{% endfor %}
|
||||
</select>
|
||||
<img src="" id="account_country_img"/>
|
||||
<script>
|
||||
function updateFlag()
|
||||
{
|
||||
var img = $('#account_country_img');
|
||||
var country = $('#account_country :selected').val();
|
||||
if(country.length) {
|
||||
img.attr('src', 'images/flags/' + country + '.gif');
|
||||
img.show();
|
||||
}
|
||||
else {
|
||||
img.hide();
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
updateFlag();
|
||||
$('#account_country').change(function() {
|
||||
updateFlag();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
{% if errors.country is defined %}
|
||||
@@ -89,23 +64,21 @@ Also you have to agree to the terms presented below. If you have done so, your a
|
||||
<span{% if errors.password[0] is defined %} class="red"{% endif %}>Password:</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" name="password" value="" size="30" maxlength="50" />
|
||||
<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" />
|
||||
</td>
|
||||
</tr>
|
||||
{% if errors.password is defined %}
|
||||
<tr><td></td><td><span class="FormFieldError">{{ errors.password }}</span></td></tr>
|
||||
{% endif %}
|
||||
<tr><td></td><td><span id="password_error" class="FormFieldError">{% if errors.password is defined %}{{ errors.password }}{% endif %}</span></td></tr>
|
||||
<tr>
|
||||
<td class="LabelV" >
|
||||
<span{% if errors.password[0] is defined %} class="red"{% endif %}>Repeat password:</span>
|
||||
</td>
|
||||
<td>
|
||||
<input type="password" name="password2" value="" size="30" maxlength="50" />
|
||||
<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" />
|
||||
</td>
|
||||
</tr>
|
||||
{% if errors.password is defined %}
|
||||
<tr><td></td><td><span class="FormFieldError">{{ errors.password }}</span></td></tr>
|
||||
{% endif %}
|
||||
<tr><td></td><td><span id="password2_error" class="FormFieldError">{% if errors.password is defined %}{{ errors.password }}{% endif %}</span></td></tr>
|
||||
{% if config.recaptcha_enabled %}
|
||||
<tr>
|
||||
<td class="LabelV" >
|
||||
|
Reference in New Issue
Block a user