Loading
Issue #3635657: One 'Add season' link below the seasons, no empty 'New season'
Generated with AI.
- The season widget no longer adds an empty 'New season'; a season is added by one 'Add season' link below all seasons, instead of an 'Add season' operation in every season header.
- Every season header keeps 'Delete season', a new season included.
- After 'Add season' the new season is open and focused; the others collapse. The focus target is a data-office-hours-season-new attribute, since FormBuilder overwrites data-drupal-selector.
- The season wrapper carries data-office-hours-field-name, which the JavaScript reads to keep seasons open when one is deleted.
- OfficeHoursSeasonWidgetFunctionalJavascriptTest: give the user 'edit any office_hours_test content' (it got Access denied before), test the behavior above, and set date inputs by script, since typing into one follows the browser's locale.
Closes #3635657