source: products/quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/templates/sections_mobile.pt @ 3628

Last change on this file since 3628 was 3628, checked in by kroman0, 11 years ago

Fixed html validation of mobile layout, Cleanup templates

File size: 1.9 KB
Line 
1<tal:master define="level options/level|python:0;
2                    children options/children | nothing;
3                    plonefour view/is_plone_four"
4            i18n:domain="plone"
5    ><metal:main define-macro="sections_main"
6        ><tal:navitem repeat="node children"
7            ><tal:option tal:define="show_children   node/show_children;
8                                     children        node/children;
9                                     item_url        node/getURL;
10                                     is_current      node/currentItem;"
11                ><option tal:attributes="value python:item_url;
12                                         title node/Description;"
13                         tal:condition="not:is_current"
14                    ><tal:span tal:repeat="l python:range(level-2)"
15                        >&nbsp;&nbsp;</tal:span
16                    ><tal:span tal:condition="python:level>1"
17                        >&minus;&nbsp;</tal:span
18                    ><tal:span tal:content="node/Title"
19                        >Selected Item Title</tal:span
20                ></option
21            ><option tal:attributes="value python:item_url;
22                                     title node/Description;"
23                     selected="selected"
24                     tal:condition="is_current"
25                ><tal:span tal:repeat="l python:range(level-2)"
26                    >&nbsp;&nbsp;</tal:span
27                ><tal:span tal:condition="python:level>1"
28                    >&minus;&nbsp;</tal:span
29                ><tal:span tal:content="node/Title"
30                    >Selected Item Title</tal:span
31                ></option
32            ><option tal:condition="python: len(children) > 0 and show_children"
33                     tal:replace="structure python:view.mobile(children=children, level=level+1)"
34                >SubMenu</option
35            ></tal:option
36        ></tal:navitem
37    ></metal:main
38></tal:master>
Note: See TracBrowser for help on using the repository browser.