2.3 KiB
2.3 KiB
Plan: Style Appreciation Review Pages to Match App Theme
Current State
The review pages (review_list.html and review_detail.html) use generic Tailwind classes without the custom CSS that the existing appreciation_list.html uses. This makes them visually inconsistent.
Target Design (from appreciation_list.html)
The existing appreciation page uses custom CSS classes:
.page-header-gradient— Navy gradient (#005696→#007bbd), white text, rounded-xl.section-card— White bg, 2px slate-200 border, rounded-xl, hover:border-navy, shadow.section-header— Gradient bg (#f8fafc→#f1f5f9), border-bottom, flex with icon.section-icon— 40px square, rounded-xl, colored bg (blue-100, green-100, etc.)- Typography —
text-xs font-bold uppercase tracking-widerfor labels,text-2xl font-black text-navyfor counts - Stats cards — 4-column grid with icon + label + value
Issues to Fix
Field Names (will cause errors)
Hospital.name_en→Hospital.nameStaff.name_en→Staff.nameAppreciationCategory.name_en— KEEP (this field exists)
review_list.html Changes
- Add
extra_cssblock with custom CSS classes matching appreciation_list.html - Header: Change emerald gradient → navy
.page-header-gradient - Add stats row: Show "Total Pending" count with icon
- Filter card: Use
.section-cardwith.section-header - Appreciation cards: Use
.section-cardinstead of raw Tailwind - Fix field names:
h.name_en→h.name,s.name_en→s.name
review_detail.html Changes
- Add
extra_cssblock with custom CSS classes - Header: Change emerald gradient → navy
.page-header-gradient - Patient Info card: Use
.section-cardwith.section-headerand.section-icon - Message card: Use
.section-card - Activation form card: Use
.section-cardwith.section-header - Fix field names:
appreciation.hospital.name_en→appreciation.hospital.name,s.name_en→s.name
Files to Edit
templates/appreciation/review_list.htmltemplates/appreciation/review_detail.html
No Schema Changes Needed
The AppreciationCategory model does have name_en, so those references stay. Only Hospital and Staff use name (not name_en).