{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% if form.instance.pk %}{% trans "Edit Staff" %}{% else %}{% trans "Add New Staff" %}{% endif %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% trans "Back" %}
{% trans "Staff" %} {% if form.instance.pk %}{% trans "Edit Staff" %}{% else %}{% trans "Add New Staff" %}{% endif %}

{% if form.instance.pk %}{% trans "Edit Staff" %}{% else %}{% trans "Add New Staff" %}{% endif %}

{% csrf_token %}

{% trans "Personal Information" %}

{% if form.first_name.errors %}
{{ form.first_name.errors.0 }}
{% endif %}
{% if form.last_name.errors %}
{{ form.last_name.errors.0 }}
{% endif %}

{% trans "Role Information" %}

{% if form.staff_type.errors %}
{{ form.staff_type.errors.0 }}
{% endif %}
{% if form.job_title.errors %}
{{ form.job_title.errors.0 }}
{% endif %}

{% trans "Professional Information" %}

{% if form.employee_id.errors %}
{{ form.employee_id.errors.0 }}
{% endif %}
{% if form.email.errors %}
{{ form.email.errors.0 }}
{% endif %}

{% trans "Required for user account creation" %}

{% if form.license_number %}
{% if form.license_number.errors %}
{{ form.license_number.errors.0 }}
{% endif %}
{% endif %} {% if form.specialization %}
{% if form.specialization.errors %}
{{ form.specialization.errors.0 }}
{% endif %}
{% endif %}

{% trans "Organization" %}

{% if form.hospital.errors %}
{{ form.hospital.errors.0 }}
{% endif %}
{% if form.department.errors %}
{{ form.department.errors.0 }}
{% endif %}

{% trans "Status" %}

{% if form.status.errors %}
{{ form.status.errors.0 }}
{% endif %}

{% trans "Mark as head of department" %}

{% trans "Cancel" %}
{% if not form.instance.pk or not form.instance.user %}

{% trans "User Account" %}

{% trans "Automatically create a login account. Credentials will be emailed to the staff member." %}

{% trans "Email address is required to create a user account." %}

{% endif %}

{% trans "Tips" %}

  • {% trans "All fields marked with * are required" %}
  • {% trans "Employee ID must be unique" %}
  • {% trans "Email is required for user account creation" %}
  • {% trans "License number is required for physicians" %}
{% endblock %}