Moved the inputform to its own template, so 2 views can reuse the code.