{% extends 'base.html' %} {% load i18n %} {% block title %} {% if title %}{{ title }} | {% endif %}{% trans "Source" %} | {% trans "Recruitment System" %} {% endblock %} {% block content %}
{% if title %}{{ title }}{% else %}{% trans "Create New Source" %}{% endif %}
{% csrf_token %} {% if form.errors %}
{% trans "Please correct the errors below:" %}
{% for field in form %} {% if field.errors %}

{{ field.label }}: {{ field.errors|join:", " }}

{% endif %} {% endfor %}
{% endif %} {% if messages %} {% for message in messages %} {% endfor %} {% endif %}
{% trans "Basic Information" %}
{{ form.name.label_tag }} {{ form.name }} {% if form.name.help_text %} {{ form.name.help_text }} {% endif %} {% if form.name.errors %}
{{ form.name.errors }}
{% endif %}
{{ form.source_type.label_tag }} {{ form.source_type }} {% if form.source_type.help_text %} {{ form.source_type.help_text }} {% endif %} {% if form.source_type.errors %}
{{ form.source_type.errors }}
{% endif %}
{{ form.description.label_tag }} {{ form.description }} {% if form.description.help_text %} {{ form.description.help_text }} {% endif %} {% if form.description.errors %}
{{ form.description.errors }}
{% endif %}
{% trans "Network Configuration" %}
{{ form.ip_address.label_tag }} {{ form.ip_address }} {% if form.ip_address.help_text %} {{ form.ip_address.help_text }} {% endif %} {% if form.ip_address.errors %}
{{ form.ip_address.errors }}
{% endif %}
{{ form.trusted_ips.label_tag }} {{ form.trusted_ips }} {% if form.trusted_ips.help_text %} {{ form.trusted_ips.help_text }} {% endif %} {% if form.trusted_ips.errors %}
{{ form.trusted_ips.errors }}
{% endif %}
{% trans "Settings" %}
{{ form.integration_version.label_tag }} {{ form.integration_version }} {% if form.integration_version.help_text %} {{ form.integration_version.help_text }} {% endif %} {% if form.integration_version.errors %}
{{ form.integration_version.errors }}
{% endif %}
{{ form.is_active }} {{ form.is_active.label_tag }}
{% if form.is_active.help_text %} {{ form.is_active.help_text }} {% endif %}
{% trans "API Configuration" %}
{% trans "API Keys" %}
{% trans "Generate secure API keys for external integrations" %}
{{ form.generate_keys }} {{ form.generate_keys.label_tag }}
{{ form.api_key_generated }}
{% if form.api_key_generated.errors %}
{{ form.api_key_generated.errors }}
{% endif %}
{{ form.api_secret_generated }}
{% if form.api_secret_generated.errors %}
{{ form.api_secret_generated.errors }}
{% endif %}

{% trans "Cancel" %}
{% endblock %} {% block customJS %} {% endblock %}