def render_requirements_form(context, user_project):
    """
    Render user_project's requirements form to updated progress.
    Requirements form only editable by its owner and the user_project not yet completed.
    """
    is_owner = context.request.user == user_project.user
    return {
        'user_project': user_project,
        'requirements': user_project.requirements,
        'is_owner': is_owner,
        'editable': is_owner and user_project.is_in_progress(),
    }