28 lines
2.2 KiB
Markdown
28 lines
2.2 KiB
Markdown
# Daily progress — 2026-04-08
|
|
|
|
## Policy Terms UI (policy type 72) — `other_policy_terms.php`
|
|
|
|
- Reworked Sum Insured row: label column alignment, `input-group` with teal **+** button, amount-in-words as small italic muted text.
|
|
- Reworked Family Floater section: removed light-cyan panel; indented member grid under the value column to match target layout.
|
|
- Added column layout with **Min Age:** / **Max Age:** underline inputs and **Is Payable by employee:** checkboxes for Self, Spouse, Children; elders row when “Other Members” is not None.
|
|
- Renamed Other Members block to **Select Other Members:** with full-width dropdown; elder min/max ages and elder payable checkbox shown only when a non-None option is selected.
|
|
- `elder_member_count` moved to hidden input; sync on dropdown change and init.
|
|
- Fixed invalid form HTML (form closing order).
|
|
- AJAX: load `is_payable_employee` from saved terms; fix children count `0` not applying to dropdown; default `family_floaters_others` to None when no parent rule matches.
|
|
- Added `initPolicy72FamilyFloaterUi`, `syncPolicy72ElderMemberCount`, `togglePolicy72OtherMembersAgeRow` and delegated change handler.
|
|
|
|
## Alignment fix (reference: `public/img/Pasted image.png`)
|
|
|
|
- Replaced flex “rows” with a single **CSS Grid** (`.policy-72-ff-grid`): fixed-width column 1 (`248px`) for Self/Spouse/Children controls so **Min Age** / **Max Age** / **Is Payable** line up vertically across rows.
|
|
- **Other members** age row uses a **spacer cell** in column 1 plus `display: contents` on the wrapper when visible, so elder Min/Max/Payable align with the same columns as above (no longer shifted left).
|
|
- Toggle for that row now uses class **`policy-72-other-ages-open`** instead of jQuery `.show()/.hide()` so grid placement stays correct.
|
|
- Narrow viewports: horizontal scroll on `.policy-72-family-grid` with `min-width` on the grid to preserve alignment.
|
|
|
|
## Backend — `ClientController.php`
|
|
|
|
- Policy type 72: `is_payable_employee` now read from POST checkboxes (`is_payable_employee_for_self`, `_spouse`, `_child`, `_elders`) instead of hardcoded zeros.
|
|
|
|
## Process / repo hygiene
|
|
|
|
- Established daily progress log in `public/` as `YYYY-MM-DD.md` (append same file for the calendar day; do not create duplicate dated files).
|