Generate block edit form