<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>

<h2>Neues Topic anlegen</h2>
<c:if test="${not empty requestScope.Topic}">
<p>(als Instanz des Topics "${requestScope.Topic.name}")</p>
</c:if>

<div class="FORMULAR">

	<html:errors/>

	<html:form action="createtopic" focus="topicname">
		<p><bean:message key="newtopicform.topicname"/>:
		<br><html:text property="topicname"/>

		<c:if test="${not empty requestScope.Topic}">
			<html:hidden property="typeid" value="${requestScope.Topic.id}"/>
		</c:if>

		<hr>

		<p><html:submit><bean:message key="newtopicform.submit"/></html:submit>
	</html:form>
	
</div>
