Jinja2 macro for form fields