create.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" />
- <g:javascript library="checkBoxUtil" />
- <g:javascript library="applicat" />
- <title><g:message code="authority.create" default="Create 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="create" action="list"><g:message code="authority.list" default="Authority List" /></g:link></span>
- </div>
- <div class="body">
-
- <h1><g:message code="authority.create" default="Create Authority" /></h1>
- <g:if test="${flash.message}">
- <div class="message">${flash.message}</div>
- </g:if>
- <g:hasErrors bean="${authority}">
- <div class="errors">
- <g:renderErrors bean="${authority}" as="list" />
- </div>
- </g:hasErrors>
-
- <g:form action="save" method="post" >
- <div class="dialog">
- <table style="width:98%;background-color: #FFF;" cellpadding="0" cellspacing="0">
- <tbody>
- <tr class='prop'>
- <td valign='top' class='name'>
- <label for='authority'><g:message code="role.name" />:</label>
- </td>
- <td valign='top'
- class='value ${hasErrors(bean:authority,field:'authority','errors')}'>
- <input type="text" name='authority'
- value="${authority?.authority?.encodeAsHTML()}"/>
- </td>
- </tr>
- <tr class='prop'>
- <td valign='top' class='name'>
- <label for='description'><g:message code="role.description" />:</label>
- </td>
- <td valign='top'
- class='value ${hasErrors(bean:authority,field:'description','errors')}'>
- <input type="text" name='description'
- value="${authority?.description?.encodeAsHTML()}"/>
- </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')}'>
- <g:select id='powerLevel' name='powerLevel' optionKey="codValue2" optionValue="codName" from="${Code.findAllByCkind(Ckind.findByCkiFlag('PowerLevel'))}" ></g:select>
- </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')}'>
- <%int i=0%>
- <%int if_br=0%>
- <g:createAllAction allurl="${grailsApplication.controllerClasses}" ></g:createAllAction>
-
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="buttons">
- <span class="formButton">
- <input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" />
- </span>
- </div>
- </g:form>
-
- </div>
- </body>
- </html>