<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
<head>
<title>${umlModel.description} - Update Model</title>
<style type="text/css">
@import "/WEB-CONTENT/CSS/layout.css";
</style>
</head>
<body>
	<div id="container">
		<%@include file="/WEB-CONTENT/header.jsp"%>
		<div id="content" class="rounded-corners">
			<h1>Update Model: ${umlModel.description}</h1>
			<div class="span-12 last">
				<form:form modelAttribute="umlModel" action="update" method="post">
					<form:hidden path="generatedKey" />
					<form:hidden path="projectIdGenerated" />
					<p>
						<form:label for="description" path="description"
							cssErrorClass="error">Description</form:label>
						<form:input path="description" />
						<form:errors path="description" />
					</p>
					<p>
						<form:label for="type" path="type" cssErrorClass="error">Project type</form:label>
						<form:select path="type" items="${modelTypes}" />
						<form:errors path="type" />
					</p>
					<p>
						<input type="submit" />
					</p>
				</form:form>
			</div>
			<hr>
		</div>
		<%@include file="/WEB-CONTENT/footer.jsp"%>
	</div>
</body>
</html>