3.3 KiB
3.3 KiB
Simple Acknowledgement System - Implementation Summary
Overview
A simplified acknowledgement system for employees to sign required documents.
Features
- Checklist of Acknowledgements - Employees see a checklist of all acknowledgements they must sign
- Add Future Acknowledgements - Admins can add new acknowledgements anytime
- Employee & Employee ID - Employees sign with their name and employee ID
- Checkmark & PDF - Signed acknowledgements show checkmarks and have attached PDFs
Models
SimpleAcknowledgement
title- Acknowledgement titledescription- Detailed descriptionpdf_document- PDF document for employees to reviewis_active- Show in employee checklistis_required- Must be signed by all employeesorder- Display order
EmployeeAcknowledgement
employee- ForeignKey to Useracknowledgement- ForeignKey to SimpleAcknowledgementis_signed- Boolean flagsigned_at- Timestampsignature_name- Name used when signingsignature_employee_id- Employee ID when signingsigned_pdf- Generated PDF with signatureip_address- For audit trailuser_agent- For audit trail
URLs
Employee URLs
/accounts/simple-acknowledgements/my-acknowledgements/- Employee checklist/accounts/simple-acknowledgements/my-acknowledgements/sign/<uuid>/- Sign acknowledgement/accounts/simple-acknowledgements/my-acknowledgements/download/<uuid>/- Download signed PDF
Admin URLs
/accounts/simple-acknowledgements/admin/acknowledgements/- List all acknowledgements/accounts/simple-acknowledgements/admin/acknowledgements/new/- Create new acknowledgement/accounts/simple-acknowledgements/admin/acknowledgements/<uuid>/edit/- Edit acknowledgement/accounts/simple-acknowledgements/admin/acknowledgements/<uuid>/delete/- Delete acknowledgement/accounts/simple-acknowledgements/admin/acknowledgements/<uuid>/toggle/- Toggle active status/accounts/simple-acknowledgements/admin/signatures/- View all signatures/accounts/simple-acknowledgements/admin/signatures/employee/<uuid>/- View employee's signatures
Templates
All templates are in templates/accounts/simple_acknowledgements/:
employee_list.html- Employee checklist viewsign.html- Sign acknowledgement formadmin_list.html- Admin list viewadmin_form.html- Admin create/edit formadmin_signatures.html- Admin signatures view
Migration
Run the migration to create the new tables:
python manage.py migrate accounts
Usage
For Employees
- Navigate to
/accounts/simple-acknowledgements/my-acknowledgements/ - See list of pending and completed acknowledgements
- Click "Sign Now" to sign a pending acknowledgement
- Enter name and employee ID, then submit
- Download signed PDF if needed
For Admins
- Navigate to
/accounts/simple-acknowledgements/admin/acknowledgements/ - Click "New Acknowledgement" to create
- Fill in title, description, and optionally upload a PDF
- Set as active/required as needed
- View signatures in the admin signatures page
Navigation Link (Optional)
Add to your navigation menu:
<a href="{% url 'accounts:simple_acknowledgements:employee_list' %}">
My Acknowledgements
</a>
For PX Admins:
<a href="{% url 'accounts:simple_acknowledgements:admin_list' %}">
Manage Acknowledgements
</a>