2.2 KiB
2.2 KiB
Daily progress — 2026-04-08
Policy Terms UI (policy type 72) — other_policy_terms.php
- Reworked Sum Insured row: label column alignment,
input-groupwith 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_countmoved to hidden input; sync on dropdown change and init.- Fixed invalid form HTML (form closing order).
- AJAX: load
is_payable_employeefrom saved terms; fix children count0not applying to dropdown; defaultfamily_floaters_othersto None when no parent rule matches. - Added
initPolicy72FamilyFloaterUi,syncPolicy72ElderMemberCount,togglePolicy72OtherMembersAgeRowand 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: contentson 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-openinstead of jQuery.show()/.hide()so grid placement stays correct. - Narrow viewports: horizontal scroll on
.policy-72-family-gridwithmin-widthon the grid to preserve alignment.
Backend — ClientController.php
- Policy type 72:
is_payable_employeenow 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/asYYYY-MM-DD.md(append same file for the calendar day; do not create duplicate dated files).