Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
8d40911e
Commit
8d40911e
authored
Mar 12, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added test page module
parent
8b62be9d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
575 additions
and
0 deletions
+575
-0
data/global.json
data/global.json
+11
-0
data/test_page_fieldlist.json
data/test_page_fieldlist.json
+393
-0
data/test_page_module.json
data/test_page_module.json
+22
-0
data/test_page_overview.json
data/test_page_overview.json
+90
-0
lang/en-EN/dict.json
lang/en-EN/dict.json
+59
-0
No files found.
data/global.json
View file @
8d40911e
...
...
@@ -123,6 +123,17 @@
{
"type"
:
"item"
,
"href"
:
"#help"
,
"left"
:
{
"icon"
:
"question"
},
"center"
:
{
"text"
:
[{
"type"
:
"h1"
,
"text"
:
"Help"
,
"text_i18n"
:
"global_dict.help"
},{
"type"
:
"p"
,
"text"
:
"Contact Customer Support"
,
"text_i18n"
:
"global_dict.help_subtitle"
}]}},
{
"type"
:
"item"
,
"href"
:
"#about"
,
"left"
:
{
"icon"
:
"book"
},
"center"
:
{
"text"
:
[{
"type"
:
"h1"
,
"text"
:
"About"
,
"text_i18n"
:
"global_dict.about"
},
{
"type"
:
"p"
,
"text"
:
"Request further information"
,
"text_i18n"
:
"global_dict.about_subtitle"
}]}}
]
},
{
"generate"
:
"widget"
,
"type"
:
"listview"
,
"class_list"
:
null
,
"theme"
:
"slapos-black"
,
"form"
:
null
,
"property_dict"
:
{},
"children"
:
[
{
"type"
:
"divider"
,
"center"
:
{
"text"
:
[{
"type"
:
"h1"
,
"text"
:
"Development"
,
"text_i18n"
:
"global_dict.dev"
}]}},
{
"type"
:
"item"
,
"href"
:
"#test_page_module"
,
"left"
:
{
"icon"
:
"dashboard"
},
"center"
:
{
"text"
:
[{
"type"
:
"h1"
,
"text"
:
"Test"
,
"text_i18n"
:
"global_dict.test"
},
{
"type"
:
"p"
,
"text"
:
"Test Environment"
,
"text_i18n"
:
"global_dict.test_environment"
}]}}
]
},
{
"type"
:
"a"
,
"direct"
:
{
"className"
:
"unenhanced ui-btn"
,
"href"
:
"http://nexedi.com"
,
"external"
:
true
},
...
...
data/test_page_fieldlist.json
0 → 100644
View file @
8d40911e
This diff is collapsed.
Click to expand it.
data/test_page_module.json
0 → 100644
View file @
8d40911e
{
"generate"
:
"gadget"
,
"type"
:
"pageIndex"
,
"property_dict"
:
{},
"children"
:
[
{
"generate"
:
"widget"
,
"type"
:
"page"
,
"title"
:
"Test Page Module"
,
"title_i18n"
:
"portal_type_dict.test_page_dict.text_dict.title"
,
"theme"
:
"slapos-white"
,
"view_dict"
:
{
"default"
:
[{
"generate"
:
"gadget"
,
"type"
:
"listbox"
,
"href"
:
"test_page_overview"
}
]
}
}
]
}
data/test_page_overview.json
0 → 100644
View file @
8d40911e
{
"portal_type_source"
:
"Test Page"
,
"portal_type_title"
:
"test"
,
"portal_type_fields"
:
"test_page_fieldlist"
,
"initial_query"
:
{
"include_docs"
:
true
,
"limit"
:[
0
,
8
]},
"form"
:
true
,
"view"
:
"web_view"
,
"property_dict"
:
{
"dynamic_children"
:
[
1
],
"requires_authentication"
:
true
,
"depends_on"
:
"login_state"
,
"wrap_gadget"
:
2
,
"link"
:
true
,
"link_identifier"
:
"_id"
,
"caption"
:
{
"slot"
:
1
,
"text"
:
"Test Page Overview"
,
"text_i18n"
:
"portal_type_dict.test_page_dict.text_dict.overview"
},
"pagination"
:
{
"slot"
:
2
,
"option_list"
:
[
{
"value"
:
"8"
,
"text"
:
"8"
,
"text_i18n"
:
"portal_type_dict.test_page_dict.text_dict.8"
},
{
"value"
:
"16"
,
"text"
:
"16"
,
"text_i18n"
:
"portal_type_dict.test_page_dict.text_dict.16"
},
{
"value"
:
"32"
,
"text"
:
"32"
,
"text_i18n"
:
"portal_type_dict.test_page_dict.text_dict.32"
},
{
"value"
:
"64"
,
"text"
:
"64"
,
"text_i18n"
:
"portal_type_dict.test_page_dict.text_dict.64"
}
]
},
"no_items"
:
{
"message"
:
"No person found."
,
"message_i18n"
:
"portal_type_dict.test_page_dict.text_dict.empty"
},
"search"
:
{
"text"
:
"Search Test Pages"
,
"text_i18n"
:
"portal_type_dict.test_page_dict.text_dict.search"
,
"info_list"
:
[
"records"
,
"filter"
,
"selected"
]
},
"allow_new"
:
true
},
"scheme"
:
[
{
"position"
:
"header"
,
"fieldlist"
:
[
{
"field"
:
"_id"
,
"show"
:
true
,
"priority"
:
7
},
{
"field"
:
"reference"
,
"show"
:
true
,
"priority"
:
6
},
{
"field"
:
"short_title"
,
"show"
:
true
,
"priority"
:
6
},
{
"field"
:
"title"
,
"custom"
:
true
,
"show"
:
true
,
"persist"
:
true
,
"text"
:
"Long Title"
,
"text_i18n"
:
"portal_type_dict.test_page_dict.text_dict.long_title"
},
{
"field"
:
"description"
,
"show"
:
true
,
"priority"
:
3
},
{
"field"
:
"version"
,
"show"
:
true
,
"priority"
:
2
},
{
"field"
:
"language"
,
"show"
:
true
,
"priority"
:
6
},
{
"field"
:
"index"
,
"show"
:
true
,
"priority"
:
2
},
{
"field"
:
"sort"
,
"show"
:
true
,
"priority"
:
6
}
]
},{
"position"
:
"body"
,
"fieldlist"
:
[
{
"field"
:
"_id"
,
"show"
:
true
,
"priority"
:
7
},
{
"field"
:
"reference"
,
"show"
:
true
,
"priority"
:
6
},
{
"field"
:
"short_title"
,
"show"
:
true
,
"priority"
:
6
},
{
"field"
:
"title"
,
"show"
:
true
,
"persist"
:
true
},
{
"field"
:
"description"
,
"show"
:
true
,
"priority"
:
3
},
{
"field"
:
"version"
,
"show"
:
true
,
"priority"
:
2
},
{
"field"
:
"language"
,
"show"
:
true
,
"priority"
:
6
},
{
"field"
:
"index"
,
"show"
:
true
,
"priority"
:
2
},
{
"field"
:
"sort"
,
"show"
:
true
,
"priority"
:
6
}
]
}
],
"children"
:
[{
"type"
:
"a"
,
"direct"
:
{
"className"
:
"translate ui-btn ui-icon-edit ui-btn-icon-left ui-corner-all ui-btn-inline ui-btn-slapos-black ui-link"
,
"href"
:
"#test_page/new"
},
"attributes"
:
{
"data-i18n"
:
"[value]portal_type_dict.test_page_dict.text_dict.add"
,
"data-icon"
:
"edit"
},
"logic"
:
{
"text"
:
"Add a test page"
}
},
{
"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"
:
[]
}]
}
lang/en-EN/dict.json
View file @
8d40911e
{
"global_dict"
:
{
"dev"
:
"Developemnt"
,
"test"
:
"Test"
,
"test_environment"
:
"UI test environment"
,
"classic_login"
:
"Or use the default login form"
,
"classic_slapos"
:
"Login/Password"
,
"connection_status"
:
"Connection"
,
...
...
@@ -421,6 +424,62 @@
}
}
},
"test_page_dict"
:
{
"text_dict"
:
{
"title"
:
"Test Page Module"
,
"8"
:
"8"
,
"16"
:
"16"
,
"32"
:
"32"
,
"64"
:
"64"
,
"overview"
:
"Test Page Overview"
,
"empty"
:
"No test pages found"
,
"search"
:
"(I don't work but I should...) Search Test Pages."
,
"long_title"
:
"Long Title"
,
"add"
:
"Add a new test page"
},
"field_dict"
:
{
"reference"
:
{
"title"
:
"Reference"
,
"description"
:
"The reference for this test page."
},
"title"
:
{
"title"
:
"Title"
,
"description"
:
"The title of this test page."
},
"short_title"
:
{
"title"
:
"Short Title"
,
"description"
:
"The short title of this test page."
},
"description"
:
{
"title"
:
"Description"
,
"description"
:
"The description of this test page."
},
"version"
:
{
"title"
:
"Version"
,
"description"
:
"The version of this test page."
},
"sort"
:
{
"title"
:
"Sort"
,
"description"
:
"The sorting criteria? of this test page."
},
"language"
:
{
"title"
:
"Language"
,
"description"
:
"The language of this test page."
},
"index"
:
{
"title"
:
"Index"
,
"description"
:
"The index of this test page."
},
"state"
:
{
"title"
:
"State"
,
"description"
:
"The state of this test page."
},
"_id"
:
{
"title"
:
"ID"
,
"description"
:
"The id of this test page."
}
}
},
"person_dict"
:
{
"text_dict"
:
{
"noperson"
:
"No person found"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment