From 64387e085bff66bd0f63dcdc7548bac1e2dc5c5b Mon Sep 17 00:00:00 2001 From: slawkens Date: Sun, 14 Apr 2024 15:06:43 +0200 Subject: [PATCH] Use tables headline for account.create.html.twig --- system/templates/account.create.html.twig | 573 +++++++++++----------- 1 file changed, 278 insertions(+), 295 deletions(-) diff --git a/system/templates/account.create.html.twig b/system/templates/account.create.html.twig index 7611a0c298..d6105a7045 100644 --- a/system/templates/account.create.html.twig +++ b/system/templates/account.create.html.twig @@ -1,330 +1,313 @@ {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_FORM') }} -
- {{ csrf() }} -
- -
-
- - - - -
Create {{ config.lua.serverName }} Account
- - - - -
-
- - - -
-
- - {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_BOXES') }} - - + - {{ hook('HOOK_ACCOUNT_CREATE_BETWEEN_BOXES_1') }} + {{ 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') }} + {{ hook('HOOK_ACCOUNT_CREATE_BETWEEN_BOXES_2') }} + + + - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_BOXES') }} + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_BOXES') }} -
-
-
-
- - +{% 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_AFTER_PASSWORDS') }} + +
+
+
+
+ + - {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_ACCOUNT') }} + {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_ACCOUNT') }} - {% if not config.account_login_by_email %} - - - - - {% endif %} - - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_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 %} + {% if setting('core.mail_enabled') and setting('core.account_mail_verify') %} + + {% endif %} - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_EMAIL') }} + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_EMAIL') }} - {% if setting('core.account_country') %} - - - - - {% if errors.country is defined %} - - {% endif %} - {% endif %} + {% if setting('core.account_country') %} + + + + + {% if errors.country is defined %} + + {% endif %} + {% endif %} - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_COUNTRY') }} + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_COUNTRY') }} - - - - - + + + + + - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_PASSWORD') }} + {{ 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 %}
+ 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.
Please use real address!
We will send a link to validate your Email.
- Country: - - - -
{{ errors.country }}
+ Country: + + + +
{{ errors.country }}
- Password: - - - -
{% if errors.password is defined %}{{ errors.password }}{% endif %}
+ Password: + + + +
{% if errors.password is defined %}{{ errors.password }}{% endif %}
- Repeat password: - - - -
{% if errors.password is defined %}{{ errors.password }}{% endif %}
+ Repeat password: + + + +
{% if errors.password is defined %}{{ errors.password }}{% endif %}
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
- - + {% 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_BEFORE_CHARACTER_NAME') }} + {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_CHARACTER_NAME') }} - - - - - - - - + + + + + + + + - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_CHARACTER_NAME') }} + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_CHARACTER_NAME') }} - - - - - - - - + + + + + + + + - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_SEX') }} + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_SEX') }} - {% if config.character_samples|length > 1 %} - - - - - - - - - {% endif %} + {% if config.character_samples|length > 1 %} + + + + + + + + + {% endif %} - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_VOCATION') }} + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_VOCATION') }} - {% if config.character_towns|length > 1 %} - - - - - {% endif %} + {% if config.character_towns|length > 1 %} + + + + + {% endif %} - {{ hook('HOOK_ACCOUNT_CREATE_AFTER_TOWNS') }} + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_TOWNS') }} - -
- Character Name: - - - -
-
- {% if errors.name is defined %}{{ errors.name }}{% endif %} -
+ 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 %} -
+ 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 %} -
+ 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 %} -
-
+ Select your town: + + + + + + + +
+ {% for town_id in config.character_towns %} + + + + + {% endfor %} +
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + {% if errors.accept_rules is defined %} - + {% endif %} + +
Please select the following check box:
+ +
-
-
-
-
-
- - - - - - - - - {% if errors.accept_rules is defined %} - - - - {% endif %} - -
Please select the following check box:
- -
- {{ errors.accept_rules }} -
-
-
-
-
-
-
+
+ {{ errors.accept_rules }}
+
+
+
+
+
+
+
-
-
-
-
- {{ hook('HOOK_ACCOUNT_CREATE_BEFORE_SUBMIT_BUTTON') }} - - - + +
- - -
+
+{% endset %} +{% include 'tables.headline.html.twig' %} +
+{{ hook('HOOK_ACCOUNT_CREATE_BEFORE_SUBMIT_BUTTON') }} + + + - -
+ + + - -
+ + {{ csrf() }} {{ include('buttons.submit.html.twig') }} -
-
- + +
+ + + {{ hook('HOOK_ACCOUNT_CREATE_AFTER_FORM') }}