Changeset 150 for trunk/grails-app/views/person/create.gsp
- Timestamp:
- Oct 9, 2009, 10:11:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/person/create.gsp
r147 r150 1 1 <head> 2 3 2 <meta name="layout" content="main" /> 3 <title>Create Person</title> 4 4 <nav:resources override="true"/> 5 5 </head> … … 7 7 <body> 8 8 9 9 <div class="nav"> 10 10 <nav:renderSubItems group="navAlt"/> 11 11 </div> 12 12 13 <div class="body"> 14 <g:if test="${flash.message}"> 15 <div class="message">${flash.message}</div> 16 </g:if> 17 <g:hasErrors bean="${person}"> 18 <div class="errors"> 19 <g:renderErrors bean="${person}" as="list" /> 20 </div> 21 </g:hasErrors> 22 <g:form action="save"> 23 <div class="dialog"> 24 <table> 25 <tbody> 13 <div class="body"> 14 <g:if test="${flash.message}"> 15 <div class="message">${flash.message}</div> 16 </g:if> 17 <g:if test="${params.message}"> 18 <div class="message">${params.message}</div> 19 </g:if> 20 <g:hasErrors bean="${person}"> 21 <div class="errors"> 22 <g:renderErrors bean="${person}" as="list" /> 23 </div> 24 </g:hasErrors> 25 <g:form action="save"> 26 <div class="dialog"> 27 <table> 28 <tbody> 26 29 27 28 29 30 31 32 30 <tr class="prop"> 31 <td valign="top" class="name"><label for="loginName">Login Name:</label></td> 32 <td valign="top" class="value ${hasErrors(bean:person,field:'loginName','errors')}"> 33 <input type="text" id="loginName" name="loginName" value="${person.loginName?.encodeAsHTML()}"/> 34 </td> 35 </tr> 33 36 34 35 36 37 38 39 37 <tr class="prop"> 38 <td valign="top" class="name"><label for="firstName">First Name:</label></td> 39 <td valign="top" class="value ${hasErrors(bean:person,field:'firstName','errors')}"> 40 <input type="text" id="firstName" name="firstName" value="${person.firstName?.encodeAsHTML()}"/> 41 </td> 42 </tr> 40 43 41 44 <tr class="prop"> … … 47 50 48 51 49 50 51 52 53 54 52 <tr class="prop"> 53 <td valign="top" class="name"><label for="pass">Password:</label></td> 54 <td valign="top" class="value ${hasErrors(bean:person,field:'pass','errors')}"> 55 <input type="password" id="pass" name="pass"/> 56 </td> 57 </tr> 55 58 56 57 58 59 60 61 59 <tr class="prop"> 60 <td valign="top" class="name"><label for="isActive">isActive:</label></td> 61 <td valign="top" class="value ${hasErrors(bean:person,field:'isActive','errors')}"> 62 <g:checkBox name="isActive" value="${person.isActive}" ></g:checkBox> 63 </td> 64 </tr> 62 65 63 64 65 66 67 68 66 <tr class="prop"> 67 <td valign="top" class="name"><label for="description">Description:</label></td> 68 <td valign="top" class="value ${hasErrors(bean:person,field:'description','errors')}"> 69 <input type="text" id="description" name="description" value="${person.description?.encodeAsHTML()}"/> 70 </td> 71 </tr> 69 72 70 71 72 73 74 75 73 <tr class="prop"> 74 <td valign="top" class="name"><label for="email">Email:</label></td> 75 <td valign="top" class="value ${hasErrors(bean:person,field:'email','errors')}"> 76 <input type="text" id="email" name="email" value="${person.email?.encodeAsHTML()}"/> 77 </td> 78 </tr> 76 79 77 78 79 80 81 82 80 <tr class="prop"> 81 <td valign="top" class="name"><label for="emailShow">Show Email:</label></td> 82 <td valign="top" class="value ${hasErrors(bean:person,field:'emailShow','errors')}"> 83 <g:checkBox name="emailShow" value="${person.emailShow}"/> 84 </td> 85 </tr> 83 86 84 87 <tr class="prop"> … … 89 92 </tr> 90 93 91 92 93 94 <tr class="prop"> 95 <td valign="top" class="name" align="left">Authorities:</td> 96 </tr> 94 97 95 96 97 98 99 100 98 <g:each in="${authorityList}"> 99 <tr> 100 <td valign="top" class="name" align="left">${it.authority.encodeAsHTML()}</td> 101 <td align="left"><g:checkBox name="${it.authority}"/></td> 102 </tr> 103 </g:each> 101 104 102 103 104 105 </tbody> 106 </table> 107 </div> 105 108 106 107 108 109 <div class="buttons"> 110 <span class="button"><input class="save" type="submit" value="Create" /></span> 111 </div> 109 112 110 113 </g:form> 111 114 112 115 </div> 113 116 </body>
Note: See TracChangeset
for help on using the changeset viewer.