Commit 767cdb51 authored by Sven Franck's avatar Sven Franck

updated person section to full-width table

parent 473d27b9
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"default": [ "default": [
{ {
"generate": "gadget", "generate": "gadget",
"type": "fieldlist", "type": "listbox",
"href": "person_view" "href": "person_overview"
} }
], ],
"new": [ "new": [
......
{
"portal_type_source": "Person",
"portal_type_title": "person",
"portal_type_fields": "person_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"view": "web_view",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
"caption": {
"slot": 1,
"text": "Person Overview",
"text_i18n": "portal_type_dict.person_dict.text_dict.person"
},
"pagination": {
"slot": 2,
"option_list": [
{"value": "8", "text": "8", "text_i18n":"portal_type_dict.person_dict.text_dict.8"},
{"value": "16", "text": "16", "text_i18n":"portal_type_dict.person_dict.text_dict.16"},
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.person_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.person_dict.text_dict.64"}
]
},
"no_items": {
"message": "No person found.",
"message_i18n": "portal_type_dict.person_dict.text_dict.noperson"
},
"search": {
"text": "Search Persons",
"text_i18n": "portal_type_dict.person_dict.text_dict.search",
"info_list": ["records", "filter", "sorted", "selected"]
},
"allow_new": true
},
"scheme": [
{
"position": "header",
"fieldlist": [
{"field": "gender", "show": true, "priority": 7},
{"field": "first_name", "show": true, "persist": true},
{"field": "last_name", "show": true, "persist": true},
{"field": "default_email_text", "show": true, "priority": 1},
{"field": "default_telephone_text", "show": true, "priority": 2},
{"field": "default_fax_text", "show": true, "priority": 6},
{"field": "default_address_street_address", "show": true, "priority": 4},
{"field": "default_address_city", "show": true, "priority": 4},
{"field": "default_address_zip_code", "show": true, "priority": 4},
{"field": "default_address_region", "show": true, "priority": 4},
{"field": "nationality", "show": true, "priority": 7}
]
},{
"position": "body",
"fieldlist": [
{"field": "gender", "show": true, "priority": 7},
{"field": "first_name", "show": true, "persist": true},
{"field": "last_name", "show": true, "persist": true},
{"field": "default_email_text", "show": true, "priority": 1},
{"field": "default_telephone_text", "show": true, "priority": 2},
{"field": "default_fax_text", "show": true, "priority": 6},
{"field": "default_address_street_address", "show": true, "priority": 4},
{"field": "default_address_city", "show": true, "priority": 4},
{"field": "default_address_zip_code", "show": true, "priority": 4},
{"field": "default_address_region", "show": true, "priority": 4},
{"field": "nationality", "show": true, "priority": 7}
]
}
],
"children": [{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
"top_grid": 1,
"bottom_grid": 1
},
"children": [
{"type": "input", "direct": {"value": "Update My Credentials", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"add", "data-i18n":"[value]portal_type_dict.person_dict.text_dict.submit", "data-theme": "slapos-black"}}
]
}]
}
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"form": true, "form": true,
"view": "web_view", "view": "web_view",
"property_dict": { "property_dict": {
"initial_query_url_identifier": "_id",
"no_items": { "no_items": {
"message": "No person found", "message": "No person found",
"message_i18n": "portal_type_dict.person_dict.text_dict.nodata", "message_i18n": "portal_type_dict.person_dict.text_dict.nodata",
...@@ -65,7 +66,7 @@ ...@@ -65,7 +66,7 @@
"direction": "horizontal" "direction": "horizontal"
}, },
"children": [ "children": [
{"type": "input", "direct": {"value": "Update My Credentials", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"update", "data-i18n":"[value]portal_type_dict.person_dict.text_dict.submit", "data-theme": "slapos-black"}} {"type": "input", "direct": {"value": "Update My Credentials", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"add", "data-i18n":"[value]portal_type_dict.person_dict.text_dict.submit", "data-theme": "slapos-black"}}
] ]
}] }]
} }
......
...@@ -413,12 +413,19 @@ ...@@ -413,12 +413,19 @@
}, },
"person_dict": { "person_dict": {
"text_dict": { "text_dict": {
"noperson": "No person found",
"cancel": "Reset", "cancel": "Reset",
"account": "Account", "account": "Account",
"register": "Register", "register": "Register",
"nodata": "No person found", "nodata": "No person found",
"submit": "Update My Credentials", "submit": "Update My Credentials",
"reset": "Reset" "reset": "Reset",
"person": "Person Overview",
"8":"8",
"16": "16",
"32": "32",
"64": "64",
"search": "Search Persons"
}, },
"field_dict": { "field_dict": {
"confirm_password": { "confirm_password": {
......
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