diff zpt/www/common_template.zpt @ 86:ab836d3f96dc

styles for staff list.
author casties
date Tue, 14 May 2013 17:24:30 +0200
parents b12d80f033fb
children 2f52650cb539
line wrap: on
line diff
--- a/zpt/www/common_template.zpt	Tue May 14 10:36:48 2013 +0200
+++ b/zpt/www/common_template.zpt	Tue May 14 17:24:30 2013 +0200
@@ -55,5 +55,31 @@
   </div>
   <!-- feature -->
 
+
+  <!-- short person entry -->
+  <tr class="line" metal:define-macro="staff_member_row">
+    <td>
+      <a tal:attributes="href python:member.getUrl(baseUrl=memBaseUrl)"> 
+        <span tal:replace="member/content/first_name" />
+        <b><span tal:replace="member/content/last_name" /></b>
+      </a>
+      <tal:block metal:define-slot="name_more"/>
+    </td>
+    <td><span tal:replace="python:here.replaceNotEmpty('%s ',member.content.titles_new)" /> (<span
+      tal:replace="python:here.replaceNotEmpty('%s, ',member.content.status)" /> <span
+      tal:replace="python:here.replaceNotEmpty('%s',member.content.date_stay_at_mpiwg)" /><span
+      tal:replace="python:here.replaceNotEmpty(', funded by the %s',member.content.funded_by)" />)<tal:x
+        condition="python:member.content.current_work_p=='yes'">
+        <i tal:content="python:here.replaceNotEmpty(': %s',member.content.current_work)" />
+      </tal:x> <tal:block tal:condition="python:member.content.e_mail_p=='yes'">
+        <br />
+        <a class="email" tal:attributes="href python:'mailto:'+member.content.e_mail" tal:content="member/content/e_mail">[FMP-field:
+          e_mail]</a>
+      </tal:block></td>
+  </tr>
+  <!-- /short person entry -->
+
+
+
 </body>
 </html>