Replaced form strings with Jinja2 templates