On customization/translation of delete option for CRUD forms

35 views
Skip to first unread message

Alan Etkin

unread,
Oct 7, 2025, 6:40:08 PM (11 days ago) Oct 7
to py4web
Hi

I'm looking for an easy way of customizing the " check to delete" text of the CRUD modify form. I've tried using form.custom, but the label does not appear on the labels dict. I know I could just use form.custom in a custom template and use only the widgets without labels. What I'm trying is some means of translating the delete option label, in a similar way as using the label attribute of Field.

Regards

Alan

Massimo DiPierro

unread,
Oct 12, 2025, 12:40:06 PM (6 days ago) Oct 12
to py4web
You are right. There is no easy way to do it. Will add.

laundmo

unread,
Oct 15, 2025, 8:53:12 AM (4 days ago) Oct 15
to py4web
When/If my widgets refactor is merged back, the delete checkbox could be handled as a Widget I think, by treating it as a Field, just one which doesn't come from the form itself but is created ad-hoc by the FormStyleFactory.

I also just posted: https://groups.google.com/g/py4web/c/b3uwN7G3aUI which proposes a refactor for the layer above widgets, namely how Forms handle the list of fields, which could, if implemented, make this even nicer by having a default delete FormInput instance.
Reply all
Reply to author
Forward
0 new messages