Closed (fixed)
Project:
Webform
Version:
8.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2021 at 16:07 UTC
Updated:
26 Jun 2021 at 01:34 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
paulocsComment #4
jrockowitz commentedMake sense to add this feature. Thank you for creating the patch. This feature should also be for 8. x-5.x
Comment #5
paulocsI'll give another try...
Comment #6
paulocsA patch for 8.x-5.x.
Comment #7
jrockowitz commentedCan you please add 'webform_section_description_demo' example to webform.webform.test_element_section.yml and add some test coverage to \Drupal\Tests\webform\Functional\Element\WebformElementSectionTest? This will make it much easier to review the patch.
Comment #8
paulocsYes
Comment #9
paulocsSee if this is enough to cover the new feature.
I added text field element to the section elements to delimit if they are displayed after or before.
I also added a small change to the
webform-section.html.twigComment #10
jrockowitz commentedThe patch looks great. If all the tests pass, I think it is RTBC.
Changes include
Comment #12
jrockowitz commentedThere was a minor issue with the webform's YAML. Locally, I am did not have the PHP YAML extension installed and DrupalCI does.
Comment #13
paulocsThanks for the improvement @jrockowitz.
All changes in #12 make sense because the code is more organized than #9.
Attaching an image to confirm that the new feature is working.
Moving to RTBC.
Comment #14
paulocsHere is a patch for webform 6.x
Comment #15
jrockowitz commentedDon't worry about the 6.x patch. What I have been doing is commit the 8.x-5.x patch and then merge 8.x-5.x into 6.x. This makes it easier to maintain the two branches.
Comment #18
jrockowitz commented