edit.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:4k
源码类别:

PlugIns编程

开发平台:

Java

  1. <html>
  2.   <head>
  3.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  4.     <meta name="layout" content="main" />
  5.     <title>Edit Profile</title>
  6.   </head>
  7.   <body>
  8.     <div class="nav">
  9.       <span class="menuButton"><a href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  10.     </div>
  11.     <div class="body">
  12.       <h1><g:message code="register.editProfile" default="Edit Profile" /></h1>
  13.       <g:if test="${flash.message}">
  14.         <div class="message">${flash.message}</div>
  15.       </g:if>
  16.       <g:hasErrors bean="${person}">
  17.         <div class="errors">
  18.           <g:renderErrors bean="${person}" as="list" />
  19.         </div>
  20.       </g:hasErrors>
  21.       <g:form controller="register" method="post" >
  22.         <input type="hidden" name="id" value="${person?.id}" />
  23.         <div class="dialog">
  24.           <table>
  25.             <tbody>
  26.         <tr class='prop'>
  27.           <td valign='top' class='name'>
  28.             <label for='username'><g:message code="register.loginname" default="Login Name:" /></label>
  29.           </td>
  30.           <td valign='top'
  31.             class='value ${hasErrors(bean:person,field:'username','errors')}'>
  32.           <input type="hidden" name='username'
  33.             value="${person?.username?.encodeAsHTML()}"/>
  34.             <div style="margin:3px">${person?.username?.encodeAsHTML()}</div>
  35.           </td>
  36.         </tr>
  37.   <tr class='prop'>
  38.     <td valign='top' class='name'>
  39.       <label for='userRealName'><g:message code="register.fullname" default="Full Name:" /></label>
  40.     </td>
  41. <td valign='top'
  42.     class='value ${hasErrors(bean:person,field:'userRealName','errors')}'>
  43.   <input type="text" name='userRealName'
  44.          value="${person?.userRealName?.encodeAsHTML()}"/>
  45. </td>
  46.   </tr>
  47.         <tr class='prop'>
  48.           <td valign='top' class='name'>
  49.             <label for='passwd'><g:message code="register.password" default="Password:" /></label>
  50.           </td>
  51.           <td valign='top'
  52.             class='value ${hasErrors(bean:person,field:'passwd','errors')}'>
  53.             <input type="password" name='passwd' value=""/>
  54.           </td>
  55.         </tr>
  56.         <tr class='prop'>
  57.           <td valign='top' class='name'>
  58.             <label for='enabled'><g:message code="register.confirmpassword" default="Confirm Password:" /></label>
  59.           </td>
  60.           <td valign='top'
  61.             class='value ${hasErrors(bean:person,field:'passwd','errors')}'>
  62.             <input type="password" name='repasswd'
  63.               value=""/>
  64.           </td>
  65.         </tr>
  66.   <tr class='prop'>
  67.     <td valign='top' class='name'>
  68.       <label for='email'><g:message code="register.email" default="Email:" /></label>
  69.     </td>
  70. <td valign='top'
  71.     class='value ${hasErrors(bean:person,field:'email','errors')}'>
  72.   <input type="text" name='email'
  73.          value="${person?.email?.encodeAsHTML()}"/>
  74. </td>
  75.   </tr>
  76.         <tr class='prop'>
  77.           <td valign='top' class='name'>
  78.             <label for='email_show'><g:message code="register.showEmail" default="Show Email:" /></label>
  79.           </td>
  80.           <td valign='top' 
  81.             class='value ${hasErrors(bean:person,field:'email_show','errors')}'>
  82.             <g:checkBox name='email_show' value="${person?.email_show}" ></g:checkBox>
  83.           </td>
  84.         </tr>
  85.             </tbody>
  86.           </table>
  87.         </div>
  88.         <div class="buttons">
  89.           <span class="button"><g:actionSubmit class="save" action="Update" value="${message(code:'update', 'default':'Update')}" /></span>
  90.         </div>
  91.       </g:form>
  92.     </div>
  93.   </body>
  94. </html>