From 7b9b723da97a9220cffee31f072cb0ce22b8201d Mon Sep 17 00:00:00 2001 From: ZAZiOs <85897688+ZAZiOs@users.noreply.github.com> Date: Wed, 23 Nov 2022 22:22:03 +0300 Subject: [PATCH] Fixes requested by celestora --- .../Auth/FinishRestoringPassword.xml | 57 +++++++++---- Web/Presenters/templates/Auth/Login.xml | 27 +++--- .../templates/Auth/LoginSecondFactor.xml | 29 ++++--- Web/Presenters/templates/Auth/Register.xml | 83 +++++++++++-------- Web/Presenters/templates/Auth/Restore.xml | 41 ++++++--- Web/static/css/style.css | 9 ++ 6 files changed, 159 insertions(+), 87 deletions(-) diff --git a/Web/Presenters/templates/Auth/FinishRestoringPassword.xml b/Web/Presenters/templates/Auth/FinishRestoringPassword.xml index 7752c3d0..bac6ef39 100644 --- a/Web/Presenters/templates/Auth/FinishRestoringPassword.xml +++ b/Web/Presenters/templates/Auth/FinishRestoringPassword.xml @@ -9,21 +9,48 @@ {/block} {block content} -

- {_access_recovery_info_2} -

- +

{_access_recovery}

+ + + + + + +
+ {_access_recovery_info_2} +
+
- - -

- {if $is2faEnabled} - - -

- {/if} - - - + + + + + + + {if $is2faEnabled} + + + + + {/if} + + + + +
+ {_new_password}: + + +
+ {_"2fa_code_2"}: + + +
+ +
+
+ + +
{/block} diff --git a/Web/Presenters/templates/Auth/Login.xml b/Web/Presenters/templates/Auth/Login.xml index b8fd4f6c..82d73588 100644 --- a/Web/Presenters/templates/Auth/Login.xml +++ b/Web/Presenters/templates/Auth/Login.xml @@ -8,13 +8,13 @@ {block content}

{_log_in}

- +
- @@ -26,20 +26,17 @@ - - - -
{_email}: +
- - -
- - - {_registration}

- {_forgot_password} -
-
+
+ + + + {_registration}

+ {_forgot_password} +
{/block} diff --git a/Web/Presenters/templates/Auth/LoginSecondFactor.xml b/Web/Presenters/templates/Auth/LoginSecondFactor.xml index 33b68fac..a1ba1ede 100644 --- a/Web/Presenters/templates/Auth/LoginSecondFactor.xml +++ b/Web/Presenters/templates/Auth/LoginSecondFactor.xml @@ -6,16 +6,23 @@ {/block} {block content} -

- {_two_factor_authentication_login} -

+

{_two_factor_authentication}

+ + + + + + +
+ {_two_factor_authentication_login} +
- + -
- {_code}: + {_code}: @@ -25,14 +32,14 @@ - - - - -
+
+ + + + +
{/block} diff --git a/Web/Presenters/templates/Auth/Register.xml b/Web/Presenters/templates/Auth/Register.xml index 1dcd0041..52a88d22 100644 --- a/Web/Presenters/templates/Auth/Register.xml +++ b/Web/Presenters/templates/Auth/Register.xml @@ -32,7 +32,7 @@ {php echo OPENVK_ROOT_CONF['openvk']['appearance']['name']} {_registration_welcome_1}
- {_registration_welcome_2} + {_registration_welcome_2} @@ -41,59 +41,59 @@ -

{_main}

- +

{_main}

+ - - - - - - - -
+ {_name}: +
+ {_surname}: +
+ {_email}: +
+ {_password}: +
- -

{_other_fields}

- + +

{_other_fields}

+ - - - - + - - - -
+ {_birth_date}: +
+
{_gender}: + {var $femalePreferred = OPENVK_ROOT_CONF["openvk"]["preferences"]["femaleGenderPriority"]}
+ CAPTCHA: + {captcha_template()|noescape}
-
- - {_checkbox_in_registration|noescape} -

-

+ +
+ + {_checkbox_in_registration|noescape} +

+

{else} -
- {_registration_closed} -

- {_registration_disabled_info} - {if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']} -

{php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']} - {/if} -

-
+

{_registration_closed}

+ + + + + + + +
+ {_registration_closed} + + {_registration_disabled_info} + {if OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']} +
+
+ {_admin_banned_link_reason}: +
+ {php echo OPENVK_ROOT_CONF['openvk']['preferences']['registration']['reason']} + {/if} +
{/if} {/block} diff --git a/Web/Presenters/templates/Auth/Restore.xml b/Web/Presenters/templates/Auth/Restore.xml index 81d9cf41..ac3a9730 100644 --- a/Web/Presenters/templates/Auth/Restore.xml +++ b/Web/Presenters/templates/Auth/Restore.xml @@ -9,16 +9,37 @@ {/block} {block content} -

- {_access_recovery_info} -

- +

{_access_recovery}

+ + + + + + +
+ {_access_recovery_info} +
+
- - -

- - - + + + + + + + + + + +
+ {_email}: + + +
+
+
+ + +
{/block} diff --git a/Web/static/css/style.css b/Web/static/css/style.css index dc024539..adede2b2 100644 --- a/Web/static/css/style.css +++ b/Web/static/css/style.css @@ -2162,3 +2162,12 @@ a.poll-retract-vote { opacity: 1; } } + +.regform-left{ + text-align: right; + min-width: 110px; +} + +.regform-right{ + min-width: 200px; +} \ No newline at end of file