diff options
Diffstat (limited to 'repoze/bfg/sampleapp/templates')
| -rw-r--r-- | repoze/bfg/sampleapp/templates/blog_entry.pt | 2 | ||||
| -rw-r--r-- | repoze/bfg/sampleapp/templates/blog_entry_add.pt | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/repoze/bfg/sampleapp/templates/blog_entry.pt b/repoze/bfg/sampleapp/templates/blog_entry.pt index 830876525..6614e4950 100644 --- a/repoze/bfg/sampleapp/templates/blog_entry.pt +++ b/repoze/bfg/sampleapp/templates/blog_entry.pt @@ -6,7 +6,7 @@ <p><a href="..">Up</a></p> <h1>${title}</h1> <p>by ${author}</p> - <div tal:content="structure info.body"></div> + <div tal:content="structure body"></div> </div> </body> </html> diff --git a/repoze/bfg/sampleapp/templates/blog_entry_add.pt b/repoze/bfg/sampleapp/templates/blog_entry_add.pt index 101163b44..f06042c03 100644 --- a/repoze/bfg/sampleapp/templates/blog_entry_add.pt +++ b/repoze/bfg/sampleapp/templates/blog_entry_add.pt @@ -9,16 +9,16 @@ <table border="0"> <tr> <th>Title</th> - <td><input type="text" name="title"/>${title}</td> + <td><input type="text" name="title" tal:attributes="value title"/></td> </tr> <tr> <th>Author</th> - <td><input type="text" name="author"/>${author}</td> + <td><input type="text" name="author" tal:attributes="value author"/></td> </tr> <tr> <th>Body</th> - <td><textarea name="body" rows="10" cols="80"> ${body}</textarea - ></td> + <td><textarea name="body" rows="10" cols="80" tal:content="body" + ></textarea></td> </tr> <tr> <td><input type="submit" name="form.submitted" value="Add"/></td> |
