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

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>Create 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.     </div>
  13.     <div class="body">
  14.       <h1><g:message code="requestmap.create" default="Create Requestmap" /></h1>
  15.       <g:if test="${flash.message}">
  16.         <div class="message">${flash.message}</div>
  17.       </g:if>
  18.       <g:hasErrors bean="${requestmap}">
  19.         <div class="errors">
  20.           <g:renderErrors bean="${requestmap}" as="list" />
  21.         </div>
  22.       </g:hasErrors>
  23.       <g:form action="save" method="post" >
  24.         <div class="dialog">
  25.           <table>
  26.             <tbody>
  27.                     
  28.   <tr class='prop'>
  29.     <td valign='top' class='name'><label for='url'>URL:</label></td>
  30. <td valign='top' class='value ${hasErrors(bean:requestmap,field:'url','errors')}'>
  31.   <input type="text" name='url' value="${requestmap?.url?.encodeAsHTML()}"/>
  32. </td>
  33.   </tr>
  34.                        
  35.               <tr class='prop'>
  36.                 <td valign='top' class='name'>
  37.                   <label for='configAttribute'>Authority(split by a comma):</label>
  38.                 </td>
  39.                 <td valign='top' 
  40.                  class='value ${hasErrors(bean:requestmap,field:'configAttribute','errors')}'>
  41.                   <input type="text" name='configAttribute' 
  42.                    value="${requestmap?.configAttribute?.encodeAsHTML()}"/>
  43.                 </td>
  44.               </tr>
  45.                        
  46.             </tbody>
  47.           </table>
  48.         </div>
  49.         <div class="buttons">
  50.           <span class="formButton">
  51.             <span class="button"><input class="save" type="submit" value="${message(code:'create', 'default':'Create')}" /></span>
  52.           </span>
  53.         </div>
  54.       </g:form>
  55.     </div>
  56.   </body>
  57. </html>