summaryrefslogtreecommitdiffstats
path: root/tabellio/webviews/deputy_pfb_folder.pt
blob: 131b8eb5b90e5bfe2f7d87c95c19e245beb14191 (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
51
52
53
54
55
56
57
58
59
<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">
    <tal:block tal:define="cache view/cache"/>
       <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:replace="structure provider:plone.abovecontentbody" />

       <div class="deputies-and-others">
       <dl class="enableFormTabbing" id="deputies-tabs">
       <div tal:omit-tag="" tal:repeat="item python: [x for x in context.values() if x.portal_type == 'Document' and x.exclude_from_nav()]">
        <dt tal:attributes="id string:fieldsetlegend-${item/id}" tal:content="item/Title">title</dt>
        <dd tal:attributes="id string:fieldset-${item/id}">
         <div tal:replace="structure item/getText"/>
        </dd>
        </div>

        <dt id="fieldsetlegend-parlementaires">Parlementaires</dt>
        <dd id="fiedset-parlementaires">
         <input name="fieldset.current" type="hidden" value="#fieldset-parlementaires"/>
         <div tal:replace="structure view/renderDeputyListForm"/>

	  <a href="parlementaires.csv" id="export-results" class="button">Exporter la liste des parlementaires</a>

        </dd>

        <dt id="fieldsetlegend-photographies">RĂ©pertoire photographique</dt>
        <dd id="fieldset-photographies">
          <tal:block tal:repeat="entry view/sortedDeputies">
            <div tal:condition="entry/picture">
            <a tal:attributes="href entry/absolute_url"><img
              tal:attributes="src string:${entry/id}/photo"/>
              <span tal:content="entry/Title"/>
              </a>
            </div>
          </tal:block>
          <br style="clear: both;"/>
        </dd>

       </dl>
       </div>

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

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

</body>
</html>