<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html><head>
<style type="text/css">
<%@include file='/css/style.css'%>
</style>
<title>Raamatu muutmine</title>
</head>
<body>
<form:form method="post" action="add" modelAttribute="entry">
  <table id="error">

      <tr>
      <td id="headform" colspan="2">---Raamatu muutmine---</td>
     </tr>
    <tr>
	<tr>
			<td>Pealkir:</td>
			<td><form:input path="title" /></td>
			<td id="error"><form:errors path="title" /></td>
	</tr>
		<tr>
			<td>Autor:</td>
			<td><form:input path="author" /></td>
			<td id="error"><form:errors path="author" /></td>
		</tr>
		<tr>
			<td>&#381;anr:</td>
			<td><form:input path="genre" /></td>
			<td id="error"><form:errors path="genre" /></td>
		</tr>
		<tr>
			<td>T&uuml;&uuml;p:</td>
			<td><form:input path="type" /></td>
			<td id="error"><form:errors path="type" /></td>
		</tr>
		<tr>
			<td>Aasta:</td>
			<td><form:input path="year" /></td>
			<td id="error"><form:errors path="year" /></td>
		</tr>
			<td>Kommentaar:</td>
			<td><form:textarea path="comment" /></td>
			<td id="error"><form:errors path="comment" /></td>
		</tr>
    </table>
<form:hidden path="id" />
  <input type="submit" value="Salvesta" />
</form:form>
</body>
</html>