summaryrefslogtreecommitdiffstats
path: root/tabellio/webviews/deputy.pt
blob: 19639a5db916ad7f702152f577c47723388e989e (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"
      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="fr"
      metal:use-macro="context/main_template/macros/master"
      i18n:domain="tabellio.webviews">
<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" />

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

        <div id="politicBanner">
        <div id="deputy-id">
        <div class="picturebloc">
        <img tal:condition="context/picture" tal:replace="structure context/@@images/picture" />
        </div>
        <div class="textbloc">
        <div class="whitebloc">
        <h1><span class="lastname" tal:content="context/lastname"/>
            <span class="firstname" tal:content="context/firstname"/></h1>
        <span tal:condition="context/polgroup" id="polgroup"
                tal:attributes="class context/polgroup/to_object/id"
                tal:content="context/polgroup/to_object/title"/>
        <p>
        <span id="birthline" tal:content="view/birthline"/><br/>
        <span tal:condition="context/bio" id="bio" tal:content="context/bio"/>
        <br tal:condition="not: context/active"/>
        <span tal:condition="not: context/active">Ce député ne siège plus au parlement.</span>
        <br tal:condition="context/seat_number"/>
        <span tal:condition="context/seat_number" id="deputy-seats">
          <span tal:content="context/title">Foo bar </span> est
          <span tal:omit-tag="" tal:condition="python: context.sex == 'F'">députée francophone bruxelloise. Elle</span>
          <span tal:omit-tag="" tal:condition="python: context.sex == 'M'">député francophone bruxellois. Il</span>
          siège au banc numéro <span tal:replace="context/seat_number">23</span>.
        </span>
        </p>
        </div>
        <div class="greybloc">
        <a tal:condition="context/website" tal:attributes="href context/website">Site personnel</a>
        </div>
        </div>
        </div>
        </div>
        <div id="politicBannerShadow"></div>

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

        <dl class="enableFormTabbing" id="deputy-tabs">
        <dt tal:condition="context/active">CV</dt>
        <dd tal:condition="context/active">
         <div id="cvDetail" class="copytext">
         <h3 tal:condition="context/degrees">Formation</h3>
         <div tal:condition="context/degrees" tal:content="structure view/degrees"/>
         <h3 tal:condition="context/profession">Profession</h3>
         <div tal:condition="context/profession" tal:content="structure view/profession"/>
         <h3 tal:condition="context/current_functions">Fonctions au sein du Parlement</h3>
         <div tal:condition="context/current_functions" tal:content="structure context/current_functions/output"/>
         <h3 tal:condition="context/past_functions">Fonctions passées au sein du Parlement</h3>
         <div tal:condition="context/past_functions" tal:content="structure context/past_functions/output"/>
         <h3 tal:condition="context/mandates">Mandats politiques exercés antérieurement ou actuellement</h3>
         <div tal:condition="context/mandates" tal:content="structure view/mandates"/>
         </div>
        </dd>

        <dt>Activité parlementaire</dt>
        <dd>
         <div>
          <div tal:define="com_roles view/get_commissions_and_roles"
               tal:condition="python: com_roles and not context.current_functions">
            <h2>Commissions</h2>
            <ul>
             <li tal:repeat="role com_roles"><span tal:replace="python: role[0]"/>
               <span tal:replace="python: role[1]"/>
               <span tal:content="python: role[2].Title()">plop</span>
             </li>
          </div>
          <div tal:repeat="session view/sessions_with_activity">
           <h2>Session <span tal:replace="session">session</span></h2>

           <ul>
            <li tal:repeat="activity python:view.activity(session)"><span
                tal:content="python: hasattr(activity[0], 'date_str') and activity[0].date_str or ''"/> :

                <a tal:attributes="href python: activity[0].canonical_path"><span tal:content="python: activity[0].title"/></a>
                <span tal:condition="python: activity[1] == 'participant'">(en tant que participant)</span>
            </li>
           </ul>
          </div>
         </div>
        </dd>

        <dt tal:condition="context/active">Coordonnées</dt>
        <dd tal:condition="context/active">
         <div>
           <p tal:define="contact_form_url view/contact_form_url" tal:condition="contact_form_url">
             <a class="button" tal:attributes="href
             string:${contact_form_url}/deputy?form.widgets.deputy=${context/getId}">Utiliser le formulaire de contact</a>
           </p>

           <div tal:condition="python: context.private_address and (not context.work_address or not context.work_address.street)">
             <p>
              <span tal:condition="context/private_address/title">
                <span tal:replace="context/private_address/title"/><br/></span>
              <span tal:condition="context/private_address/street">
                <span tal:replace="context/private_address/street"/><br/></span>
              <span tal:condition="context/private_address/zipcode"
                    tal:replace="context/private_address/zipcode"/>
              <span tal:condition="context/private_address/city">
                    <span tal:replace="context/private_address/city"/><br/></span>
              <span tal:condition="context/private_address/phone1">
                ☎ <span tal:replace="context/private_address/phone1"/><br/></span>
              <span tal:condition="context/private_address/phone2">
                ☎ <span tal:replace="context/private_address/phone2"/><br/></span>
              <span tal:condition="python: context.work_address and context.work_address.phone1">
                ☎ <span tal:replace="context/work_address/phone1"/> (bureau)<br/></span>
              <span tal:condition="context/private_address/fax">
                ℻ <span tal:replace="context/private_address/fax"/><br/></span>
              <span tal:condition="python: context.work_address and context.work_address.fax">
                ℻ <span tal:replace="context/work_address/fax"/> (bureau)<br/></span>
              <a tal:condition="context/private_address/email"
                    tal:attributes="href string:mailto:${context/private_address/email}"
                    tal:content="context/private_address/email">email</a>
              <a tal:condition="python: context.work_address and context.work_address.email"
                    tal:attributes="href string:mailto:${context/work_address/email}"
                    tal:content="context/work_address/email">email</a>
              </p>

           </div>

           <div tal:condition="python: context.private_address and context.work_address and context.work_address.street">
           <div tal:condition="context/private_address">
             <h2>Privée</h2>
             <p>
              <span tal:condition="context/private_address/title">
                <span tal:replace="context/private_address/title"/><br/></span>
              <span tal:condition="context/private_address/street">
                <span tal:replace="context/private_address/street"/><br/></span>
              <span tal:condition="context/private_address/zipcode"
                    tal:replace="context/private_address/zipcode"/>
              <span tal:condition="context/private_address/city">
                    <span tal:replace="context/private_address/city"/><br/></span>
              <span tal:condition="context/private_address/phone1">
                ☎ <span tal:replace="context/private_address/phone1"/><br/></span>
              <span tal:condition="context/private_address/phone2">
                ☎ <span tal:replace="context/private_address/phone2"/><br/></span>
              <span tal:condition="context/private_address/fax">
                ℻ <span tal:replace="context/private_address/fax"/><br/></span>
              <a tal:condition="context/private_address/email"
                    tal:attributes="href string:mailto:${context/private_address/email}"
                    tal:content="context/private_address/email">email</a>
              </p>
           </div>
           <div tal:condition="context/work_address">
             <h2>Bureau</h2>
             <p>
              <span tal:condition="context/work_address/title">
                <span tal:replace="context/work_address/title"/><br/></span>
              <span tal:condition="context/work_address/street">
                <span tal:replace="context/work_address/street"/><br/></span>
              <span tal:condition="context/work_address/zipcode"
                    tal:replace="context/work_address/zipcode"/>
              <span tal:condition="context/work_address/city">
                    <span tal:replace="context/work_address/city"/><br/></span>
              <span tal:condition="context/work_address/phone1">
                ☎ <span tal:replace="context/work_address/phone1"/><br/></span>
              <span tal:condition="context/work_address/phone2">
                ☎ <span tal:replace="context/work_address/phone2"/><br/></span>
              <span tal:condition="context/work_address/fax">
                ℻ <span tal:replace="context/work_address/fax"/><br/></span>
              <a tal:condition="context/work_address/email"
                    tal:attributes="href string:mailto:${context/work_address/email}"
                    tal:content="context/work_address/email">email</a>
              </p>
           </div>
           <div tal:condition="context/work_address_2">
             <h2>Bureau (2)</h2>
             <p>
              <span tal:condition="context/work_address_2/title">
                <span tal:replace="context/work_address_2/title"/><br/></span>
              <span tal:condition="context/work_address_2/street">
                <span tal:replace="context/work_address_2/street"/><br/></span>
              <span tal:condition="context/work_address_2/zipcode"
                    tal:replace="context/work_address_2/zipcode"/>
              <span tal:condition="context/work_address_2/city">
                    <span tal:replace="context/work_address_2/city"/><br/></span>
              <span tal:condition="context/work_address_2/phone1">
                ☎ <span tal:replace="context/work_address_2/phone1"/><br/></span>
              <span tal:condition="context/work_address_2/phone2">
                ☎ <span tal:replace="context/work_address_2/phone2"/><br/></span>
              <span tal:condition="context/work_address_2/fax">
                ℻ <span tal:replace="context/work_address_2/fax"/><br/></span>
              <a tal:condition="context/work_address_2/email"
                    tal:attributes="href string:mailto:${context/work_address_2/email}"
                    tal:content="context/work_address_2/email">email</a>
              </p>
           </div>
           </div>
         </div>
        </dd>
        </dl>

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

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

</body>
</html>