updated snippet before form partial to use locals to pass form object into the partial