From 876591fdabbf085c5f7937a419f6aa08a2eeb893 Mon Sep 17 00:00:00 2001 From: Jan Cernik <66427541+jancernik@users.noreply.github.com> Date: Fri, 15 Nov 2024 18:17:55 -0300 Subject: [PATCH] FIX: Signup fields tab order and descriptions (#29772) --- .../app/components/fullname-input.gjs | 33 +++++++++++++ .../app/components/modal/create-account.hbs | 48 ++++++++----------- .../app/components/modal/create-account.js | 9 ++-- .../discourse/app/controllers/invites-show.js | 17 +++++-- .../discourse/app/controllers/signup.js | 9 ++-- .../discourse/app/templates/invites/show.hbs | 47 +++++++++--------- .../discourse/app/templates/signup.hbs | 48 ++++++++----------- .../common/base/login-signup-page.scss | 17 ------- .../stylesheets/common/modal/login-modal.scss | 16 ------- 9 files changed, 125 insertions(+), 119 deletions(-) create mode 100644 app/assets/javascripts/discourse/app/components/fullname-input.gjs diff --git a/app/assets/javascripts/discourse/app/components/fullname-input.gjs b/app/assets/javascripts/discourse/app/components/fullname-input.gjs new file mode 100644 index 00000000000..471c1e14294 --- /dev/null +++ b/app/assets/javascripts/discourse/app/components/fullname-input.gjs @@ -0,0 +1,33 @@ +import Component from "@glimmer/component"; +import { on } from "@ember/modifier"; +import InputTip from "discourse/components/input-tip"; +import TextField from "discourse/components/text-field"; +import valueEntered from "discourse/helpers/value-entered"; + +export default class SidebarEditNavigationMenuTagsModal extends Component { + get showFullname() { + return ( + this.siteSettings.full_name_required || this.siteSettings.enable_names + ); + } + + +} diff --git a/app/assets/javascripts/discourse/app/components/modal/create-account.hbs b/app/assets/javascripts/discourse/app/components/modal/create-account.hbs index 8a9593045bf..1e45eb1bf86 100644 --- a/app/assets/javascripts/discourse/app/components/modal/create-account.hbs +++ b/app/assets/javascripts/discourse/app/components/modal/create-account.hbs @@ -95,6 +95,17 @@ /> + {{#if this.fullnameRequired}} + + {{/if}} + -
- {{#if this.fullnameRequired}} - - - - - {{/if}} -
+ {{#if (and this.showFullname (not this.fullnameRequired))}} +