Move phone list to its own page
This commit is contained in:
parent
98b42981e2
commit
350b3a8ed5
|
@ -26,6 +26,13 @@
|
||||||
<permission value="View"/>
|
<permission value="View"/>
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
|
<alias from="phones" to="pcfannuaire_phones"/>
|
||||||
|
|
||||||
|
<action title="Phones" action_id="phones" category="object" condition_expr=""
|
||||||
|
url_expr="string:${object_url}/phones" visible="True">
|
||||||
|
<permission value="View"/>
|
||||||
|
</action>
|
||||||
|
|
||||||
<alias from="photos" to="pcfannuaire_photos"/>
|
<alias from="photos" to="pcfannuaire_photos"/>
|
||||||
|
|
||||||
<action title="Liste photographique" action_id="photos" category="object" condition_expr=""
|
<action title="Liste photographique" action_id="photos" category="object" condition_expr=""
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
<!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>
|
||||||
|
|
||||||
|
<table id="phone-numbers">
|
||||||
|
<tr tal:repeat="entry python: context.getEntriesWithPhone()">
|
||||||
|
<td>
|
||||||
|
<span tal:replace="entry/givenName">givenName</span>
|
||||||
|
<span tal:replace="entry/sn">sn</span>
|
||||||
|
</td>
|
||||||
|
<td class="col-phone">
|
||||||
|
<span tal:replace="entry/shortTelephoneNumber">000</span>
|
||||||
|
<span tal:condition="entry/mobile"><br/><span tal:replace="entry/mobile">mobile</span></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div tal:replace="structure provider:plone.belowcontentbody" />
|
||||||
|
</tal:main-macro>
|
||||||
|
</metal:main>
|
||||||
|
</body>
|
||||||
|
</html>
|
Reference in New Issue