examples/blog/root/entry_form.xhtml in nitro-0.7.0 vs examples/blog/root/entry_form.xhtml in nitro-0.8.0
- old
+ new
@@ -1,17 +1,22 @@
<?xml version="1.0"?>
-<div id="comments">
+<div id="comments" xmlns:x="http://www.navel.gr/xml/shader.xsd">
+
+<?r errors = session[:errors] ?>
+
<h2>Post new entry:</h2>
- <form action="new_entry" method="post">
+ <form id="new_entry" action="new_entry" method="post">
<p>
<b>Title:</b><br />
<input type="text" name="title" />
+ <x:error attr="title" />
</p>
<p>
<b>Body:</b><br />
<textarea name="body" style="width: 90%; height: 100px">#{}</textarea>
+ <x:error attr="body"><br /></x:error>
</p>
<input type="submit" value="Post" />
</form>
</div>