Replaces haml input partial in replacement for copypasta code. To be reduced. Functional currently