From 431bb05d8fc89c226240806bf6675b9c3b349327 Mon Sep 17 00:00:00 2001 From: Henning <leutz@pcsg.de> Date: Mon, 31 Mar 2025 14:15:00 +0200 Subject: [PATCH] refactor: update registration css and html Update `Registration.css` and `Registration.html` to enhance UI design. Added a new css class `.quiqqer-frontendUsers-controls-registrars-list` with properties for flex display, direction, gap, and width. This class was applied in `Registration.html` to improve the layout of `registrars` section. Also, removed an unnecessary line in `Registration.php`. --- bin/frontend/controls/Registration.css | 7 +++++++ src/QUI/FrontendUsers/Controls/Registration.css | 0 src/QUI/FrontendUsers/Controls/Registration.html | 2 ++ src/QUI/FrontendUsers/Controls/Registration.php | 2 -- 4 files changed, 9 insertions(+), 2 deletions(-) delete mode 100644 src/QUI/FrontendUsers/Controls/Registration.css diff --git a/bin/frontend/controls/Registration.css b/bin/frontend/controls/Registration.css index d88819b..46abd40 100644 --- a/bin/frontend/controls/Registration.css +++ b/bin/frontend/controls/Registration.css @@ -34,6 +34,13 @@ top: -15px; } +.quiqqer-frontendUsers-controls-registrars-list { + display: flex; + flex-direction: column; + gap: 0.5rem; + width: 100%; +} + .quiqqer-frontendUsers-controls-registration .quiqqer-frontend-social-button { width: 100%; } diff --git a/src/QUI/FrontendUsers/Controls/Registration.css b/src/QUI/FrontendUsers/Controls/Registration.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/QUI/FrontendUsers/Controls/Registration.html b/src/QUI/FrontendUsers/Controls/Registration.html index 04f0b87..9ed8307 100644 --- a/src/QUI/FrontendUsers/Controls/Registration.html +++ b/src/QUI/FrontendUsers/Controls/Registration.html @@ -94,6 +94,7 @@ </div> {/if} + <div class="quiqqer-frontendUsers-controls-registrars-list"> {foreach $registrars as $registrar} <form action="" method="POST" @@ -113,6 +114,7 @@ <input type="hidden" name="registration_id" value="{$registrationId}"/> </form> {/foreach} + </div> {if $termsOfUseRequired} <div class="quiqqer-frontendUsers-controls-registration-termsOfUse" diff --git a/src/QUI/FrontendUsers/Controls/Registration.php b/src/QUI/FrontendUsers/Controls/Registration.php index fa7d69d..f5c0a88 100644 --- a/src/QUI/FrontendUsers/Controls/Registration.php +++ b/src/QUI/FrontendUsers/Controls/Registration.php @@ -70,9 +70,7 @@ public function __construct(array $attributes = []) ]); $this->setAttributes($attributes); - $this->setJavaScriptControlOption('registrars', json_encode($this->getAttribute('registrars'))); - $this->addCSSFile(dirname(__FILE__) . '/Registration.css'); $this->id = QUI\FrontendUsers\Handler::getInstance()->createRegistrationId(); $this->isAsync = $this->getAttribute('async'); -- GitLab