# Copyright: 2012 MoinMoin:CheerXiao
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.

"""
MoinMoin - Flatland form-related constants.
"""

# Widget types

WIDGET_TEXT = "text"  # single-line text
WIDGET_MULTILINE_TEXT = "multiline_text"
WIDGET_URL = "url"
WIDGET_EMAIL = "email"
WIDGET_PASSWORD = "password"
WIDGET_CHECKBOX = "checkbox"
WIDGET_INLINE_CHECKBOX = "inline_checkbox"
WIDGET_ANY_INTEGER = "any_integer"
WIDGET_SMALL_NATURAL = "small_natural"
WIDGET_RADIO_CHOICE = "radio_choice"
WIDGET_DATETIME = "datetime"

WIDGET_FILE = "file"
WIDGET_SEARCH = "search"
WIDGET_SUBMIT = "submit"
WIDGET_HIDDEN = "hidden"

WIDGET_SELECT = "select"
WIDGET_SELECT_SUBMIT = "select_submit"
WIDGET_MULTI_SELECT = "multi_select"

WIDGET_READONLY_STRING_LIST = "readonly_string_list"
WIDGET_READONLY_ITEM_LINK_LIST = "readonly_item_link_list"

# CSS classes
CLASS_BUTTON = "button"
