Scaffold generates wrong html for destroy (it doesn't work without javascript)

Related to Issue #12238