minimalistic photos page

This commit is contained in:
Frédéric Péters 2009-10-22 11:26:29 +02:00
parent 8c6ad70d3f
commit 98b42981e2
2 changed files with 53 additions and 10 deletions

View File

@ -26,17 +26,10 @@
<permission value="View"/>
</action>
<alias from="trombinoscope" to="pcfannuaire_trombinoscope"/>
<alias from="photos" to="pcfannuaire_photos"/>
<action title="Trombinoscope" action_id="trombinoscope" category="object" condition_expr=""
url_expr="string:${object_url}/trombinoscope" visible="True">
<permission value="View"/>
</action>
<alias from="phones" to="pcfannuaire_pones"/>
<action title="Phones" action_id="phones" category="object" condition_expr=""
url_expr="string:${object_url}/phones" visible="True">
<action title="Liste photographique" action_id="photos" category="object" condition_expr=""
url_expr="string:${object_url}/photos" visible="True">
<permission value="View"/>
</action>

View File

@ -0,0 +1,50 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
xml:lang="en-US"
lang="en-US"
metal:use-macro="here/main_template/macros/master"
i18n:domain="pcfannuaire">
<metal:javascriptslot fill-slot="javascript_head_slot">
<script type="text/javascript" language="JavaScript">
</script>
</metal:javascriptslot>
<body>
<metal:main fill-slot="main">
<tal:main-macro metal:define-macro="main"
tal:define="kssClassesView context/@@kss_field_decorator_view;
getKssClasses nocall:kssClassesView/getKssClassesInlineEditable;">
<div tal:replace="structure provider:plone.abovecontenttitle" />
<h1 metal:use-macro="here/kss_generic_macros/macros/generic_title_view">
Title or id
</h1>
<div tal:replace="structure provider:plone.belowcontenttitle" />
<div tal:replace="structure provider:plone.abovecontentbody" />
<div class="intro"
tal:condition="here/description"
tal:content="structure here/description">
Description
</div>
<div id="photos">
<div tal:repeat="entry python: context.getEntriesWithPhone()" class="photo">
<img src="pcfannuaire_icon.gif" width="130" height="117" />
<span><span tal:replace="entry/givenName">givenName</span>
<span tal:replace="entry/sn">sn</span></span>
</div>
</div>
<div tal:replace="structure provider:plone.belowcontentbody" />
</tal:main-macro>
</metal:main>
</body>
</html>