Commit c35529a9 authored by Sven Franck's avatar Sven Franck

Tutorial: first commit. Add new portal type page widget

parent cc4573e0
{
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"property_dict": {
"title_i18n": "portal_type_dict.agent_dict.text_dict.agent_list",
"theme": "slapos-white"
},
"view_dict": {
"default": [{
"type": "p",
"direct": {"className": "translate ui-content-element"},
"attributes": {"data-i18n": "portal_type_dict.agent_dict.text_dict.description_overview"}
}]
}
}, {
"generate": "widget",
"type": "page",
"property_dict": {
"title_i18n": "portal_type_dict.agent_dict.text_dict.agent_profile",
"theme": "slapos-white"
},
"view_dict": {
"default": [{
"type": "p",
"direct": {"className": "translate ui-content-element"},
"attributes": {"data-i18n": "portal_type_dict.agent_dict.text_dict.description_view"}
}],
"add": [{
"type": "p",
"direct": {"className": "translate ui-content-element"},
"attributes": {"data-i18n": "portal_type_dict.agent_dict.text_dict.description_new"}
}]
}
}
]
}
......@@ -99,7 +99,9 @@
"map_children": "listItem"
},
"children": [
{"type": "item", "href": "#test_page_module", "left": {"icon": "file-o"}, "center": {"text": [{"type": "h1", "text": "Pages", "text_i18n": "global_dict.pages"}, {"type": "p", "text": "Create and run test pages locally", "text_i18n": "global_dict.test_pages"}]}}
{"type": "item", "href": "#test_page_module", "left": {"icon": "file-o"}, "center": {"text": [{"type": "h1", "text": "Pages", "text_i18n": "global_dict.pages"}, {"type": "p", "text": "Create and run test pages locally", "text_i18n": "global_dict.test_pages"}]}},
{"type": "item", "href": "#agent_module", "left": {"icon": "shield"}, "center": {"text": [{"type": "h1", "text_i18n": "portal_type_dict.agent_dict.text_dict.agents"}, {"type": "p", "text_i18n": "portal_type_dict.agent_dict.text_dict.agents_panel_description"}]}}
]
}]
}, {
......
......@@ -126,6 +126,17 @@
"unknown_selection": "You selected an item that is not on the list."
},
"portal_type_dict": {
"agent_dict": {
"text_dict": {
"agents": "Agents",
"agents_panel_description": "Manage your agents.",
"agent_list": "Available Agents",
"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."
}
},
"network_dict": {
"text_dict": {
"title": "Title",
......
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