Email Opt Out On Custom Forms / Pages

Hello

I've created a page that has an email submission box. I need to add the email opt in/out box. How do I do this? The only locations I can see are [url=https://postimg.org/image/qijpb8qud/][/url]


I need add to this page

http://www.digitalsave.co.uk/easter-egg-hunt-signup.html

Suggest you look at the html generated on the checkout page and copy it into your new block/page. You might have to add a controller to handle it since the only pre controllers are for profiles and checkout. I.e. you would add a my_changes.pre.php and look for the form field.