summaryrefslogtreecommitdiffstats
path: root/tabellio/webviews/folder_bottom_nav_view.pt
blob: 3caf2bf58d7656c0fa7ceaea37ba0dbfaa1afe0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      lang="en"
      metal:use-macro="context/main_template/macros/master"
      i18n:domain="plone">

<body>
  <metal:main fill-slot="main">
    <tal:main-macro metal:define-macro="main">

        <div tal:replace="structure provider:plone.abovecontenttitle" />
        <h1 metal:use-macro="context/kss_generic_macros/macros/generic_title_view">Title</h1>
        <div tal:replace="structure provider:plone.belowcontenttitle" />

        <div tal:condition="context/Description" id="parent-fieldname-description">
        <img tal:condition="python: hasattr(context, 'header_image')" src="header_image"
             style="float: left; margin: 0 10px 10px 0"/>
        <div tal:replace="context/Description">
            Description
        </div>
        </div>

        <tal:entry tal:define="children python: [x for x in context.values() if not x.exclude_from_nav()]">
        <div id="bottom-nav" class="category_buttons"
                tal:attributes="class python: len(children) == 2 and 'category_buttons_double' or 'category_buttons'">
        <div tal:repeat="item children">
        <div tal:attributes="class string:category ${item/id}">
         <a href="#" class="summary url" tal:attributes="href item/id">
          <div class="category_image">
            <img width="210" height="83"
               tal:attributes="src string:${item/id}-vignette"/>
          </div>
          <div class="category_content">
            <p tal:content="item/Title">Item Title</p>
          </div>
          <div class="category_image_effect"/>
         </a>
        </div>
        </div>
        </div>
        </tal:entry>

        <div tal:replace="structure provider:plone.belowcontentbody" />

    </tal:main-macro>
</metal:main>
</body>
</html>