<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/webwork" prefix="ww" %>
<html>
<head>
    <title><ww:text name="menu.user.console.editprofile.label"/></title>
    <meta name="section" content="user.console"/>
    <meta name="pagename" content="editprofile"/>
    <meta name="help.url" content="<ww:text name="help.user.console.editprofile"/>"/>
</head>
<body>
<h2><ww:text name="menu.user.console.editprofile.label"/></h2>
<ww:set name="formContent">
    <ww:component template="form_row.jsp">
        <ww:param name="label" value="getText('principal.name.label')" />
        <ww:param name="value" value="username"/>
    </ww:component>
    <ww:textfield name="firstname">
        <ww:param name="label" value="getText('principal.firstname.label')"/>
    </ww:textfield>
    <ww:textfield name="lastname">
        <ww:param name="label" value="getText('principal.lastname.label')"/>
    </ww:textfield>
    <ww:textfield name="email" size="50">
        <ww:param name="type" value="'email'"/>
        <ww:param name="label" value="getText('principal.email.label')"/>
    </ww:textfield>
</ww:set>
<ww:component template="form.jsp" id="updateprofile">
    <ww:param name="action"><ww:url namespace="/console/user" action="updateprofile" includeParams="none"/></ww:param>
    <ww:param name="cancelUri"><ww:url namespace="/console/user" action="viewprofile" includeParams="none"/></ww:param>
    <ww:param name="cancelId" value="'cancel'" />
    <ww:param name="content" value="#formContent" />
</ww:component>
</body>
</html>
