We use a \textit{tabular} environment to align the form elements in a table. \lstinputlisting{../examples/ex0002.tex}