8 Commits

Author SHA1 Message Date
da0ca4ee19 Fix hospital fields in forms - Add HospitalFieldMixin and update templates
PHASE 1: Add HospitalFieldMixin to forms without it
- apps/complaints/forms.py: SLAConfigForm, EscalationRuleForm
- apps/feedback/forms.py: FeedbackForm
- apps/rca/forms.py: RootCauseAnalysisForm

PHASE 2: Update templates to conditionally hide hospital field labels
- templates/complaints/complaint_form.html
- templates/complaints/inquiry_form.html
- templates/complaints/complaint_threshold_form.html
- templates/complaints/escalation_rule_form.html
- templates/feedback/feedback_form.html

PHASE 3: Remove redundant manual hospital filtering code
- Removed manual __init__ hospital logic from forms now using mixin

Behavior:
- PX Admin: Sees hospital dropdown (can select any hospital)
- Hospital Admin/Staff: Hospital field hidden, auto-set to their hospital
- Cleaner code: Mixin handles all role-based filtering automatically
2026-03-11 01:19:41 +03:00
b3d9bd17cb more changes 2026-02-25 04:47:05 +03:00
dcb6455819 update the complaint and inquiry creation for the source user 2026-01-24 15:13:14 +03:00
4dd3c3e505 standards app done 2026-01-24 15:07:27 +03:00
8b65f9a52e update the complaint and inquiry creation for the source user 2026-01-15 15:07:32 +03:00
90dd2a66af standards app done 2026-01-15 15:02:42 +03:00
Marwan Alwali
14f2ff46c0 update-po-file 2026-01-05 17:49:34 +03:00
Marwan Alwali
2179fbf39a update 2025-12-31 13:16:30 +03:00