-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Acquire the standard_macros view using TALES view traversal (context/@@standard_macros) instead of through views
- Loading branch information
Showing
4 changed files
with
100 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> </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"> </span></td> | ||
<td><span tal:content="info/created|default"> </span></td> | ||
<td><span tal:content="info/modified|default"> </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> | ||
|
||
|
||
|
||
|