MDL-35220 Blocks: Rewrite of the activity_display method using form code