feat(03-01): add job submission form to provider dashboard

- 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>
This commit is contained in:
2026-01-14 19:41:28 +09:00
parent 650c7b05cd
commit 600e355c8d

View File

@@ -40,6 +40,19 @@ $job_query = new WP_Query( $args );
?>
<div class="ddhh-provider-dashboard">
<div class="ddhh-job-submit-section">
<h2>Neues Stellenangebot erstellen</h2>
<?php
$form_id = DDHH_JM_Formidable::get_job_submission_form_id();
if ( $form_id ) {
echo do_shortcode( "[formidable id={$form_id}]" );
} else {
echo '<p>Formular konnte nicht geladen werden.</p>';
}
?>
</div>
<div class="ddhh-job-listings-section">
<h2>Meine Stellenangebote</h2>
<?php if ( $job_query->have_posts() ) : ?>
@@ -102,6 +115,7 @@ $job_query = new WP_Query( $args );
<?php endif; ?>
<?php wp_reset_postdata(); ?>
</div>
</div>
<style>
@@ -111,6 +125,24 @@ $job_query = new WP_Query( $args );
padding: 0 1rem;
}
.ddhh-job-submit-section {
margin-bottom: 3rem;
padding: 2rem;
background: #f5f5f5;
border-radius: 8px;
}
.ddhh-job-submit-section h2 {
margin-top: 0;
margin-bottom: 1.5rem;
font-size: 1.5rem;
color: #333;
}
.ddhh-job-listings-section {
margin-top: 3rem;
}
.ddhh-provider-dashboard h2 {
margin-bottom: 1.5rem;
font-size: 2rem;