{% extends "base.html" %} {% load static i18n %} {% block title %}Create New Job Post - {{ block.super }}{% endblock %} {% block customCSS %} {# 💡 1. Add Summernote CSS Media in the head #} {{ form.media.css }} {% endblock %} {% block content %}

{% if form.instance.pk %} {% trans "Edit Job Posting" %} {% else %} {% trans "Create New Job Posting" %} {% endif %}

{% csrf_token %} {# ================================================= #} {# SECTION 1: CORE POSITION DETAILS #} {# ================================================= #}
{% trans "Core Position Details" %}
{{ form.title }} {% if form.title.errors %}
{{ form.title.errors }}
{% endif %}
{{ form.job_type }} {% if form.job_type.errors %}
{{ form.job_type.errors }}
{% endif %}
{{ form.department }} {% if form.department.errors %}
{{ form.department.errors }}
{% endif %}
{{ form.workplace_type }} {% if form.workplace_type.errors %}
{{ form.workplace_type.errors }}
{% endif %}
{# ================================================= #} {# SECTION 2: JOB CONTENT (All Summernote Fields) #} {# ================================================= #}
{% trans "Job Content" %}
{{ form.description}} {% if form.description.errors %}
{{ form.description.errors }}
{% endif %}
{{ form.qualifications}} {% if form.qualifications.errors %}
{{ form.qualifications.errors }}
{% endif %}
{# ================================================= #} {# SECTION 3: COMPENSATION AND APPLICATION #} {# ================================================= #}
{% trans "Compensation & Application" %}
{{ form.salary_range }} {% if form.salary_range.errors %}
{{ form.salary_range.errors }}
{% endif %}
{% comment %}
{{ form.application_url }} {% if form.application_url.errors %}
{{ form.application_url.errors }}
{% endif %}
{% trans "Full URL where candidates will apply" %}
{% endcomment %}
{{ form.benefits }} {% if form.benefits.errors %}
{{ form.benefits.errors }}
{% endif %}
{{ form.application_instructions }} {% if form.application_instructions.errors %}
{{ form.application_instructions.errors }}
{% endif %}
{# ================================================= #} {# SECTION 4: LOCATION AND DATES #} {# ================================================= #}
{% trans "Location, Dates, & Status" %}
{{ form.location_city }} {% if form.location_city.errors %}
{{ form.location_city.errors }}
{% endif %}
{{ form.location_state }} {% if form.location_state.errors %}
{{ form.location_state.errors }}
{% endif %}
{{ form.location_country }} {% if form.location_country.errors %}
{{ form.location_country.errors }}
{% endif %}
{{ form.application_deadline }} {% if form.application_deadline.errors %}
{{ form.application_deadline.errors }}
{% endif %}
{{ form.start_date }} {% if form.start_date.errors %}
{{ form.start_date.errors }}
{% endif %}
{{ form.status }} {% if form.status.errors %}
{{ form.status.errors }}
{% endif %}
{# ================================================= #} {# SECTION 5: INTERNAL AND PROMOTION #} {# ================================================= #}
{% trans "Internal & Promotion" %}
{{ form.position_number }} {% if form.position_number.errors %}
{{ form.position_number.errors }}
{% endif %}
{{ form.reporting_to }} {% if form.reporting_to.errors %}
{{ form.reporting_to.errors }}
{% endif %}
{{ form.open_positions }} {% if form.open_positions.errors %}
{{ form.open_positions.errors }}
{% endif %}
{{ form.created_by }} {% if form.created_by.errors %}
{{ form.created_by.errors }}
{% endif %}
{{ form.hash_tags }} {% if form.hash_tags.errors %}
{{ form.hash_tags.errors }}
{% endif %}
{% trans "Comma-separated list of hashtags, e.g., #hiring, #professor" %}
{# ================================================= #} {# ACTION BUTTONS #} {# ================================================= #}
{% trans "Cancel" %}
{# 💡 2. Add Summernote JS Media at the end of the body #} {{ form.media.js }} {% endblock %}