create.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.       <g:javascript library="checkBoxUtil" />
  7.       <g:javascript library="applicat" />
  8.     <title><g:message code="authority.create" default="Create Authority" /></title>         
  9.   </head>
  10.   <body>
  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="create" action="list"><g:message code="authority.list" default="Authority List" /></g:link></span>
  14.     </div>
  15.     <div class="body">
  16.     
  17.       <h1><g:message code="authority.create" default="Create Authority" /></h1>
  18.       <g:if test="${flash.message}">
  19.         <div class="message">${flash.message}</div>
  20.       </g:if>
  21.       <g:hasErrors bean="${authority}">
  22.         <div class="errors">
  23.           <g:renderErrors bean="${authority}" as="list" />
  24.         </div>
  25.       </g:hasErrors>
  26.       
  27.       <g:form action="save" method="post" >
  28.         <div class="dialog">
  29.           <table style="width:98%;background-color: #FFF;"  cellpadding="0" cellspacing="0">
  30.             <tbody>
  31.               <tr class='prop'>
  32.                 <td valign='top' class='name'>
  33.                   <label for='authority'><g:message code="role.name" />:</label>
  34.                 </td>
  35.                 <td valign='top'
  36.                  class='value ${hasErrors(bean:authority,field:'authority','errors')}'>
  37.                   <input type="text" name='authority'
  38.                          value="${authority?.authority?.encodeAsHTML()}"/>
  39.                 </td>
  40.               </tr>
  41.              <tr class='prop'>
  42.                <td valign='top' class='name'>
  43.                  <label for='description'><g:message code="role.description" />:</label>
  44.                </td>
  45.            <td valign='top'
  46.                class='value ${hasErrors(bean:authority,field:'description','errors')}'>
  47.              <input type="text" name='description'
  48.                     value="${authority?.description?.encodeAsHTML()}"/>
  49.            </td>
  50.              </tr>
  51.               <tr class='prop'>
  52.                <td valign='top' class='name'>
  53.                  <label for='powerLevel'><g:message code="role.powerLevel" />:</label>
  54.                </td>
  55.            <td valign='top'
  56.                class='value ${hasErrors(bean:authority,field:'powerLevel','errors')}'>
  57.                <g:select   id='powerLevel' name='powerLevel' optionKey="codValue2" optionValue="codName" from="${Code.findAllByCkind(Ckind.findByCkiFlag('PowerLevel'))}" ></g:select>
  58.            </td>
  59.              </tr>
  60.                  <tr class='prop'>
  61.     <td valign='top' class='name'><label for='url'><g:message code="role.url"/>:</label></td>
  62. <td valign='top' class='value ${hasErrors(bean:requestmap,field:'url','errors')}'>
  63.     <%int i=0%>
  64.                     <%int if_br=0%>
  65.                       <g:createAllAction allurl="${grailsApplication.controllerClasses}" ></g:createAllAction>
  66.                    
  67.                 </td>
  68.   </tr>
  69.             </tbody>
  70.           </table>
  71.         </div>
  72.         <div class="buttons">
  73.           <span class="formButton">
  74.             <input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" />
  75.           </span>
  76.         </div>
  77.       </g:form>
  78.       
  79.     </div>
  80.   </body>
  81. </html>