When you create a new detention it will give you the option to either 'Create detention' or 'Create detention & print slip'. Choose the latter to create a printable detention slip.
To create a detention slip from the detentions tab, click on a pupil's card to begin.
Clicking this card will bring out the detention sidebar. Click the printer icon in the top right hand corner of the sidebar to print.