You should keep the onion and leaves intact, and plant the bulb so that the top third is poking out of the ground.