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

PlugIns编程

开发平台:

Java

  1.   
  2. <html>
  3.   <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5.     <meta name="layout" content="main" />
  6.     <title><g:message code="user.show" default="Show Person" /></title>
  7.   </head>
  8.   <body>
  9.     <div class="nav">
  10.       <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  11.       <span class="menuButton"><g:link class="list" action="list"><g:message code="user.list" default="User List" /></g:link></span>
  12.       <span class="menuButton"><g:link class="create" action="create"><g:message code="user.new" default="New Person" /></g:link></span>
  13.     </div>
  14.     
  15.     <div class="body">
  16.       <h1><g:message code="user.show" default="Show Person" /></h1>
  17.       <g:if test="${flash.message}">
  18.         <div class="message">${flash.message}</div>
  19.       </g:if>
  20.       <div class="dialog">
  21.         <table>
  22.           <tbody>
  23.                    
  24.             <tr class="prop">
  25.               <td valign="top" class="name">Id:</td>
  26.               <td valign="top" class="value">${person.id?.encodeAsHTML()}</td>
  27.             </tr>
  28.                    
  29.             <tr class="prop">
  30.               <td valign="top" class="name"><g:message code="user.loginName" default="Login Name:" /></td>
  31.               <td valign="top" class="value">
  32.                ${person.username?.encodeAsHTML()}
  33.               </td>
  34.             </tr>
  35.                    
  36.             <tr class="prop">
  37.               <td valign="top" class="name"><g:message code="user.fullName" default="Full Name:" /></td>
  38.               <td valign="top" class="value">
  39.                 ${person.userRealName?.encodeAsHTML()}
  40.               </td>
  41.             </tr>
  42.                    
  43.             <tr class="prop">
  44.               <td valign="top" class="name"><g:message code="user.enabled" default="Enabled:" /></td>
  45.               <td valign="top" class="value">
  46.                 ${person.enabled?.encodeAsHTML()}
  47.               </td>
  48.             </tr>
  49.                    
  50.             <tr class="prop">
  51.               <td valign="top" class="name"><g:message code="user.description" default="Description:" /></td>
  52.               <td valign="top" class="value">
  53.                 ${person.description?.encodeAsHTML()}
  54.               </td>
  55.             </tr>
  56.                    
  57.             <tr class="prop">
  58.               <td valign="top" class="name"><g:message code="user.email" default="Email:" /></td>
  59.               <td valign="top" class="value">
  60.                 ${person.email?.encodeAsHTML()}
  61.               </td>
  62.             </tr>
  63.                    
  64.             <tr class="prop">
  65.               <td valign="top" class="name"><g:message code="user.showEmail" default="Show Email:" /></td>
  66.               <td valign="top" class="value">
  67.                 ${person.email_show?.encodeAsHTML()}
  68.               </td>
  69.             </tr>
  70.                    
  71.             <tr class="prop">
  72.               <td valign="top" class="name"><g:message code="user.assignRoles" default="Assign Roles:" /></td>
  73.               <td valign="top" class="value">
  74.                 <ul>
  75.                 <g:collect in="${person.authorities}" expr="${it.authority}">
  76.                   <li>${it?.substring(5)?.toLowerCase()}</li>
  77.                 </g:collect>
  78.                 </ul>
  79.               </td>
  80.             </tr>
  81.                    
  82.           </tbody>
  83.         </table>
  84.       </div>
  85.       
  86.       <div class="buttons">
  87.         <g:form controller="user">
  88.           <input type="hidden" name="id" value="${person?.id}" />
  89.             <span class="button"><g:actionSubmit class="edit" action="Edit" value="${message(code:'edit', 'default':'Edit')}" /></span>
  90.             <span class="button"><g:actionSubmit class="delete" onclick="return confirm('${message(code:'delete.confirm', 'default':'Are you sure?')}');" action="Delete" value="${message(code:'delete', 'default':'Delete')}" /></span>
  91.            
  92.         </g:form>
  93.       </div>
  94.       
  95.     </div>
  96.   </body>
  97. </html>