tussentijdse status voor significante wijzigingen. Bezig aan creatie Dynamic Form in de chat client.
This commit is contained in:
@@ -67,7 +67,89 @@ class Config(object):
|
||||
MAX_CONTENT_LENGTH = 50 * 1024 * 1024
|
||||
|
||||
# supported languages
|
||||
SUPPORTED_LANGUAGES = ['en', 'fr', 'nl', 'de', 'es']
|
||||
SUPPORTED_LANGUAGES = ['en', 'fr', 'nl', 'de', 'es', 'it', 'pt', 'ru', 'zh', 'ja', 'ko', 'ar', 'hi']
|
||||
SUPPORTED_LANGUAGE_DETAILS = {
|
||||
"English": {
|
||||
"iso 639-1": "en",
|
||||
"iso 639-2": "eng",
|
||||
"iso 639-3": "eng",
|
||||
"flag": "🇬🇧"
|
||||
},
|
||||
"French": {
|
||||
"iso 639-1": "fr",
|
||||
"iso 639-2": "fre", # of 'fra'
|
||||
"iso 639-3": "fra",
|
||||
"flag": "🇫🇷"
|
||||
},
|
||||
"German": {
|
||||
"iso 639-1": "de",
|
||||
"iso 639-2": "ger", # of 'deu'
|
||||
"iso 639-3": "deu",
|
||||
"flag": "🇩🇪"
|
||||
},
|
||||
"Spanish": {
|
||||
"iso 639-1": "es",
|
||||
"iso 639-2": "spa",
|
||||
"iso 639-3": "spa",
|
||||
"flag": "🇪🇸"
|
||||
},
|
||||
"Italian": {
|
||||
"iso 639-1": "it",
|
||||
"iso 639-2": "ita",
|
||||
"iso 639-3": "ita",
|
||||
"flag": "🇮🇹"
|
||||
},
|
||||
"Portuguese": {
|
||||
"iso 639-1": "pt",
|
||||
"iso 639-2": "por",
|
||||
"iso 639-3": "por",
|
||||
"flag": "🇵🇹"
|
||||
},
|
||||
"Dutch": {
|
||||
"iso 639-1": "nl",
|
||||
"iso 639-2": "dut", # of 'nld'
|
||||
"iso 639-3": "nld",
|
||||
"flag": "🇳🇱"
|
||||
},
|
||||
"Russian": {
|
||||
"iso 639-1": "ru",
|
||||
"iso 639-2": "rus",
|
||||
"iso 639-3": "rus",
|
||||
"flag": "🇷🇺"
|
||||
},
|
||||
"Chinese": {
|
||||
"iso 639-1": "zh",
|
||||
"iso 639-2": "chi", # of 'zho'
|
||||
"iso 639-3": "zho",
|
||||
"flag": "🇨🇳"
|
||||
},
|
||||
"Japanese": {
|
||||
"iso 639-1": "ja",
|
||||
"iso 639-2": "jpn",
|
||||
"iso 639-3": "jpn",
|
||||
"flag": "🇯🇵"
|
||||
},
|
||||
"Korean": {
|
||||
"iso 639-1": "ko",
|
||||
"iso 639-2": "kor",
|
||||
"iso 639-3": "kor",
|
||||
"flag": "🇰🇷"
|
||||
},
|
||||
"Arabic": {
|
||||
"iso 639-1": "ar",
|
||||
"iso 639-2": "ara",
|
||||
"iso 639-3": "ara",
|
||||
"flag": "🇸🇦"
|
||||
},
|
||||
"Hindi": {
|
||||
"iso 639-1": "hi",
|
||||
"iso 639-2": "hin",
|
||||
"iso 639-3": "hin",
|
||||
"flag": "🇮🇳"
|
||||
},
|
||||
}
|
||||
|
||||
SUPPORTED_LANGUAGES_Full = list(SUPPORTED_LANGUAGE_DETAILS.keys())
|
||||
|
||||
# supported currencies
|
||||
SUPPORTED_CURRENCIES = ['€', '$']
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
version: "1.0.0"
|
||||
name: "Personal Contact Form"
|
||||
icon: "call"
|
||||
fields:
|
||||
name:
|
||||
name: "Name"
|
||||
description: "Your name"
|
||||
type: "str"
|
||||
required: true
|
||||
email:
|
||||
name: "Email"
|
||||
type: "str"
|
||||
description: "Your Name"
|
||||
required: true
|
||||
phone:
|
||||
name: "Phone Number"
|
||||
type: "str"
|
||||
description: "Your Phone Number"
|
||||
required: true
|
||||
Address:
|
||||
name: "Address"
|
||||
type: "text"
|
||||
description: "Your Address"
|
||||
required: false
|
||||
status:
|
||||
name: "Marital Status"
|
||||
type: "enum"
|
||||
description: "Your Marital Status"
|
||||
required: false
|
||||
default: "single"
|
||||
allowed_values:
|
||||
- "single"
|
||||
- "married"
|
||||
- "divorced"
|
||||
can_contact:
|
||||
name: "Allow Contact"
|
||||
type: "boolean"
|
||||
description: "Allow us to contact you?"
|
||||
required: true
|
||||
default: false
|
||||
7
config/type_defs/specialist_form_types.py
Normal file
7
config/type_defs/specialist_form_types.py
Normal file
@@ -0,0 +1,7 @@
|
||||
# Specialist Form Types
|
||||
SPECIALIST_FORM_TYPES = {
|
||||
"PERSONAL_CONTACT_FORM": {
|
||||
"name": "Contact Form",
|
||||
"description": "A form for entering your personal contact details",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user