<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Crud2</title>
	<link rel="stylesheet" type="text/css" href="/css/global.css" />
</head>
<body>
	<form action="${f:url('insert')}" method="post">
		Title<br />
		<input type="text" ${f:text("title")} class="${f:errorClass('title', 'err')}"/>${f:h(errors.title)}<br />
		Content<br />
		<textarea name="content" class="${f:errorClass('content', 'err')}">${f:h(content)}</textarea>${f:h(errors.content)}<br />
		Date<br />
		<input type="text" ${f:text("date")} class="${f:errorClass('date', 'err')}"/>${f:h(errors.date)}（例：2010-04-01）<br />
		Number<br />
		<input type="text" ${f:text("number")} class="${f:errorClass('number', 'err')}"/>${f:h(errors.number)}<br />
		Flag<br />
		<input type="checkbox" ${f:checkbox("flag")} class="${f:errorClass('flag', 'err')}" />${f:h(errors.flag)}<br />
		<input type="submit" value="Insert"/>
	</form>
</body>
</html>