JdbcMapper/samples/petstoreWeb/web/account/edit/edit.jsp

139 lines
5.7 KiB
Plaintext
Raw Normal View History

<%--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
$Header:$
--%>
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
<%@ taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
<%@ taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
<%@ taglib prefix="beehive-petstore" tagdir="/WEB-INF/tags/beehive/petstore" %>
<netui-data:declarePageInput name="categoryNames" type="java.lang.String[]"/>
<netui-data:declarePageInput name="languages" type="java.lang.String[]"/>
<netui-data:declareBundle bundlePath="org.apache.beehive.samples.petstore.resources.view" name="view"/>
<netui-template:template templatePage="/site/template.jsp">
<netui-template:setAttribute name="title" value="${bundle.view.myAccountLabel}" />
<netui-template:section name="topMenu">
<beehive-petstore:accountNavHeader />
</netui-template:section>
<netui-template:section name="body">
<!-- Turn off the leftnav -->
<style> #leftnav {display: none;} </style>
<center>
<netui:form action="updateAccount">
<table cellpadding=5 cellspacing=0 width="460">
<tr>
<td>
<netui:span styleClass="boldlabel" value="${bundle.default.userInformation}"/>
<table class="tableborder" width="100%" cellpadding="0" cellspacing="1">
<tr>
<td class="cellgrey">${bundle.default.userIdLabel}:</td>
<td class="cellltgrey"><netui:span value="${actionForm.userId}"/></td>
</tr>
<tr>
<td class="cellgrey">${bundle.default.passwordLabel}:</td>
<td class="cellltgrey">
<netui:textBox dataSource="actionForm.newPassword" password="true"/>
</td>
</tr>
<tr>
<td class="cellgrey">${bundle.default.repeatPasswordLabel}:</td>
<td class="cellltgrey">
<netui:textBox dataSource="actionForm.repeatedPassword" password="true"/>
</td>
</tr>
</table>
<br/>
<netui:span styleClass="boldlabel" value="${bundle.default.accountInformation}"/>
<table class="tableborder" width="100%" cellpadding="0" cellspacing="1">
<tr>
<td class="cellgrey"><netui:span value="${bundle.default.firstName}:"/></td>
<td class="cellltgrey">
<netui:textBox dataSource="actionForm.firstName"/>
<br/>
<netui:error key="firstName"/>
</td>
</tr>
<tr>
<td class="cellgrey"><netui:span value="${bundle.default.lastName}:"/></td>
<td class="cellltgrey">
<netui:textBox dataSource="actionForm.lastName"/>
<br/>
<netui:error key="lastName"/>
</td>
</tr>
<tr>
<td class="cellgrey"><netui:span value="${bundle.default.email}:"/></td>
<td class="cellltgrey">
<netui:textBox dataSource="actionForm.email" size="35"/>
<br/>
<netui:error key="email"/>
</td>
</tr>
</table>
<br/>
<netui:span styleClass="boldlabel" value="${bundle.default.profileInformation}"/>
<table class="tableborder" width="100%" cellpadding="0" cellspacing="1">
<tr>
<td class="cellgrey"><netui:span value="${bundle.default.languagePreference}:"/></td>
<td class="cellltgrey">
<netui:select dataSource="actionForm.langPref" optionsDataSource="${pageInput.languages}"/>
</td>
</tr>
<tr>
<td class="cellgrey"><netui:span value="${bundle.default.favoriteCategory}:"/></td>
<td class="cellltgrey">
<netui:select dataSource="actionForm.favCategory" optionsDataSource="${pageInput.categoryNames}"/>
</td>
</tr>
<tr>
<td class="cellgrey"><netui:span value="${bundle.default.enableMyList}"/></td>
<td class="cellltgrey">
<netui:checkBox dataSource="actionForm.myListOpt"/>
</td>
</tr>
<tr>
<td class="cellgrey"><netui:span value="${bundle.default.enableMyBanner}"/></td>
<td class="cellltgrey">
<netui:checkBox dataSource="actionForm.bannerOpt"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<center>
<netui:button value="${bundle.view.buttonSubmit}" />
</center>
</td>
</tr>
</table>
</netui:form>
</center>
</netui-template:section>
</netui-template:template>