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

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

</head>

<s:form method="post" action="users">
    <c:set var="panelContent">
    <div class="Pane">
    <h2><fmt:message key='heading.user.new'/></h2>
    <input type="hidden" name="encryptPass" value="true"/>
    <span class="Field"><s:textfield name="username" label="%{getText('label.user.username')}" required="true" theme="xhtml"/></span>
    <span class="Field"><s:textfield name="email" label="%{getText('label.user.email')}" required="true" theme="xhtml" value="%{email}"/></span>
    <span class="Field  Cleared"><s:password name="password" label="%{getText('label.user.password')}" showPassword="true" theme="xhtml" required="true"
        cssClass="text medium"/></span>
       <span class="Field"><s:password name="confirmPassword" label="%{getText('label.user.confirmPassword')}" theme="xhtml" required="true"
        showPassword="true" cssClass="text medium"/></span>
    <span class="Field"><s:select name="userRole.id" list="allRolesList" listKey="id" listValue="friendlyName" label="%{getText('label.user.role')}"
              required="true" theme="xhtml"/></span>

    </div>
    <div class="Pane">
    <h2><fmt:message key='heading.optionalinfo'/></h2>
    <span class="Field"><s:textfield name="firstName" label="%{getText('label.user.firstName')}" theme="xhtml" cssClass="text medium"/></span>
    <span class="Field"><s:textfield name="lastName" label="%{getText('label.user.lastName')}" theme="xhtml" cssClass="text medium"/></span>
    <span class="Field"><s:textfield name="phoneNumber" label="%{getText('label.user.phoneNumber')}" theme="xhtml"/></span>
    <span class="Field"><s:textfield name="website" label="%{getText('label.user.website')}" cssClass="text large" theme="xhtml"/></span>


    <div class="Actions">
    <ul>
    <li><s:submit key="action.newuser"/></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="Users"/>
            <c:param name="content" value="${panelContent}"/>
        </c:import>
    </div>

</s:form>