Hello toby0501:
First of all thanks for contributing.
Just a brief note. Editing /usr/share/zentyal/<module>/<stub_file> is not the best idea.
Why? Because in any such module upgrade, you or whoever did this would lose changes to this template.
Instead, create /etc/zentyal/stubs/<module>, copy the stub_file to such folder and do the edit there. Zentyal will look first at this location if exists, and will never change anything here