Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
socialbase-3458790
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
socialbase-3458790
Commits
7d6a86a3
Commit
7d6a86a3
authored
3 years ago
by
Ullrich Neiss
Committed by
Andrii Chyrskyi
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3229966
by slowflyer, Ressinel: Empty Card on User Login form
parent
6d83d842
No related branches found
Branches containing commit
Tags
1.0.0-beta10
8.x-1.0-beta10
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/form.inc
+8
-2
8 additions, 2 deletions
includes/form.inc
with
8 additions
and
2 deletions
includes/form.inc
+
8
−
2
View file @
7d6a86a3
...
...
@@ -435,7 +435,10 @@ function socialbase_form_alter(&$form, FormStateInterface $form_state, $form_id)
// Ensure the sign-up or login link is displayed as a nested card section.
// Bootstrap already converted the fieldset itself to a card.
if
(
$form_id
===
'social_user_login_form'
)
{
if
(
$form_id
===
'social_user_login_form'
&&
isset
(
$form
[
'username_login'
][
'sign-up-link'
])
)
{
$form
[
'username_login'
][
'sign-up-link'
][
'#prefix'
]
=
'<div class="card__nested-section">'
;
$form
[
'username_login'
][
'sign-up-link'
][
'#suffix'
]
=
'</div>'
;
}
...
...
@@ -443,7 +446,10 @@ function socialbase_form_alter(&$form, FormStateInterface $form_state, $form_id)
$form
[
'account'
][
'login-link'
][
'#prefix'
]
=
'<div class="card__nested-section">'
;
$form
[
'account'
][
'login-link'
][
'#suffix'
]
=
'</div>'
;
}
elseif
(
$form_id
===
'social_user_password_form'
)
{
elseif
(
$form_id
===
'social_user_password_form'
&&
isset
(
$form
[
'forgot'
][
'sign-up-link'
])
)
{
$form
[
'forgot'
][
'sign-up-link'
][
'#prefix'
]
=
'<div class="card__nested-section">'
;
$form
[
'forgot'
][
'sign-up-link'
][
'#suffix'
]
=
'</div>'
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment