show.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:3k
-
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="authority.show" default="Show Authority" /></title>
- </head>
-
- <body>
-
- <div class="nav">
- <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
- <span class="menuButton"><g:link class="list" action="list"><g:message code="authority.list" default="Authority List" /></g:link></span>
- <span class="menuButton"><g:link class="create" action="create"><g:message code="authority.new" default="New Authority" /></g:link></span>
- </div>
-
- <div class="body">
- <h1><g:message code="authority.show" default="Show Authority" /></h1>
- <g:if test="${flash.message}">
- <div class="message">${flash.message}</div>
- </g:if>
- <div class="dialog">
- <table style="width:98%;background-color: #FFF;" cellpadding="0" cellspacing="0">
- <tbody>
- <tr class="prop">
- <td valign="top" class="name"><g:message code="role.id" />:</td>
- <td valign="top" class="value">${authority.id}</td>
- </tr>
- <tr class="prop">
- <td valign="top" class="name"><g:message code="role.name" />:</td>
- <td valign="top" class="value">${authority.authority.substring(5).toLowerCase()}</td>
- </tr>
- <tr class="prop">
- <td valign="top" class="name"><g:message code="role.description" />:</td>
- <td valign="top" class="value">${authority.description}</td>
- </tr>
- <tr class="prop">
- <td valign="top" class="name"><g:message code="role.people" />:</td>
- <td valign="top" class="value">${authority.people}</td>
- </tr>
- <tr class='prop'>
- <td valign='top' class='name'>
- <label for='powerLevel'><g:message code="role.powerLevel" />:</label>
- </td>
- <td valign='top'
- class='value ${hasErrors(bean:authority,field:'powerLevel','errors')}'>
- ${authority.powerLevel}
- </td>
- </tr>
- <tr class='prop'>
- <td valign='top' class='name'><label for='url'><g:message code="role.url"/>:</label></td>
- <td valign='top' class='value ${hasErrors(bean:requestmap,field:'url','errors')}'>
- <g:showAllAction allurl="${grailsApplication.controllerClasses}" selecturl="${Requestmap.findAllByConfigAttributeLike('%' + authority.authority.toUpperCase() + ',%')}"/>
-
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-
- <div class="buttons">
- <g:form controller="role">
- <input type="hidden" name="id" value="${authority?.id}" />
- <span class="button"><g:actionSubmit class="edit" action="Edit" value="${message(code:'edit', 'default':'Edit')}" /></span>
- <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>
- </g:form>
- </div>
-
- </div>
-
- </body>
- </html>