Template filter to make form rendering much cleaner