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
3d34d589
Commit
3d34d589
authored
Apr 30, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: added product module and overview page
parent
1cb981c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
1 deletion
+66
-1
data/global.json
data/global.json
+1
-1
data/product_module.json
data/product_module.json
+18
-0
data/product_overview.json
data/product_overview.json
+47
-0
No files found.
data/global.json
View file @
3d34d589
...
...
@@ -82,7 +82,7 @@
"secret_hash"
:
"foo"
,
"public_key"
:
"6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children"
:
[{
"type"
:
"input"
,
"direct"
:
{
"id"
:
"product_search"
,
"className"
:
"
required
translate"
},
"attributes"
:
{
"type"
:
"text"
,
"data-theme"
:
"slapos-white"
,
"data-i18n"
:
"[placeholder]global_dict.search_items"
},
"logic"
:
{
"clear"
:
true
,
"action"
:
{
"action"
:
"search"
,
"icon"
:
"search"
,
"text"
:
"Search"
,
"text_i18n"
:
"global_dict.search_items"
},
"add_label"
:
false
}},
"children"
:
[{
"type"
:
"input"
,
"direct"
:
{
"id"
:
"product_search"
,
"className"
:
"translate"
},
"attributes"
:
{
"type"
:
"text"
,
"data-theme"
:
"slapos-white"
,
"data-i18n"
:
"[placeholder]global_dict.search_items"
},
"logic"
:
{
"clear"
:
true
,
"action"
:
{
"action"
:
"search"
,
"icon"
:
"search"
,
"text"
:
"Search"
,
"text_i18n"
:
"global_dict.search_items"
},
"add_label"
:
false
}},
{
"generate"
:
"widget"
,
"type"
:
"controlgroup"
,
...
...
data/product_module.json
0 → 100644
View file @
3d34d589
{
"property_dict"
:
{},
"children"
:
[
{
"generate"
:
"widget"
,
"type"
:
"page"
,
"property_dict"
:
{
"title_i18n"
:
"portal_type_dict.product_dict.text_dict.products"
,
"theme"
:
"slapos-white"
},
"view_dict"
:
{
"default"
:
[
{
"href"
:
"product_overview"
}
]
}
}
]
}
\ No newline at end of file
data/product_overview.json
0 → 100644
View file @
3d34d589
{
"portal_type_source"
:
"Product"
,
"portal_type_title"
:
"product"
,
"skip_total_records"
:
true
,
"initial_query"
:
{
"include_docs"
:
true
,
"limit"
:
[
0
,
16
],
"select_list"
:
[
"currency"
,
"_id"
,
"brand"
,
"description_short"
,
"price"
,
"default_image_path"
]},
"property_dict"
:
{
"link"
:
true
,
"link_identifier"
:
"_id"
,
"link_core"
:
"product_module"
,
"pagination"
:
{
"class_list"
:
"center"
,
"option_list"
:
[
{
"value"
:
"8"
,
"text"
:
"8"
,
"text_i18n"
:
"global_dict.8"
},
{
"value"
:
"16"
,
"text"
:
"16"
,
"text_i18n"
:
"global_dict.16"
},
{
"value"
:
"32"
,
"text"
:
"32"
,
"text_i18n"
:
"global_dict.32"
},
{
"value"
:
"64"
,
"text"
:
"64"
,
"text_i18n"
:
"global_dict.64"
}
]
}
},
"scheme"
:
[
{
"position"
:
"left"
,
"field_list"
:
[
{
"field"
:
"default_image_path"
,
"type"
:
"image"
}
]
},
{
"position"
:
"center"
,
"field_list"
:
[
{
"field"
:
"brand"
,
"type"
:
"h3"
,
"mergeText"
:
"description_short"
},
{
"field"
:
"price"
,
"type"
:
"p"
,
"format"
:
{
"type"
:
"integer"
,
"digits"
:
2
},
"mergeText"
:
"currency"
}
]
}
],
"children"
:
[{
"generate"
:
"widget"
,
"type"
:
"listview"
,
"property_dict"
:
{
"class_list"
:
"responsive"
,
"filter"
:
"true"
,
"input"
:
"#product_search"
,
"theme"
:
"slapos-white"
,
"map_children"
:
"listItem"
,
"dynamic"
:
true
},
"children"
:[]
}]
}
\ No newline at end of file
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