{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% if form.instance.pk %}{% trans "Edit Staff" %}{% else %}{% trans "Add New Staff" %}{% endif %} - PX360{% endblock %} {% block content %}
{% csrf_token %}
{% trans "Personal Information" %}
{{ form.first_name }} {% if form.first_name.errors %}
{{ form.first_name.errors.0 }}
{% endif %}
{{ form.last_name }} {% if form.last_name.errors %}
{{ form.last_name.errors.0 }}
{% endif %}
{{ form.first_name_ar }}
{{ form.last_name_ar }}
{% trans "Role Information" %}
{{ form.staff_type }} {% if form.staff_type.errors %}
{{ form.staff_type.errors.0 }}
{% endif %}
{{ form.job_title }} {% if form.job_title.errors %}
{{ form.job_title.errors.0 }}
{% endif %}
{% trans "Professional Information" %}
{{ form.employee_id }} {% if form.employee_id.errors %}
{{ form.employee_id.errors.0 }}
{% endif %}
{{ form.email }} {% if form.email.errors %}
{{ form.email.errors.0 }}
{% endif %} {% trans "Required for creating a user account" %}
{% if form.license_number %}
{{ form.license_number }} {% if form.license_number.errors %}
{{ form.license_number.errors.0 }}
{% endif %}
{% endif %} {% if form.specialization %}
{{ form.specialization }} {% if form.specialization.errors %}
{{ form.specialization.errors.0 }}
{% endif %}
{% endif %}
{% trans "Organization" %}
{{ form.hospital }} {% if form.hospital.errors %}
{{ form.hospital.errors.0 }}
{% endif %}
{{ form.department }} {% if form.department.errors %}
{{ form.department.errors.0 }}
{% endif %}
{% trans "Status" %}
{{ form.status }} {% if form.status.errors %}
{{ form.status.errors.0 }}
{% endif %}
{% if not form.instance.user %}
{% trans "Create User Account" %}

{% trans "Check this box to automatically create a user account for this staff member. A username will be generated and credentials will be emailed to the staff member." %}

{% trans "The staff member must have an email address 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 %} {% block extra_css %} {% endblock %}