Commit 8d508ae9 authored by Sven Franck's avatar Sven Franck

updates JSON files to new API

parent bccc1584
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Blog",
"title_i18n": "page_dict.blog.title",
"theme": "slapos-white",
"children": []
}
]
}
[
{
"generate": "widget",
"type": "Page",
"meta": "Index Page",
"title": "Dashboard",
"title_i18n": null,
"children": []
}
]
\ No newline at end of file
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Office JS App Store",
"title_i18n": "page_dict.home.title",
"theme": "slapos-white",
"children": []
}
]
}
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Documentation",
"title_i18n": "page_dict.documentation.title",
"theme": "slapos-white",
"children": []
}
]
}
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Download",
"title_i18n": "page_dict.download.title",
"theme": "slapos-white",
"children": []
}
]
}
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Forum",
"title_i18n": "page_dict.forum.title",
"theme": "slapos-white",
"children": []
}
]
}
This diff is collapsed.
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Help",
"title_i18n": "page_dict.help.title",
"theme": "slapos-white",
"children": []
}
]
}
{
"invoice_date": {
"type": "DateTimeField",
"widget": {
"id": "invoice_date",
"title": "Date",
"title_i18n": "portal_type_dict.invoice_dict.field_list.date.title",
"description": "The date the invoice was issued on.",
"description_i18n": "portal_type_dict.invoice_dict.field_list.date.description",
"alternate_name": "invoice_date",
"default_value": null,
"css_class": "",
"hidden": null,
"default_to_now": null,
"date_separator": null,
"time_separator": null,
"input_style": null,
"input_order": null,
"display_date_only": null,
"am_pm_time_style": null,
"display_timezone": null,
"hide_day": null,
"hidden_day_is_last_day_of_month": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"start_datetime": null,
"end_datetime": null,
"allow_empty_time": 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"
},
"not_datetime": {
"message": "You did not enter a valid date and time.",
"i18n": "validation_dict.not_valid_datetime"
},
"datetime_out_of_range": {
"message": "The date and time you entered were out of range.",
"i18n": "validation_dict.out_of_range_datetime"
}
}
},
"invoice_total_price": {
"type": "FloatField",
"widget": {
"id": "invoice_total_price",
"title": "Total",
"title_i18n": "portal_type_dict.invoice_dict.field_list.total_price.title",
"description": "The amount of this invoice.",
"description_i18n": "portal_type_dict.invoice_dict.field_list.total_price.description",
"alternate_name": "invoice_total_price",
"default": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {"data-clear-btn":"true"},
"input_style": null,
"precision": null
},
"validator": {
"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"
},
"not_float": {
"message":"You did not enter a floating number.",
"i18n": "validation_dict.not_float"
}
}
},
"invoice_price_currency": {
"type": "ListField",
"widget": {
"id": "invoice_price_currency",
"title": "Currency",
"title_i18n": "portal_type_dict.invoice_dict.field_list.price_currency.title",
"description": "The currency this invoice was issued in.",
"description_i18n": "portal_type_dict.invoice_dict.field_list.price_currency.description",
"alternate_name": "invoice_price_currency",
"default": null,
"css_class": null,
"hidden": false,
"size": 1,
"items": "getCurrencies",
"select_first_item": true,
"extra_per_item": null,
"extra": null
},
"validator": {
"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"
}
}
},
"invoice_translated_simulation_state_title": {
"type": "StringField",
"widget": {
"id": "invoice_translated_simulation_state_title",
"title": "Status",
"title_i18n": "portal_type_dict.release_dict.field_list.status.title",
"description": "The status of the invoice.",
"description_i18n": "portal_type_dict.release_dict.field_list.status.description",
"alternate_name": "invoice_translated_simulation_state_title",
"default": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {"data-clear-btn":"true"}
},
"validator": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": 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"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"invoice_reference_portal_type": {
"type": "StringField",
"widget": {
"id": "invoice_reference_portal_type",
"title": "Reference Portal Type",
"title_i18n": "portal_type_dict.release_dict.field_list.reference_portal_type.title",
"description": "The portal type this invoice is associated to.",
"description_i18n": "portal_type_dict.release_dict.field_list.reference_portal_type.description",
"alternate_name": "invoice_reference_portal_type",
"default": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {"data-clear-btn":"true"}
},
"validator": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": 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"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"invoice_reference_id": {
"type": "StringField",
"widget": {
"id": "invoice_reference_portal_type",
"title": "Reference ID",
"title_i18n": "portal_type_dict.release_dict.field_list.reference_id.title",
"description": "The id of the portal_type this invoice is associated to.",
"description_i18n": "portal_type_dict.release_dict.field_list.reference_id.description",
"alternate_name": "invoice_reference_portal_type",
"default": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {"data-clear-btn":"true"}
},
"validator": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": 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"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"invoice_id": {
"type": "StringField",
"widget": {
"id": "invoice_id",
"title": "Reference ID",
"title_i18n": "portal_type_dict.release_dict.field_list.id.title",
"description": "The id of the portal_type this invoice is associated to.",
"description_i18n": "portal_type_dict.release_dict.field_list.id.description",
"alternate_name": "invoice_id",
"default": null,
"css_class": null,
"hidden": false,
"display_width": 30,
"maximum_input": null,
"extra": {"data-clear-btn":"true"}
},
"validator": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": 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"
},
"too_long": {
"message":"Too much input given.",
"i18n": "validation_dict.too_much_input"
}
}
}
}
{
"portal_type_source": "Sale Invoice Transaction",
"portal_type_title": "invoice",
"portal_type_fields": "invoice_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,16]},
"form": true,
"id": "invoice_overview",
"property_dict": {
"dynamic_children": [5],
"wrap_gadget": 2,
"layout": {
"header": [
[
{"column": "invoice_id", "show": false, "priority": 5},
{"column": "invoice_date", "show": true, "priority": 1, "sort":true},
{"column": "invoice_total_price", "show": true, "persist": true, "sort":false},
{"column": "invoice_price_currency", "show": "true", "priority": 4, "merge": "invoice_total_price", "merger_text": "Total Price", "merger_i18n": "portal_type_dict.invoice_dict.fieldlist.total_price.title"},
{"column": "invoice_translated_simulation_state_title", "show":"true", "priority": },
{"custom": true, "text": "Download", "text_i18n": "global_dict.export_dict.download", "show": true, "priority": 6, "sort": false}
]
],
"body": [
{"column": "invoice_id", "show": false, "priority": 5},
{"column": "invoice_date", "show": true, "priority": 1, "sort":true},
{"column": "invoice_total_price", "show": true, "persist": true, "sort":false},
{"column": "invoice_price_currency", "show": "true", "priority": 4, "merge": "invoice_total_price", "merger_text": "Total Price", "merger_i18n": "portal_type_dict.invoice_dict.fieldlist.total_price.title"},
{"column": "invoice_translated_simulation_state_title", "show":"true", "priority": },
{"custom": true, "text": "Download", "text_i18n": "global_dict.export_dict.download", "show": true, "priority": 6, "sort": false}
]
},
"feature_dict": {
"check": true,
"global_check": true,
"sortable": true,
"mergeable": true,
"action_menu": true
}
},
"children": [{
"generate": "widget",
"type": "controlbar",
"class_list": "responsive",
"children": [
{"type": "input", "direct": {"id":"search_release_list", "className": "translate"}, "attributes": {"data-action":"search", "data-enhanced":"true", "data-i18n": "[placeholder]page_dict.release.search","placeholder":"Search available releases", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"}, "logic":{"clear":"true", "action":"search"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"records"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"filter"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"sorted"}}
]
}, {
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"filter": "true",
"input": "#search_release_list",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
"top_grid": 1,
"bottom_grid": 1,
"sorting": "true"
},
"children": []
}]
}
[
{
"invoice_translated_simulation_state_title": "Cancelled",
"invoice_price_currency": "EUR",
"invoice_total_price": 850.4,
"invoice_date": "2013/10/03",
"invoice_id": "invoice_0",
"invoice_reference_portal_type": "Person",
"invoice_reference_id": "123"
},
{
"invoice_translated_simulation_state_title": "Cancelled",
"invoice_price_currency": "EUR",
"invoice_total_price": 82.8,
"invoice_date": "2013/09/03",
"invoice_id": "invoice_1",
"invoice_reference_portal_type": "Person",
"invoice_reference_id": "123"
},
{
"invoice_translated_simulation_state_title": "Paid",
"invoice_price_currency": "EUR",
"invoice_total_price": 671.3,
"invoice_date": "2013/07/05",
"invoice_id": "invoice_3",
"invoice_reference_portal_type": "Person",
"invoice_reference_id": "123"
}
]
\ No newline at end of file
[
{
"type": "invoices",
"meta": "View of all invoices",
"theme": "slapos-white",
"title": "Invoices",
"title_i18n": null,
"section_list": [{"type": "listbox", "gadget": "invoices_01"}]
}, {
"type": "invoice",
"meta": "View of a single invoice",
"theme": "slapos-white",
"title": "Invoice",
"title_i18n": null,
"section_list": []
}
]
\ No newline at end of file
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Invoices",
"title_i18n": "page_dict.invoices.title",
"theme": "slapos-white",
"children": [
{
"generate": "gadget",
"type": "listgrid",
"id": "invoice_overview",
"href": "invoice_overview"
}
]
}
]
}
{
"property_dict": {
"dynamic_children": [3]
},
"children": [
{
"type": "div",
"direct": {"className": "logo_wrap"},
"children": [
{
"type": "img",
"direct": {"src": "img/slapos.png", "alt": "SlapOS logo", "className": "translate"},
"attributes": {"data-i18n": "global_dict.name_dict.slapos_logo"}
}
]
}, {
"type": "br"
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.common_dict.sign_in"},
"logic": {"text": "Sign in using"}
}, {
"generate": "widget",
"type": "controlgroup",
"property_dict": {},
"children": [
{"type": "a", "direct":{"className":"signin_google action", "href":""}, "attributes":{"data-action":"login_user", "data-icon":"google-plus-sign", "data-iconpos":"left", "data-reference": "google"}, "logic": {"text":"Google"}}
]
}, {
"type": "p",
"direct": {"className": "mini"},
"children": [
{
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.common_dict.pricing"},
"logic": {"text": "To maintain sufficient resources, a minimal fee of 1 EUR will be charged if you use SlapOS services for more than 24 hours. By clicking on one of the signup buttons, you agree that you are subscribing to a payable service. All services you request will be invoiced to you at the end of the month."}
}
]
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.common_dict.find_out_more"},
"logic": {"text": "To find out more, please refer to"}
}, {
"type": "a",
"direct": {"className": "translate ui-btn ui-icon-dollar ui-btn-icon-left ui-shadow ui-corner-all", "href": "#pricing"},
"attributes": {"data-i18n": "global_dict.name_dict.slapos_pricing"},
"logic": {"text": "SlapOS Pricing"}
}
]
}
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Monitoring",
"title_i18n": "page_dict.monitoring.title",
"theme": "slapos-white",
"children": []
}
]
}
[
{
"type": "network",
"meta": "Overview of networks generated",
"theme": "slapos-white",
"title": "Networks",
"title_i18n": null,
"section_list": []
}
]
\ No newline at end of file
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Networks",
"title_i18n": "page_dict.networks.title",
"theme": "slapos-white",
"children": []
}
]
}
[
{
"type": "person",
"meta": "Overview of persons associated with this account",
"theme": "slapos-white",
"title": "Persons",
"title_i18n": null,
"section_list": [{"type": "listbox", "gadget": "person_01"}]
}, {
"type": "person",
"meta": "View of a single person",
"theme": "slapos-white",
"title": "Personal Details",
"title_i18n": null,
"section_list": [
{"type": "fieldlist", "gadget": "person_01_details"}
]
}
]
\ No newline at end of file
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Account",
"title_i18n": "page_dict.person.title",
"theme": "slapos-white",
"children": [
{
"generate": "gadget",
"type": "fieldlist",
"id": "person_view",
"href": "person_view"
}
]
}
]
}
This diff is collapsed.
[
{
"gender": "male",
"first_name": "Sven",
"last_name": "Franck",
"default_address_street_address": "86, Avenue des Muy\nAppt. 33\n3ieme Etage",
"default_address_city": "Lille",
"default_address_region": "France",
"default_address_zip_code": "59800",
"default_telephone_text": "+49123456789",
"default_mobile_telephone_text": "+49123456789",
"default_fax_text": "+45123300012",
"default_email_text": "svenfranck@hoo.com",
"nationality": "German",
"corporate_name": null,
"role_list": null,
"date_of_birth": null,
"description": "Test account",
"activity_list": null,
"reference": null,
"password": null,
"confirm_password": null,
"default_credential_question_question": null,
"default_credential_question_question_free_text": null,
"default_credential_question_answer": null,
"skill_list": null,
"site": null
"person_gender": "male",
"person_first_name": "Sven",
"person_last_name": "Franck",
"person_default_address_street_address": "86, Avenue des Muy\nAppt. 33\n3ieme Etage",
"person_default_address_city": "Lille",
"person_default_address_region": "France",
"person_default_address_zip_code": "59800",
"person_default_telephone_text": "+49123456789",
"person_default_mobile_telephone_text": "+49123456789",
"person_default_fax_text": "+45123300012",
"person_default_email_text": "svenfranck@hoo.com",
"person_nationality": "German",
"person_corporate_name": null,
"person_role_list": null,
"person_date_of_birth": null,
"person_description": "Test account",
"person_activity_list": null,
"person_reference": null,
"person_password": null,
"person_confirm_password": null,
"person_default_credential_question_question": null,
"person_default_credential_question_question_free_text": null,
"person_default_credential_question_answer": null,
"person_skill_list": null,
"person_site": null,
"person_work_function": null
}
]
]
\ No newline at end of file
{
"portal_type_source": "Person",
"portal_type_title": "person",
"portal_type_fields": "person_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"id": "user_sample",
"property_dict": {
"dynamic_children": [0]
},
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"direction": "horizontal"
},
"children": [
{"type": "input", "direct": {"value": "Reset", "className": "translate"}, "attributes": {"type": "reset", "data-i18n":"[value]global_dict.common_dict.cancel"}},
{"type": "input", "direct": {"value": "Submit", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"add", "data-i18n":"[value]global_dict.common_dict.submit", "data-theme": "slapos-black"}}
]
}],
"layout": [
{
"position": "left",
"fieldlist": [
{"title": "person_gender"},
{"title": "person_first_name"},
{"title": "person_last_name"},
{"title": "person_default_email_text"},
{"title": "person_default_telephone_text"},
{"title": "person_default_mobile_telephone_text"},
{"title": "person_default_fax_text"},
{"title": "person_default_address_street"},
{"title": "person_default_address_city"},
{"title": "person_default_address_zip_code"},
{"title": "person_default_address_region"},
{"title": "person_nationality"}
]
},{
"position": "right",
"fieldlist": [
{"title": "person_reference"},
{"title": "person_password"},
{"title": "person_password_confirm"},
{"title": "person_default_credential_question_question"},
{"title": "person_default_credential_question_question_free_text"},
{"title": "person_default_credential_question_answer"},
{"title": "person_date_of_birth"},
{"title": "person_corporate_name"},
{"title": "person_role_list"},
{"title": "person_activity_list"},
{"title": "person_work_function"},
{"title": "person_site"},
{"title": "person_skill_list"}
]
},{
"position": "center",
"fieldlist": [
{"title": "person_description"}
]
}
]
}
]
}
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Pricing",
"title_i18n": "page_dict.pricing.title",
"theme": "slapos-white",
"children": []
}
]
}
{
"release_title": {
"type":"StringField",
"widget": {
"id": "release_title",
"title": "Title",
"title_i18n": "portal_type_dict.release_dict.field_list.title.title",
"description": "The id the software service was registered with.",
"description_i18n": "portal_type_dict.release_dict.field_list.title.description",
"alternate_name": "release_title",
"default_value": null,
"css_class": "",
"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": 70,
"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 given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"release_description": {
"type":"StringField",
"widget": {
"id": "release_description",
"title": "Title",
"title_i18n": "portal_type_dict.release_dict.field_list.description.title",
"description": "The id the software service was registered with.",
"description_i18n": "portal_type_dict.release_dict.field_list.description.description",
"alternate_name": "release_description",
"default_value": null,
"css_class": "",
"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": 2000,
"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 given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"release_version": {
"type":"StringField",
"widget": {
"id": "release_version",
"title": "Title",
"title_i18n": "portal_type_dict.release_dict.field_list.version.title",
"description": "The id the software service was registered with.",
"description_i18n": "portal_type_dict.release_dict.field_list.version.description",
"alternate_name": "release_version",
"default_value": null,
"css_class": "",
"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": 35,
"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 given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"release_reference_portal_type": {
"type":"StringField",
"widget": {
"id": "release_reference_portal_type",
"title": "Title",
"title_i18n": "portal_type_dict.release_dict.field_list.reference_portal_type.title",
"description": "The portal type this release is associated to.",
"description_i18n": "portal_type_dict.release_dict.field_list.reference_portal_type.description",
"alternate_name": "release_reference_portal_type",
"default_value": null,
"css_class": "",
"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": 70,
"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 given.",
"i18n": "validation_dict.too_much_input"
}
}
},
"release_reference_id": {
"type":"StringField",
"widget": {
"id": "release_reference_id",
"title": "Title",
"title_i18n": "portal_type_dict.release_dict.field_list.reference_id.title",
"description": "The id of the referenced portal_type this release is associated to.",
"description_i18n": "portal_type_dict.release_dict.field_list.reference_id.description",
"alternate_name": "release_reference_id",
"default_value": null,
"css_class": "",
"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": 70,
"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 given.",
"i18n": "validation_dict.too_much_input"
}
}
}
}
\ No newline at end of file
{
"portal_type_source": "Software Release",
"portal_type_title": "release",
"portal_type_fields": "release_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,16]},
"form": true,
"id": "release_overview",
"property_dict": {
"initial_query_url_identifier": "release_reference_id",
"dynamic_children": [5],
"wrap_gadget": 2,
"layout": {
"header": [
[
{"column": "release_title", "show": true, "priority": 1, "sort":true},
{"column": "release_version", "show": true, "priority": 1, "sort":true},
{"column": "release_description", "show": true, "priority": 5, "sort":true},
{"custom": true, "text": "Download", "text_i18n": "global_dict.export_dict.download", "show": true, "priority": 6, "sort": false}
]
],
"body": [
{"column": "release_title", "show": true, "priority": 1, "sort":true},
{"column": "release_version", "show": true, "priority": 1, "sort":true},
{"column": "release_description", "show": true, "priority": 5, "sort":true},
{"custom": "true", "show": true, "priority": 6, "action_list": [{"text": "Download", "class_list": "responsive", "text_i18n": "global_dict.export_dict.download", "action": "pdf", "icon": "file-alt"}]}
],
"footer": []
},
"feature_dict": {
"check": true,
"global_check": true,
"sortable": true,
"mergeable": true,
"linkable": true,
"link_identifier": null,
"editable": null,
"action_menu": true
}
},
"children": [{
"generate": "widget",
"type": "controlbar",
"class_list": "responsive",
"children": [
{"type": "input", "direct": {"id":"search_release_list", "className": "translate"}, "attributes": {"data-action":"search", "data-enhanced":"true", "data-i18n": "[placeholder]page_dict.release.search","placeholder":"Search available releases", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"}, "logic":{"clear":"true", "action":"search"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"records"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"selected"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"filter"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"sorted"}}
]
},{
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 1},
"children": [{"type": "a", "direct": {"className": "toggle_global_popup ui-btn ui-btn-icon-left ui-icon-sitemap ui-shadow ui-corner-all","href":"#global_popup"},"attributes": {"data-reference":"group_search","data-type":"invoices", "data-rel":"popup","data-transition":"pop","data-position-to":"window"},"logic": {"text":"Group"}}]
},{
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 2},
"children": [{"type": "a", "direct": {"className": "toggle_global_popup ui-btn ui-btn-icon-left ui-icon-filter ui-shadow ui-corner-all","href":"#global_popup"},"attributes": {"data-reference":"detail_search","data-type":"invoices", "data-rel":"popup","data-transition":"pop","data-position-to":"window"},"logic": {"text":"Detail Search"}}]
},{
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 3},
"children": [{"type": "a","direct": {"className": "toggle_local_popup ui-btn ui-btn-icon-left ui-icon-cogs ui-shadow ui-corner-all","href":"#global_popup"},"attributes": {"data-reference":"configure_search","data-type":"invoices", "data-rel":"popup","data-transition":"pop","data-position-to":"window"},"logic": {"text":"Configuration"}}]
},{
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 4},
"children": [
{
"generate":"widget",
"type": "controlgroup",
"property_dict": {"direction":"horizontal"},
"children":[
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.first", "data-action":"first", "data-icon":"step-backward", "data-iconpos":"notext"}, "logic": {"text":"First"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.previous", "data-action":"prev", "data-icon":"backward", "data-iconpos":"notext"}, "logic": {"text":"Step Backward"}},
{"type":"select", "direct":{"id":"paginate_release_list", "className":"action"},"attributes": {"data-icon":"reorder", "data-action":"limit", "data-iconpos":"notext"},"logic": {"options":[{"value": "16", "text": "16", "text_i18n":"global_dict.pagination_dict.16"},{"value": "32", "text": "32", "text_i18n":"global_dict.pagination_dict.32"},{"value": "64", "text": "64", "text_i18n":"global_dict.pagination_dict.64"}, {"value": "128", "text": "128", "text_i18n":"global_dict.pagination_dict.128"}]}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.next", "data-action":"next", "data-icon":"forward", "data-iconpos":"notext"}, "logic": {"text":"Step Forward"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.last", "data-action":"last", "data-icon":"step-forward", "data-iconpos":"notext"}, "logic": {"text": "Last"}}
]
}
]
}, {
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"filter": "true",
"input": "#search_release_list",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
"top_grid": 3,
"bottom_grid": 1,
"sorting": "true"
},
"children": []
}]
}
This diff is collapsed.
[
{
"type": "servers",
"meta": "Overview of server instances",
"title": "Servers",
"title_i18n": null,
"section_list": []
}
]
\ No newline at end of file
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Servers",
"title_i18n": "page_dict.servers.title",
"theme": "slapos-white",
"children": []
}
]
}
[
{
"type": "services",
"meta": "Overview of software subscribed to",
"title": "Services",
"title_i18n": null,
"section_list": []
}
]
\ No newline at end of file
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Services",
"title_i18n": "page_dict.services.title",
"theme": "slapos-white",
"children": []
}
]
}
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Software",
"title_i18n": "page_dict.software.title",
"theme": "slapos-white",
"children": [
{
"generate": "gadget",
"type": "listgrid",
"id": "subscription_overview",
"href": "subscription_overview"
}
]
}, {
"generate": "widget",
"type": "page",
"title": "Software",
"title_i18n": "page_dict.software.title",
"theme": "slapos-white",
"children": [
{
"generate": "gadget",
"type": "listbox",
"id": "release_overview",
"href": "release_overview"
}
]
}, {
"generate": "widget",
"type": "page",
"title": "Release",
"title_i18n": "page_dict.release.title",
"theme": "slapos-white",
"children": []
}
]
}
[
{
"widget": "storage",
"definition": {
"type": "local",
"username": "app",
"application_name": "settings"
{
"generate":"gadget",
"type": "setStorage",
"property_dict": {
"no_content": true,
"storage_type": "JIO",
"modernizr": ["blobconstructor", "filereader"]
},
"children": [{
"generate": "gadget",
"type": "makeStorage",
"property_dict": {
"no_content": true,
"definition": {
"type": "local",
"username": "slapos",
"application_name": "settings"
}
}
}, {
"widget": "storage",
"definition": {
"type":"local",
"username":"app",
"application_name": "items"
"generate": "gadget",
"type": "makeStorage",
"property_dict": {
"no_content": true,
"definition": {
"type":"local",
"username":"slapos",
"application_name": "items"
}
}
}
]
\ No newline at end of file
}]
}
This diff is collapsed.
{
"portal_type_source": "Software Product",
"portal_type_title": "subscription",
"portal_type_fields": "subscription_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,16]},
"form": true,
"id": "subscription_overview",
"property_dict": {
"link": true,
"link_identifier": "id",
"check": true,
"action": "check",
"dynamic_children": [1]
},
"children": [{
"generate": "widget",
"type": "controlbar",
"class_list": "responsive",
"children": [
{"type": "input", "direct": {"id":"search_subscription_list", "className": "translate"}, "attributes": {"data-action":"search", "data-enhanced":"true", "data-i18n": "[placeholder]page_dict.software.search","placeholder":"Search available software", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"}, "logic":{"clear":"true", "action":"search"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"records"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"selected"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"filter"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"sorted"}}
]
}, {
"generate":"widget",
"type": "listview",
"class_list": "",
"theme": "slapos-white",
"property_dict": {
"inset":"true",
"filter": "true",
"input": "#search_subscription_list"
},
"children": []
}, {
"generate":"widget",
"type": "controlbar",
"class_list": "responsive",
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "",
"property_dict": {
"direction": "horizontal"
},
"children": [{
"type": "select",
"direct": {"id": "sort_subscription_list", "className": "action"},
"attributes": {
"data-icon":"sort",
"data-action": "sort"
},
"logic": {
"options": [
{"value": "", "text": "Sort by", "text_i18n": "global_dict.pagination_dict.sort", "selected": true, "disabeld": true},
{"value": "title", "text": "Title", "text_i18n":"portal_type_dict.subscription_dict.field_list.title.title"},
{"value": "price", "text": "Price", "text_i18n":"portal_type_dict.subscription_dict.field_list.price.title"}
]
}
}]
},{
"generate": "widget",
"type": "controlgroup",
"class_list": "pagination",
"property_dict": {
"direction": "horizontal"
},
"children": [
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.first", "data-action":"first", "data-icon":"step-backward", "data-iconpos":"notext"}, "logic": {"text":"First"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.previous", "data-action":"prev", "data-icon":"backward", "data-iconpos":"notext"}, "logic": {"text":"Step Backward"}},
{"type":"select", "direct":{"id":"paginate_subscription_list", "className":"action"},"attributes": {"data-icon":"reorder", "data-action":"limit", "data-iconpos":"notext"},"logic": {"options":[{"value": "16", "text": "16", "text_i18n":"global_dict.pagination_dict.16"},{"value": "32", "text": "32", "text_i18n":"global_dict.pagination_dict.32"},{"value": "64", "text": "64", "text_i18n":"global_dict.pagination_dict.64"}, {"value": "128", "text": "128", "text_i18n":"global_dict.pagination_dict.128"}]}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.next", "data-action":"next", "data-icon":"forward", "data-iconpos":"notext"}, "logic": {"text":"Step Forward"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.last", "data-action":"last", "data-icon":"step-forward", "data-iconpos":"notext"}, "logic": {"text": "Last"}}
]
}, {
"generate":"widget",
"type":"controlgroup",
"property_dict": {"direction":"horizontal"},
"children":[
{"type": "input", "direct": {"value": "Submit", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"remove", "data-i18n":"[value]global_dict.common_dict.delete", "data-theme": "slapos-black", "data-enhanced": "true"}}
]
}]
}]
}
This diff is collapsed.
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