Changeset 150 for trunk/grails-app/views/person/edit.gsp
- Timestamp:
- Oct 9, 2009, 10:11:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/person/edit.gsp
r147 r150 1 1 <head> 2 3 2 <meta name="layout" content="main" /> 3 <title>Edit 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> 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> 22 25 23 <!--<div class="prop">24 25 26 <!--<div class="prop"> 27 <span class="name">ID: ${person.id}</span> 28 </div>--> 26 29 27 28 29 30 <g:form> 31 <input type="hidden" name="id" value="${person.id}" /> 32 <input type="hidden" name="version" value="${person.version}" /> 30 33 <input type="hidden" name="password" value="${person.password}" /> 31 32 33 34 <div class="dialog"> 35 <table> 36 <tbody> 34 37 35 36 37 38 39 40 38 <tr class="prop"> 39 <td valign="top" class="name"><label for="loginName">Login Name:</label></td> 40 <td valign="top" class="value ${hasErrors(bean:person,field:'loginName','errors')}"> 41 <input type="text" id="loginName" name="loginName" value="${person.loginName?.encodeAsHTML()}"/> 42 </td> 43 </tr> 41 44 42 43 44 45 46 47 45 <tr class="prop"> 46 <td valign="top" class="name"><label for="firstName">First Name:</label></td> 47 <td valign="top" class="value ${hasErrors(bean:person,field:'firstName','errors')}"> 48 <input type="text" id="firstName" name="firstName" value="${person.firstName?.encodeAsHTML()}"/> 49 </td> 50 </tr> 48 51 49 52 <tr class="prop"> … … 54 57 </tr> 55 58 56 57 58 59 60 61 59 <tr class="prop"> 60 <td valign="top" class="name"><label for="pass">Password:</label></td> 61 <td valign="top" class="value ${hasErrors(bean:person,field:'pass','errors')}"> 62 <input type="password" id="pass" name="pass" value="${person.pass?.encodeAsHTML()}"/> 63 </td> 64 </tr> 62 65 63 64 65 66 67 68 66 <tr class="prop"> 67 <td valign="top" class="name"><label for="isActive">isActive:</label></td> 68 <td valign="top" class="value ${hasErrors(bean:person,field:'isActive','errors')}"> 69 <g:checkBox name="isActive" value="${person.isActive}"/> 70 </td> 71 </tr> 69 72 70 71 72 73 74 75 73 <tr class="prop"> 74 <td valign="top" class="name"><label for="description">Description:</label></td> 75 <td valign="top" class="value ${hasErrors(bean:person,field:'description','errors')}"> 76 <input type="text" id="description" name="description" value="${person.description?.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="email">Email:</label></td> 82 <td valign="top" class="value ${hasErrors(bean:person,field:'email','errors')}"> 83 <input type="text" id="email" name="email" value="${person?.email?.encodeAsHTML()}"/> 84 </td> 85 </tr> 83 86 84 85 86 87 88 89 87 <tr class="prop"> 88 <td valign="top" class="name"><label for="emailShow">Show Email:</label></td> 89 <td valign="top" class="value ${hasErrors(bean:person,field:'emailShow','errors')}"> 90 <g:checkBox name="emailShow" value="${person.emailShow}"/> 91 </td> 92 </tr> 90 93 91 94 <tr class="prop"> … … 107 110 </g:each> 108 111 109 110 111 112 </tbody> 113 </table> 114 </div> 112 115 113 114 115 116 116 <div class="buttons"> 117 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 118 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 119 </div> 117 120 118 121 </g:form> 119 122 120 123 </div> 121 124 </body>
Note: See TracChangeset
for help on using the changeset viewer.