Refactor/rework the form generation code. I’ll make it more OOP-like that will allow 3 degrees of control:
printing the whole form (autoformatted)
printing fields (these are <label> <input> pairs of tags) and customising overall formatting
printing each tag separately for ultimate design control :)
This part is done. The code is in already in the repository.