The transaction type is pulling information from the source code, not the form itself. If someone accesses the donation form directly their donation will show up as "donation", indicating that it is a general donation. If someone accesses that same donation form by going to a participant's page in the TeamRaiser and donating to their page (or to a team page) then the donation will show up as a TeamRaiser gift. The difference being that a donation is general but a TeamRaiser gift is given to a specific entity in that TeamRaiser.