Commit Graph

5 Commits

Author SHA1 Message Date
a32260dc87 feat(09-02): wrap form-facing strings and localize JS validation
- Wrap all room names and 90+ furniture item names in __()
- Wrap all additional work section labels and field names in __()
- Wrap all form renderer UI strings (headers, labels, buttons) in gettext
- Pass translated address field labels to render methods
- Wrap validation error messages in class-form-handler
- Force German locale for email generation via switch_to_locale()
- Restore locale after email with restore_previous_locale()
- Add wp_localize_script() for JS validation messages
- Update form.js to use umzugslisteL10n for translated strings
- Email generator remains untouched (hardcoded German as required)
- Email subject stays hardcoded German (not wrapped in gettext)
- All PHP files pass syntax check
- 163 gettext calls in furniture-data, 26 in form-renderer
2026-02-06 23:51:56 +09:00
8989d20a89 fix(08): add missing small-1 and small-8 grid column definitions
- checkbox_anzahl field type uses small-1/small-8/small-3 layout
- Only small-3 was defined, causing broken layout for those fields
2026-02-06 23:05:35 +09:00
d0edef9c00 feat(08-02): render additional work sections and Sonstiges in form
- Added render_additional_work_sections() method to loop through all sections
- Added render_additional_work_section() to render individual sections with correct field types
- Added render_sonstiges_field() for free text textarea
- Added get_field_key() helper to generate field keys from field names
- Field types: checkbox, abbau_aufbau (radio), checkbox_anzahl, text
- All fields use additional_work[section][key] naming pattern
- Added CSS styling for additional work sections and Sonstiges textarea

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 22:59:42 +09:00
363bf2f9fc feat(07-01): add error styling
- Red border and background for invalid fields
- Error message styling (red text)
- Validation summary box with red border
- Captcha widget margin spacing
- Consistent error color (#d32f2f)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 12:30:49 +09:00
78102c0ab4 feat(07-01): add inline form validation
- Client-side validation on blur and submit
- Email format validation
- Required field validation
- Furniture items validation (at least one)
- Date field validation
- Inline error messages (no JavaScript alerts)
- Auto-scroll to first error
- Error clearing on field input

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 12:30:26 +09:00