Reviewed & tested by the community
Project:
Protected Pages
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2019 at 20:15 UTC
Updated:
16 Sep 2023 at 21:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
deaom commentedHi @ssamuel68, you can target the form with the CSS and style it that way. Or what did you had in mind?
Comment #3
thomas.frobieterIt would be very nice to have a Twig template file instead hard coded markup:
ProtectedPagesLoginForm.php
I would suggest something like:
Comment #4
deaom commentedThis is an attempt to achieve the desired behaviour, where twig is present for the login form. So now the description is separated from the form (enter password) in a twig named protected-pages-login. (Like in the example above)
Comment #5
thomas.frobieterLooks good, only the class "protected_pages_description" doesn't fit Drupals BEM standard => protected-pages__description
Comment #6
deaom commentedUpdated patch with the proposed BEM standard correction.
Comment #7
deaom commentedUpdated patch with the correct proposed BEM standard correction.
Comment #8
b-prod commentedThis patch simply uses the form #theme with the existing structure, and try to be backward compatible.
Comment #9
introfini commentedPatch #8 is working nicely, Thanks!
Comment #10
meri_atanasovska commentedPatch #7 and #8 working correctly, Thanks.
Comment #11
glynster commented+1 RTBC huge help for theming and very standard, please consider adding to the module.
Comment #12
glynster commented