Commit 446610a6 authored by Sven Franck's avatar Sven Franck

update services pageindex and field_dict for instance_details

parent c4e101c2
...@@ -372,6 +372,47 @@ ...@@ -372,6 +372,47 @@
} }
} }
}, },
"reference": {
"type":"StringField",
"widget": {
"id": "reference",
"title": "Reference",
"title_i18n": "portal_type_dict.service_dict.field_dict.reference.title",
"description": "The reference for this service instance.",
"description_i18n": "portal_type_dict.service_dict.field_dict.reference.description",
"alternate_name": "reference",
"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": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": 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_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"timestamp": { "timestamp": {
"type":"DateTimeField", "type":"DateTimeField",
"widget": { "widget": {
...@@ -495,15 +536,15 @@ ...@@ -495,15 +536,15 @@
} }
} }
}, },
"xml_recipe": { "text_content": {
"type": "TextareaField", "type": "TextareaField",
"widget": { "widget": {
"id": "xml_recipe", "id": "text_content",
"title": "Parameter XML", "title": "Parameter XML",
"title_i18n": "portal_type_dict.service_dict.field_dict.recipe.title", "title_i18n": "portal_type_dict.service_dict.field_dict.recipe.title",
"description": "The XML recipe for this software installation.", "description": "The XML recipe for this software installation.",
"description_i18n": "portal_type_dict.service_dict.field_dict.recipe.description", "description_i18n": "portal_type_dict.service_dict.field_dict.recipe.description",
"alternate_name": "xml_recipe", "alternate_name": "text_content",
"default_value": null, "default_value": null,
"css_class": null, "css_class": null,
"hidden": null, "hidden": null,
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{ {
"position": "center", "position": "center",
"fieldlist": [ "fieldlist": [
{"type": "a", "direct": {}, "attributes": {}, "logic":{"setters": ["href", "text"], "setValue":"url_string"}} {"type": "a", "direct": {}, "attributes": {"data-external":true}, "logic":{"setters": ["href", "text"], "setValue":"url_string"}}
] ]
}, },
{ {
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
{ {
"position": "center", "position": "center",
"fieldlist": [ "fieldlist": [
{"field": "xml_recipe", "overrides": {"widget": {"title": "Instance XML Recipe", "title_i18n": "portal_type_dict.service_dict.text_dict.recipe"}}} {"field": "text_content", "overrides": {"widget": {"title": "Instance XML Recipe", "title_i18n": "portal_type_dict.service_dict.text_dict.recipe"}}}
] ]
} }
], ],
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
"property_dict": { "property_dict": {
"initial_query_url_identifier": "_id", "initial_query_url_identifier": "_id",
"dynamic_children": [0], "dynamic_children": [0],
"link": true,
"link_identifier": "_id",
"wrap_gadget": 2, "wrap_gadget": 2,
"submit_to": "#services", "submit_to": "#services",
"caption": { "caption": {
......
...@@ -57,6 +57,18 @@ ...@@ -57,6 +57,18 @@
"title_i18n": "portal_type_dict.service_dict.text_dict.select_release", "title_i18n": "portal_type_dict.service_dict.text_dict.select_release",
"theme": "slapos-white", "theme": "slapos-white",
"view_dict": { "view_dict": {
"default": [
{
"generate": "gadget",
"type": "fieldlist",
"href": "instance_configuration"
},
{
"generate": "gadget",
"type": "listbox",
"href": "instance_connection"
}
],
"add": [ "add": [
{ {
"generate": "gadget", "generate": "gadget",
......
...@@ -134,6 +134,10 @@ ...@@ -134,6 +134,10 @@
"64": "64" "64": "64"
}, },
"field_dict": { "field_dict": {
"reference": {
"title": "Reference",
"description": "The reference for this service instance."
},
"source_reference": { "source_reference": {
"title": "Software Type", "title": "Software Type",
"description": "The software type of this service." "description": "The software type of this service."
......
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