Refactor form input helpers to remove duplication

Removes the duplicated inputXXX helpers and replaces them with a single template function that displays the provided Input object.