Commit ea4caaec authored by Sven Franck's avatar Sven Franck

data: added fieldlist, sample data and translations

parent b810a224
{
"_id": {
"type":"StringField",
"widget": {
"id": "_id",
"title_i18n": "portal_type_dict.agent_dict.field_dict._id.title",
"description_i18n": "portal_type_dict.agent_dict.field_dict._id.description",
"alternate_name": "_id",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"external_validator_failed": {
"message": "Password and confirm don't match.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"agent_name": {
"type":"StringField",
"widget": {
"id": "agent_name",
"title_i18n": "portal_type_dict.agent_dict.field_dict.agent_name.title",
"description_i18n": "portal_type_dict.agent_dict.field_dict.agent_name.description",
"alternate_name": "agent_name",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"external_validator_failed": {
"message": "Password and confirm don't match.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"code_name": {
"type":"StringField",
"widget": {
"id": "code_name",
"title_i18n": "portal_type_dict.agent_dict.field_dict.code_name.title",
"description_i18n": "portal_type_dict.agent_dict.field_dict.code_name.description",
"alternate_name": "code_name",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"external_validator_failed": {
"message": "Password and confirm don't match.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"residence_country": {
"type":"ListField",
"widget": {
"id": "residence_country",
"title_i18n": "portal_type_dict.agent_dict.field_dict.residence_country.title",
"description_i18n": "portal_type_dict.agent_dict.field_dict.residence_country.description",
"alternate_name": "residence_country",
"default_value": null,
"css_class": null,
"hidden": null,
"items": "[method_to_get_options]",
"size": null,
"extra": null,
"extra_per_item": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"unicode": null
},
"message": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"active_duty": {
"type":"CheckboxField",
"widget": {
"id": "active_duty",
"title_i18n": "portal_type_dict.agent_dict.field_dict.active_duty.title",
"description_i18n": "portal_type_dict.agent_dict.field_dict.active_duty.description",
"alternate_name": "active_duty",
"css_class": null,
"hidden": null,
"items": null,
"select_first_item": true,
"extra_per_item": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"profile_information": {
"type":"TextareaField",
"widget": {
"id": "profile_information",
"title_i18n": "portal_type_dict.agent_dict.field_dict.profile_information.title",
"description_i18n": "portal_type_dict.agent_dict.field_dict.profile_information.description",
"alternate_name": "profile_information",
"css_class": null,
"hidden": null,
"width":null,
"height":null,
"extra":null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_lines": null,
"maximum_length_of_line": null,
"maximum_characters": null
},
"message": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_many_lines": {
"message": "You have entered too many lines.",
"i18n": "validation_dict.too_many_lines"
},
"line_too_long": {
"message": "One or more lines you have entered are too long.",
"i18n": "validation_dict.too_long_lines"
},
"too_long": {
"message": "You have entered too many characters.",
"i18n": "validation_dict.too_many_chars"
}
}
}
}
\ No newline at end of file
[
{
"_id": "1",
"agent_name": "James Bond",
"code_name": "007",
"active_duty": "Yes",
"profile_information":"Her majesty's favorite agent. Timeless...",
"residence_country": "United Kingdom"
},
{
"_id": "2",
"agent_name": "Hubert Bonisseur de la Bath",
"code_name": "OSS117",
"active_duty": "No",
"profile_information":"Ask Cedric for more details... Cedric L!",
"residence_country": "France"
},
{
"_id": "3",
"agent_name": "TinTin",
"code_name": null,
"active_duty": "Depends",
"profile_information":"Often seen with a dog and an old grumpy man claiming to be a captain.",
"residence_country": "Belgium"
},
{
"_id": "4",
"agent_name": "Clever&Smart",
"code_name": null,
"active_duty": "No",
"profile_information":"Supposed to work as a team and tend to be violent.",
"residence_country": "France"
},
{
"_id": "5",
"agent_name": "Spy&Spy",
"code_name": null,
"active_duty": "Yes",
"profile_information":"Hire one, try to avoid the other one.",
"residence_country": "USA"
}
]
\ No newline at end of file
[
{"text_i18n":null, "class":"translate", "value":"", "selected":true},
{"text_i18n":"portal_type_dict.agent_dict.text_dict.france", "class":"translate", "value":"fr"},
{"text_i18n":"portal_type_dict.agent_dict.text_dict.uk", "class":"translate", "value":"uk"},
{"text_i18n":"portal_type_dict.agent_dict.text_dict.belgium", "class":"translate", "value":"be"},
{"text_i18n":"portal_type_dict.agent_dict.text_dict.usa", "class":"translate", "value":"us"}
]
\ No newline at end of file
......@@ -134,7 +134,37 @@
"description_overview": "This is a list showing available agents. To add a new agent, click 'Add Agent', to view a profile and issue a licensce, click on one of the agents.",
"agent_profile":"Agent Profile",
"description_view": "You are viewing an agent profile. To issue a new licencse, click the button on the right.",
"description_new": "Register a new agent here."
"description_new": "Register a new agent here.",
"usa": "USA",
"france": "France",
"belgium": "Belgium",
"uk": "United Kingdom"
},
"field_dict": {
"_id": {
"title": "ID",
"description": "The id of this agent."
},
"agent_name": {
"title": "Name",
"description": "The name of this agent."
},
"code_name": {
"title": "Code Name",
"description": "The code name of this agent."
},
"active_duty": {
"title": "Active Duty",
"description": "Whether this agent is in active duty"
},
"profile_information": {
"title": "Profile",
"description": "Short profile of this agent."
},
"residence_country":{
"title": "Residence Country",
"description": "The country of residence of this agent."
}
}
},
"network_dict": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment