[Checkins] SVN: Sandbox/luciano/kirbi/index.pt revised book template
Luciano Ramalho
luciano at ramalho.org
Tue Aug 14 21:25:25 EDT 2007
Log message for revision 78827:
revised book template
Changed:
A Sandbox/luciano/kirbi/index.pt
-=-
Copied: Sandbox/luciano/kirbi/index.pt (from rev 78826, Sandbox/luciano/kirbi/src/kirbi/book_templates/details.pt)
===================================================================
--- Sandbox/luciano/kirbi/index.pt (rev 0)
+++ Sandbox/luciano/kirbi/index.pt 2007-08-15 01:25:25 UTC (rev 78827)
@@ -0,0 +1,70 @@
+<html metal:use-macro="context/@@master/page">
+<head>
+ <title metal:fill-slot="title">
+ Book detail: <span tal:replace="view/main_title" />
+ </title>
+</head>
+<body>
+ <span metal:fill-slot="content_title">Book details</span>
+ <span metal:fill-slot="content_actions">
+ <form class="search" action=".">
+ <input type="text" name="query">
+ <input type="submit" name="submit" value="search">
+ </form>
+ </span>
+
+ <div metal:fill-slot="content">
+
+ <div class="details">
+ <img class="cover" tal:attributes="src view/coverUrl">
+
+ <h1 tal:condition="view/main_title"
+ tal:content="view/main_title">Main Title</h1>
+ <h1 tal:condition="not:view/main_title"
+ class="unknown">(title not available)</h1>
+ <h2 tal:content="view/sub_title">sub-title</h2>
+
+ <table>
+ <tr><th>Creators</th>
+ <td>
+ <tal:creator repeat="creator context/creatorsListDict">
+ <tal:comment replace="nothing">Next few lines have weird
+ indentation because of the need to control the spaces
+ between names and the comma</tal:comment>
+ <a tal:attributes="href
+ string:${view/creator_search_url}${creator/name}"
+ tal:content="creator/name">
+ Joe Doe</a><tal:role condition="creator/role">
+ (<span tal:replace="creator/role" />)</tal:role><tal:comma
+ condition="not:repeat/creator/end">, </tal:comma>
+ </tal:creator>
+ </td>
+ </tr>
+ <tr><th>ISBN-13</th>
+ <td tal:content="view/isbn13">9780123456789</td>
+ </tr>
+ <tr><th>Edition</th>
+ <td tal:content="context/edition">2nd</td>
+ </tr>
+ <tr><th>Publisher</th>
+ <td tal:content="context/publisher">Sample Publishing Co.</td>
+ </tr>
+ <tr><th>Issued</th>
+ <td tal:content="context/issued">2006-12-31</td>
+ </tr>
+ <tr><th>Language</th>
+ <td tal:content="context/language">pt</td>
+ </tr>
+ </table>
+
+ </div><!-- /details -->
+
+ <!-- XXX: only the site manager should be able to edit a book -->
+ <form class="search" tal:attributes="action python:view.url('edit')">
+ <input type="submit" name="submit" value="edit">
+ </form>
+
+
+ </div><!-- /content -->
+ </body>
+</html>
More information about the Checkins
mailing list