From 060400b07459966d7dca8a50adb27dbe59815057 Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 30 May 2024 13:48:59 +0200 Subject: [PATCH] Revert "Use tables headline for account.create.html.twig" This reverts commit 64387e085bff66bd0f63dcdc7548bac1e2dc5c5b. --- system/templates/account.create.html.twig | 609 +++++++++++----------- 1 file changed, 313 insertions(+), 296 deletions(-) diff --git a/system/templates/account.create.html.twig b/system/templates/account.create.html.twig index d6105a70..7611a0c2 100644 --- a/system/templates/account.create.html.twig +++ b/system/templates/account.create.html.twig @@ -1,313 +1,330 @@ {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_FORM') }} -{% set title = 'Create ' ~ config.lua.serverName ~ ' Account' %} -{% set background = config('darkborder') %} -{% set tableClass = 'Table5' %} -{% set content %} - - {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_BOXES') }} - - + +
-
-
-
- - - - {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_ACCOUNT') }} - - {% if not config.account_login_by_email %} - - - - - {% endif %} - - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_ACCOUNT') }} - - - - - - - - - {% if setting('core.mail_enabled') and setting('core.account_mail_verify') %} - - {% endif %} - - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_EMAIL') }} - - {% if setting('core.account_country') %} + + {{ csrf() }} +
+
- Account {% if constant('USE_ACCOUNT_NAME') %}Name{% else %}Number{% endif %}: - {% if not constant('USE_ACCOUNT_NAME') %} - - {% endif %} - - - -
{% if errors.account is defined %}{{ errors.account }}{% endif %}
- Email Address: - - - -
{% if errors.email is defined %}{{ errors.email }}{% endif %}
Please use real address!
We will send a link to validate your Email.
+
+
+ + + + +
Create {{ config.lua.serverName }} Account
+ + + + +
+
+ + - - - {{ hook('HOOK_ACCOUNT_CREATE_BETWEEN_BOXES_1') }} - - {% if (not setting('core.mail_enabled') or not setting('core.account_mail_verify')) and setting('core.account_create_character_create') %} - - - - {% endif %} - - {{ hook('HOOK_ACCOUNT_CREATE_BETWEEN_BOXES_2') }} - - - - + {% endif %} - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_BOXES') }} + {{ hook('HOOK_ACCOUNT_CREATE_BETWEEN_BOXES_2') }} -
+
+ + {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_BOXES') }} - - {% if errors.country is defined %} - - {% endif %} - {% endif %} - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_COUNTRY') }} + {{ hook('HOOK_ACCOUNT_CREATE_BETWEEN_BOXES_1') }} - - - - - - - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_PASSWORD') }} - - - - - - - - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_PASSWORDS') }} - -
- Country: - - - +
+
+
+ + + + {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_ACCOUNT') }} + + {% if not config.account_login_by_email %} + + + + + {% endif %} + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_ACCOUNT') }} + + + + + + + + + {% if setting('core.mail_enabled') and setting('core.account_mail_verify') %} + + {% endif %} + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_EMAIL') }} + + {% if setting('core.account_country') %} + + + + + {% if errors.country is defined %} + + {% endif %} + {% endif %} + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_COUNTRY') }} + + + + + + + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_PASSWORD') }} + + + + + + + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_PASSWORDS') }} + +
+ Account {% if constant('USE_ACCOUNT_NAME') %}Name{% else %}Number{% endif %}: + {% if not constant('USE_ACCOUNT_NAME') %} + + {% endif %} + + + +
{% if errors.account is defined %}{{ errors.account }}{% endif %}
+ Email Address: + + + +
{% if errors.email is defined %}{{ errors.email }}{% endif %}
Please use real address!
We will send a link to validate your Email.
+ Country: + + + +
{{ errors.country }}
+ Password: + + + +
{% if errors.password is defined %}{{ errors.password }}{% endif %}
+ Repeat password: + + + +
{% if errors.password is defined %}{{ errors.password }}{% endif %}
+
+
+
+
{{ errors.country }}
- Password: - - - -
{% if errors.password is defined %}{{ errors.password }}{% endif %}
- Repeat password: - - - -
{% if errors.password is defined %}{{ errors.password }}{% endif %}
-
- -
-
-
-
-
-
-
-
- - - - {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_CHARACTER_NAME') }} - - - - - - - - - - - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_CHARACTER_NAME') }} - - - - - - - - - - - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_SEX') }} - - {% if config.character_samples|length > 1 %} - - - - - - - - - {% endif %} - - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_VOCATION') }} - - {% if config.character_towns|length > 1 %} - - - - - {% endif %} - - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_TOWNS') }} - - -
- Character Name: - - - -
-
- {% if errors.name is defined %}{{ errors.name }}{% endif %} -
- Sex: - - - - - - - - -
- {% set i = 0 %} - {% for id, gender in config.genders|reverse(true) %} - {% set i = i + 1 %} - - - - - {% endfor %} - -
-
- {% if errors.sex is defined %}{{ errors.sex }}{% endif %} -
- Vocation: - - - - - - - -
- {% for key, sample_char in config.character_samples %} - - - - - {% endfor %} -
-
- {% if errors.vocation is defined %}{{ errors.vocation }}{% endif %} -
- Select your town: - - - - - - - -
- {% for town_id in config.character_towns %} - - - - - {% endfor %} -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - {% if errors.accept_rules is defined %} + {% if (not setting('core.mail_enabled') or not setting('core.account_mail_verify')) and setting('core.account_create_character_create') %} - - {% endif %} - -
Please select the following check box:
- -
- {{ errors.accept_rules }} + +
+
+
+
+
+ + + + {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_CHARACTER_NAME') }} + + + + + + + + + + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_CHARACTER_NAME') }} + + + + + + + + + + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_SEX') }} + + {% if config.character_samples|length > 1 %} + + + + + + + + + {% endif %} + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_VOCATION') }} + + {% if config.character_towns|length > 1 %} + + + + + {% endif %} + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_TOWNS') }} + + +
+ Character Name: + + + +
+
+ {% if errors.name is defined %}{{ errors.name }}{% endif %} +
+ Sex: + + + + + + + + +
+ {% set i = 0 %} + {% for id, gender in config.genders|reverse(true) %} + {% set i = i + 1 %} + + + + + {% endfor %} + +
+
+ {% if errors.sex is defined %}{{ errors.sex }}{% endif %} +
+ Vocation: + + + + + + + +
+ {% for key, sample_char in config.character_samples %} + + + + + {% endfor %} +
+
+ {% if errors.vocation is defined %}{{ errors.vocation }}{% endif %} +
+ Select your town: + + + + + + + +
+ {% for town_id in config.character_towns %} + + + + + {% endfor %} +
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-{% endset %} -{% include 'tables.headline.html.twig' %} -
-{{ hook('HOOK_ACCOUNT_CREATE_BEFORE_SUBMIT_BUTTON') }} - - - + +
- - - + + + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_BOXES') }} + +
- - {{ csrf() }} +
+
+
+
+
+
+ + + + + + + + + {% if errors.accept_rules is defined %} + + + + {% endif %} + +
Please select the following check box:
+ +
+ {{ errors.accept_rules }} +
+
+
+
+
+
+
+
+ +
+
+
+ {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_SUBMIT_BUTTON') }} + + + - -
+ + + - -
{{ include('buttons.submit.html.twig') }} - -
-
+
+ + + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_FORM') }}