Improved JavaScript to use case-insensitive matching for select fields, so 'vollzeit' matches 'Vollzeit'. Also normalized all job_type values to lowercase when saving to ensure consistency.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Adds comprehensive job submission, editing, and deactivation functionality with proper form handling and permissions. Includes administrator capabilities for job_offer management and fixed dashboard navigation.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add deactivate mode detection alongside existing edit mode checking for action=deactivate_job and job_id parameter. When in deactivate mode, render deactivation form section similar to edit section structure with heading "Stellenangebot deaktivieren", back link to dashboard, and form shortcode with id_param={job_id}. In job listings table, add "Deaktivieren" button in Actions column only for published jobs (status === 'publish'). Deactivate button uses warning/destructive color (red background) to differentiate from edit/view buttons. Follow same conditional rendering pattern as edit mode showing deactivation form OR listings, not both.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add edit mode detection via URL parameters (action=edit_job&job_id=X)
- Display edit form when in edit mode, hide listings table
- Update edit links in table to point to dashboard edit form
- Add back navigation link to return to dashboard overview
- Style edit section with card layout and back link
- Form pre-populates with existing job data via id_param
- Dashboard shows either edit form OR listings, not both
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add job submission form section above job listings table
- Display form using Formidable shortcode with graceful fallback
- Add visual separation styling for form section (gray background, padding, border-radius)
- Wrap job listings in separate section for better organization
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Created templates/provider-dashboard.php with:
- User role check (ddhh_provider)
- WP_Query for current user's job_offer posts
- Table display with German column headings
- Status badges (Veröffentlicht/Ausstehend/Entwurf)
- Edit and View action links
- Empty state message
- Responsive CSS styling
- Created includes/class-dashboard.php with:
- Template loader method
- Shortcode registration [ddhh_provider_dashboard]
- Output buffering for shortcode content
Dashboard queries only current user's posts with proper capability checking.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>