FRS 17 only deals with retirement benefits.
FRS 20 (equivalent to IFRS 2) applies to share-based payments.
There is no specific guidance under UK GAAP for other employee benefits, which are generally accounted for in a manner similar to other operating expenses i.e., on an accruals basis.