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><g:message code="authority.show" default="Show Authority" /></title>
  7.   </head>
  8.   
  9.   <body>
  10.   
  11.     <div class="nav">
  12.       <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  13.       <span class="menuButton"><g:link class="list" action="list"><g:message code="authority.list" default="Authority List" /></g:link></span>
  14.       <span class="menuButton"><g:link class="create" action="create"><g:message code="authority.new" default="New Authority" /></g:link></span>
  15.     </div>
  16.     
  17.     <div class="body">
  18.       <h1><g:message code="authority.show" default="Show Authority" /></h1>
  19.       <g:if test="${flash.message}">
  20.         <div class="message">${flash.message}</div>
  21.       </g:if>
  22.       <div class="dialog">
  23.         <table style="width:98%;background-color: #FFF;"  cellpadding="0" cellspacing="0">
  24.           <tbody>
  25.             <tr class="prop">
  26.               <td valign="top" class="name"><g:message code="role.id" />:</td>
  27.               <td valign="top" class="value">${authority.id}</td>
  28.             </tr>
  29.             <tr class="prop">
  30.               <td valign="top" class="name"><g:message code="role.name" />:</td>
  31.               <td valign="top" class="value">${authority.authority.substring(5).toLowerCase()}</td>
  32.             </tr>
  33.             <tr class="prop">
  34.               <td valign="top" class="name"><g:message code="role.description" />:</td>
  35.               <td valign="top" class="value">${authority.description}</td>
  36.             </tr>
  37.             <tr class="prop">
  38.               <td valign="top" class="name"><g:message code="role.people" />:</td>
  39.               <td valign="top" class="value">${authority.people}</td>
  40.             </tr>
  41.               <tr class='prop'>
  42.                <td valign='top' class='name'>
  43.                  <label for='powerLevel'><g:message code="role.powerLevel" />:</label>
  44.                </td>
  45.            <td valign='top'
  46.                class='value ${hasErrors(bean:authority,field:'powerLevel','errors')}'>
  47.                       ${authority.powerLevel}
  48.            </td>
  49.              </tr>
  50.              <tr class='prop'>
  51.     <td valign='top' class='name'><label for='url'><g:message code="role.url"/>:</label></td>
  52. <td valign='top' class='value ${hasErrors(bean:requestmap,field:'url','errors')}'>
  53.                     <g:showAllAction allurl="${grailsApplication.controllerClasses}" selecturl="${Requestmap.findAllByConfigAttributeLike('%' + authority.authority.toUpperCase() + ',%')}"/>
  54.     
  55. </td>
  56.   </tr>
  57.           </tbody>
  58.         </table>
  59.       </div>
  60.     
  61.       <div class="buttons">
  62.         <g:form controller="role">
  63.           <input type="hidden" name="id" value="${authority?.id}" />
  64.           <span class="button"><g:actionSubmit class="edit" action="Edit" value="${message(code:'edit', 'default':'Edit')}" /></span>
  65.           <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>
  66.         </g:form>
  67.       </div>
  68.       
  69.     </div>
  70.     
  71.   </body>
  72. </html>