I am trying to understand the genus of a lattice from Conway and Sloane textbook. They said two quadratic forms $Q_1$ and $Q_2$ lie in the same genus if they are equivalent over $\mathbb{R}$ and over the $p$-adic integers $\mathbb{Z}_p$ for all primes $p$. I don't understand that definition, especially when they define the Jordan decomposition of a quadratic form f at a a prime p as: $f = f_1 \oplus pf_p \oplus p^2f_{p^2} \oplus \ldots$
Can you give me some examples for this definition or any textbook or references about quadratic form, and genus of a lattice that I learn by myself?