Changeset 150 for trunk/grails-app/views/person
- Timestamp:
- Oct 9, 2009, 10:11:43 PM (15 years ago)
- Location:
- trunk/grails-app/views/person
- Files:
-
- 3 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> -
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> -
trunk/grails-app/views/person/show.gsp
r147 r150 1 1 <head> 2 3 2 <meta name="layout" content="main" /> 3 <title>Show 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 14 15 16 17 18 19 13 <div class="body"> 14 <g:if test="${flash.message}"> 15 <div class="message">${flash.message}</div> 16 </g:if> 17 <div class="dialog"> 18 <table> 19 <tbody> 20 20 21 22 23 24 21 <tr class="prop"> 22 <td valign="top" class="name">ID:</td> 23 <td valign="top" class="value">${person.id}</td> 24 </tr> 25 25 26 27 28 29 26 <tr class="prop"> 27 <td valign="top" class="name">Login Name:</td> 28 <td valign="top" class="value">${person.loginName?.encodeAsHTML()}</td> 29 </tr> 30 30 31 32 33 34 31 <tr class="prop"> 32 <td valign="top" class="name">First Name:</td> 33 <td valign="top" class="value">${person.firstName?.encodeAsHTML()}</td> 34 </tr> 35 35 36 36 <tr class="prop"> … … 39 39 </tr> 40 40 41 42 43 44 41 <tr class="prop"> 42 <td valign="top" class="name">isActive:</td> 43 <td valign="top" class="value">${person.isActive}</td> 44 </tr> 45 45 46 47 48 49 46 <tr class="prop"> 47 <td valign="top" class="name">Description:</td> 48 <td valign="top" class="value">${person.description?.encodeAsHTML()}</td> 49 </tr> 50 50 51 52 53 54 51 <tr class="prop"> 52 <td valign="top" class="name">Email:</td> 53 <td valign="top" class="value">${person.email?.encodeAsHTML()}</td> 54 </tr> 55 55 56 57 58 59 56 <tr class="prop"> 57 <td valign="top" class="name">Show Email:</td> 58 <td valign="top" class="value">${person.emailShow}</td> 59 </tr> 60 60 61 61 <tr class="prop"> … … 64 64 </tr> 65 65 66 67 68 69 70 71 72 73 74 75 66 <tr class="prop"> 67 <td valign="top" class="name">Authorities:</td> 68 <td valign="top" class="value"> 69 <ul> 70 <g:each in="${roleNames}" var='name'> 71 <li>${name}</li> 72 </g:each> 73 </ul> 74 </td> 75 </tr> 76 76 77 78 79 77 </tbody> 78 </table> 79 </div> 80 80 81 82 83 84 85 86 87 81 <div class="buttons"> 82 <g:form> 83 <input type="hidden" name="id" value="${person.id}" /> 84 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 85 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 86 </g:form> 87 </div> 88 88 89 89 </div> 90 90 </body>
Note: See TracChangeset
for help on using the changeset viewer.