-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: allow attributes for <fieldset> wrapper #253
Feature: allow attributes for <fieldset> wrapper #253
Conversation
src/View/Helper/FormRow.php
Outdated
$markup = sprintf( | ||
'<fieldset><legend>%s</legend>%s</fieldset>', | ||
'<fieldset%s><legend%s>%s</legend>%s</fieldset>', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that the markup (fieldset
and legend
) is still hard-coded. The idea was therefore to use the wrapper functionality from the FormCollection
helper and extend it. This would allow the same handling between the different helpers.
The legend_attributes
option which is introduced here also specifies that it is always a legend
element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition, I ask myself if the handling is not too cumbersome for the user, because the same options would have to be set for each MultiCheckbox or Radio element every time. 🤔
(Related to #62 (comment))
Signed-off-by: Thomas Müller <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
Reducing the complexity of view helpers
Signed-off-by: George Steel <[email protected]>
… exception. Signed-off-by: George Steel <[email protected]>
Signed-off-by: George Steel <[email protected]>
Signed-off-by: George Steel <[email protected]>
…ed the same as a string literal Signed-off-by: George Steel <[email protected]>
Improve type inference for FormElementManager::get()
Signed-off-by: Aleksei Khudiakov <[email protected]>
Signed-off-by: George Steel <[email protected]>
String is the correct argument type, but it is not possible to implement in the 3.x series Signed-off-by: George Steel <[email protected]>
Add failing test case for integer element labels
…LtZO Merge release 3.19.1 into 3.20.x
Signed-off-by: Thomas Müller <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
Description
With this PR Attributes will be allowed an the fieldset wrapper for radio- oder multicheckbox-Elements. This PR is related to Issue #62.