Skip to content

Commit

Permalink
Merge r27112 from trunk:
Browse files Browse the repository at this point in the history
  Acquire the standard_macros view using TALES view
  traversal (context/@@standard_macros) instead of
  through views
  • Loading branch information
philikon committed Aug 13, 2004
1 parent 0f0c9e7 commit 3ec2cdf
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 2 deletions.
2 changes: 1 addition & 1 deletion browser/add.pt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html metal:use-macro="views/standard_macros/addingdialog">
<html metal:use-macro="context/@@standard_macros/addingdialog">
<body>
<div metal:fill-slot="body">

Expand Down
2 changes: 1 addition & 1 deletion browser/contents.pt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html metal:use-macro="views/standard_macros/view">
<html metal:use-macro="context/@@standard_macros/view">
<body>
<div metal:fill-slot="body">
<div metal:define-macro="contents">
Expand Down
21 changes: 21 additions & 0 deletions browser/find.pt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<html metal:use-macro="context/@@standard_macros/dialog">
<body>
<div metal:fill-slot="body" >

<form action="@@find.html" method="get">
<input type="text" name="ids" value="" /><br />
<input type="submit" name="find_submit" value=" Find "
i18n:attributes="value find-button"/>
</form>

<table tal:condition="request/ids|nothing">
<tr tal:repeat="item python:view.findByIds(request['ids'])">
<td>
<a href="" tal:attributes="href item/url" tal:content="item/id">id</a>
</td>
</tr>
</table>

</div>
</body>
</html>
77 changes: 77 additions & 0 deletions browser/index.pt
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<html metal:use-macro="context/@@standard_macros/page">
<head>
<style metal:fill-slot="headers" type="text/css">
<!--
.ContentIcon {
width: 20px;
}
.ContentTitle {
text-align: left;
}
-->
</style>
</head>
<body>
<div metal:fill-slot="body">

<table
id="sortable" class="listing" summary="Content listing"
cellpadding="2" cellspacing="0"
i18n:attributes="summary">

<thead>
<tr>
<th>&nbsp;</th>
<th i18n:translate="">Name</th>
<th i18n:translate="">Title</th>
<th i18n:translate="">Created</th>
<th i18n:translate="">Modified</th>
</tr>
</thead>

<tbody>

<tr tal:repeat="info view/listContentInfo">
<td>
<a
href="#"
tal:attributes="href info/url"
tal:content="structure info/icon|default" />
</td>

<td class="ContentTitle">
<a href="subfolder_id"
tal:attributes="href info/url"
tal:content="info/id"
>ID here</a>
</td>

<td><span tal:content="info/title|default">&nbsp;</span></td>
<td><span tal:content="info/created|default">&nbsp;</span></td>
<td><span tal:content="info/modified|default">&nbsp;</span></td>

</tr>

<tr tal:condition="nothing">

<td class="ContentIcon">
<img alt="Document" src="../../ZMI/www/document_icon.gif" />
</td>

<td class="ContentTitle">
<a href="document_id">Document Title or ID here</a>
</td>

</tr>
</tbody>

</table>

</div>
</body>
</html>




0 comments on commit 3ec2cdf

Please sign in to comment.