Commit eebf7fa7 authored by Sven Franck's avatar Sven Franck

data: add global & home base layout for new app

parent 2815ce8b
...@@ -47,8 +47,7 @@ ...@@ -47,8 +47,7 @@
"property_dict": { "property_dict": {
"theme": "slapos-white", "theme": "slapos-white",
"add_content": 0, "add_content": 0,
"title":"Job Board", "title_i18n": "global_dict.bug_report"
"title_i18n": "global_dict.job_board"
}, },
"children": [ "children": [
{ {
...@@ -58,45 +57,12 @@ ...@@ -58,45 +57,12 @@
"direction": "horizontal" "direction": "horizontal"
}, },
"children": [ "children": [
{"type":"select", "direct": {"id": "switch_language", "className":"action responsive translate"}, "attributes": {"data-action":"translate", "data-icon":"flag-fr"}, "logic": {"wrapper_class_list":"flag", "options": [{"value": "en-EN", "text":"English", "text_i18n":"global_dict.english"}, {"value": "fr-FR", "text": "Chinese", "text_i18n":"global_dict.french", "selected": true}]}}, {"type":"select", "direct": {"id": "switch_language", "className":"action responsive translate"}, "attributes": {"data-action":"translate", "data-icon":"flag-fr"}, "logic": {"wrapper_class_list":"flag", "options": [{"value": "en-EN", "text_i18n":"global_dict.english"}, {"value": "fr-FR", "text_i18n":"global_dict.french", "selected": true}]}}
{"type":"a", "direct": {"href": "#global-user", "className":"responsive translate"}, "attributes": {"data-rel":"panel", "data-icon":"user", "data-i18n":"global_dict.login"}, "logic": {"text":"Connexion"}} ]
}
] ]
} }
] ]
},
{
"generate": "widget",
"type": "panel",
"property_dict": {
"id": "global-user",
"theme": "slapos-black",
"position": "right"
},
"children": [{
"generate": "widget",
"type": "header",
"property_dict": {
"id": "search-header",
"theme": "slapos-black",
"add_content": 0,
"section_list":["last"],
"title": "Connexion",
"title_i18n": "global_dict.login"
},
"children":[{
"type": "a",
"direct": {
"href": "#",
"className": "ui-panel-close ui-icon-remove ui-btn ui-btn-icon-notext ui-shadow ui-corner-all"
},
"attributes": {
"data-enhanced": true,
"data-rel": "close"
},
"logic": {"text": "Close"}
}]
}]
}]
} }
] ]
...@@ -8,28 +8,34 @@ ...@@ -8,28 +8,34 @@
"theme": "slapos-white" "theme": "slapos-white"
}, },
"view_dict": { "view_dict": {
"default": [ "default": [{
{ "type": "div",
"type": "p", "direct": {"className": "span_2"},
"direct": {"className": "translate ui-content-element responsive"}, "children": [{
"attributes": {"data-i18n":"global_dict.info_usage"}, "type": "img",
"logic": {"text": "This application contains IT job postings of various US-based companies. You can apply to a position by posting your CV here. After logging in, you can create your CV and store it permanently in this app in order to make applying to multiple positions easier."} "direct": {"className": "mockup_image", "src":"img/exterminator.jpg", "alt": ":-)"}
}, }, {
{ "type": "span",
"direct": {"className": "mockup_text translate ui-content-element responsive"},
"attributes": {"data-i18n":"global_dict.info_usage"}
}]
}, {
"type": "div",
"direct": {"className": "span_2"},
"children": [{
"generate": "widget", "generate": "widget",
"type": "listview", "type": "listview",
"property_dict": { "property_dict": {
"class_list": "responsive ui-icon-grid", "class_list": "responsive ui-icon-grid custom_grid",
"inset": true, "inset": true,
"theme": "slapos-black",
"map_children":"listItem" "map_children":"listItem"
}, },
"children": [ "children": [
{"type": "item", "left": [{"type": "icon", "icon": "search"}], "href": "#job_posting_module", "center": [{"type": "h1", "text": "Browse Job Postings", "text_i18n": "global_dict.postings"}, {"type": "p", "text": "Search through the list of available job offers.", "text_i18n":"global_dict.postings_info"}]}, {"type": "item", "left": [{"type": "icon", "icon": "bug"}], "href": "#bug_posting_module", "center": [{"type": "h1", "text_i18n": "global_dict.post_new_bug"}, {"type": "p", "text_i18n": "global_dict.post_info"}]}
{"type": "item", "left": [{"type": "icon", "icon": "clipboard"}], "href": "#cv_module", "center": [{"type": "h1", "text": "Submit CV", "text_i18n": "global_dict.cv"}, {"type": "p", "text": "Generate and manage your CVs.", "text_i18n":"global_dict.cv_info"}]},
{"type": "item", "left": [{"type": "icon", "icon": "edit"}], "href": "#application_module", "center": [{"type": "h1", "text": "Apply for a Job", "text_i18n": "global_dict.apply_job"}, {"type": "p", "text": "Monitor the status of your application", "text_i18n": "global_dict.application_info"}]}
]
}
] ]
}]
}]
} }
} }
] ]
......
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