<%@ include file="/common/taglibs.jsp" %>

<head>
    <title><fmt:message key="title.admin.projects.new"/> | <fmt:message key="title.admin"/></title>
    <meta name="menu" content="admin"/>
</head>


<s:form method="post" action="projects">
    <c:set var="panelContent">
        <div class="Pane">
        <h2><fmt:message key="heading.admin.projects.new"/></h2>
		<span class="Field MediumField">
			<s:textfield key="label.project.name.friendly" name="name" theme="xhtml" maxlength="40" cssStyle="width:270px;"/>
            &nbsp;<span class="FieldHelp">(40 characters max)</span>
        </span>

        <span class="Field MediumField HugeField">
			<s:select name="owner_id" key="label.project.owner.friendly" list="userList" listKey="id"
               listValue="fullName" multiple="false" size="1" theme="xhtml"/>
        </span>

        <span class="Field HugeField">
        	<s:textarea key="label.project.description.friendly" name="description" rows="35" theme="xhtml"/></span>

        <span class="Field MediumField HugeField">
			<s:select name="template" key="label.project.template.friendly" list="templateProjects" listKey="id"
               listValue="name" multiple="false" size="1" theme="xhtml" headerKey="" headerValue="%{getText('label.selectone')}"/>
        </span>
            <p><fmt:message key="text.projects.usetemplate"/></p>
        
        <div class="Actions">
	       <ul>
	           <li>
	           <s:submit key="action.projects.create"/></li>
	       </ul>
	    </div>
        </div>
        </c:set>

    <div class="realContent">
        <c:import url="/WEB-INF/pages/includes/administration/menu/default.jsp">
            <c:param name="pageName" value="Projects"/>
            <c:param name="content" value="${panelContent}"/>
        </c:import>
    </div>

</s:form>