{% extends 'layouts/base.html' %} {% block content %}

{{ 'Edit' if employee else 'Add' }} Employee Profile

Employee Information

{% if not employee %}
{% if existing_user %}{% endif %}
{% else %}
{% endif %}
{% set selected_role = request.form.get('role', employee.user_role if employee and employee.user_role else existing_user.role if existing_user else 'user') %}
{% set selected_external_access = request.form.get('external_access', 'no' if employee and employee.ip_restricted or existing_user and existing_user.ip_restricted else 'yes') %}
{% for f in ['qualification', 'office_timing', 'emergency_contact', 'bank_name', 'bank_account', 'ifsc_code'] %}
{% endfor %}
{% if employee and employee.photo_path %}View current photo{% endif %}
{% if employee and employee.aadhar_path %}View Aadhaar document{% endif %}
{% if employee and employee.pan_path %}View PAN document{% endif %}
{% if employee and employee.resume_path %}View resume{% endif %}
{% if employee and employee.document_path %}View document{% endif %}
{% for f in ['current_address', 'permanent_address', 'joining_checklist', 'leaving_checklist'] %}
{% endfor %} {% if employee %}
{% endif %}
Cancel
{% if employee %}

Employee Activity

{% for activity in activities %} {% else %} {% endfor %}
DateActivityDescriptionBy
{{ activity.created_at }} {{ activity.activity_type.replace('_', ' ').title() }} {{ activity.description or '-' }} {{ activity.user_name or '-' }}
No employee activity recorded.
{% endif %} {% endblock %}