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

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>Show Requestmap</title>
  7.   </head>
  8.   <body>
  9.     <div class="nav">
  10.       <span class="menuButton"><a href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  11.       <span class="menuButton"><g:link action="list"><g:message code="requestmap.list" default="Requestmap List" /></g:link></span>
  12.       <span class="menuButton"><g:link action="create"><g:message code="requestmap.new" default="New Requestmap" /></g:link></span>
  13.     </div>
  14.     <div class="body">
  15.       <h1><g:message code="requestmap.show" default="Show Requestmap" /></h1>
  16.       <g:if test="${flash.message}">
  17.         <div class="message">${flash.message}</div>
  18.       </g:if>
  19.       <div class="dialog">
  20.         <table>
  21.          <tbody>
  22.                    
  23.             <tr class="prop">
  24.               <td valign="top" class="name">Id:</td>
  25.               <td valign="top" class="value">${requestmap.id}</td>
  26.             </tr>
  27.                    
  28.             <tr class="prop">
  29.               <td valign="top" class="name">URL:</td>
  30.               <td valign="top" class="value">${requestmap.url}</td>
  31.             </tr>
  32.                    
  33.             <tr class="prop">
  34.               <td valign="top" class="name">Roles:</td>
  35.               <td valign="top" class="value">
  36.               
  37.               <%
  38.                 String[] configAttrs=
  39.                         org.springframework.util.StringUtils.
  40.                         commaDelimitedListToStringArray(requestmap.configAttribute);
  41.               %>
  42.   <g:each var="role" in="${configAttrs}">
  43.     <g:if test="${role.startsWith('ROLE_')}">            
  44.                ${role?.substring(5)?.toLowerCase()?.encodeAsHTML()},
  45.              </g:if>
  46.              <g:else>
  47.                ${role?.encodeAsHTML()}
  48.              </g:else>
  49.               </g:each>
  50.               </td>
  51.             </tr>
  52.                    
  53.           </tbody>
  54.         </table>
  55.       </div>
  56.       <div class="buttons">
  57.         <g:form controller="requestmap">
  58.           <input type="hidden" name="id" value="${requestmap?.id}" />
  59.           <span class="button"><g:actionSubmit class="edit" action="Edit" value="${message(code:'edit', 'default':'Edit')}" /></span>
  60.           <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>
  61.         </g:form>
  62.       </div>
  63.     </div>
  64.   </body>
  65. </html>