(Minor plug)
SAGE-AU set up the Open Source Developers' Agreement Initiative. They have a set of documents about this:
These are publicly available, and includes suitable agreements for most common circumstances. There is also an FAQ for employers.
Using these will help prevent code that you develop for the F/LOSS world being accidentally claimable by your employer.