def field_type(field):
    """
    Returns the field type of an input
    :param field: input field
    :return: string representing the class name
    """
    return field.field.widget.__class__.__name__