--- a/src/ztfy/myams/viewlet/toplinks/interfaces.py Wed Jul 02 10:29:06 2014 +0200
+++ b/src/ztfy/myams/viewlet/toplinks/interfaces.py Wed Jul 02 10:30:01 2014 +0200
@@ -23,6 +23,10 @@
"""Top links viewlet manager interface"""
+#
+# Top dropdown menus viewlet
+#
+
class ITopLinksMenu(IViewlet):
"""Top link menu"""
@@ -51,3 +55,35 @@
viewlets = List(title=_("Top links menus"),
value_type=Object(schema=ITopLinksMenu))
+
+
+#
+# Top tabs viewlet
+#
+
+class ITopTabsTab(IViewlet):
+ """Top tabs tab"""
+
+ css_class = TextLine(title=_("Tab CSS class"),
+ required=False)
+
+ label = TextLine(title=_("Tab label"))
+
+ click_handler = TextLine(title=_("Tab click handler"))
+
+ url = TextLine(title=_("Tab link location"))
+
+ data = Dict(title=_("Tab data attributes"),
+ key_type=TextLine(),
+ value_type=TextLine())
+
+
+class ITopTabsViewlet(IViewlet):
+ """Top tabs viewlet"""
+
+ label = TextLine(title=_("Main label"))
+
+ css_class = TextLine(title=_("Main CSS class"))
+
+ viewlets = List(title=_("Top tabs items"),
+ value_type=Object(schema=ITopTabsTab))