Changeset 150 for trunk/grails-app/views/person/create.gsp
- Timestamp:
- Oct 9, 2009, 10:11:43 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/grails-app/views/person/create.gsp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/person/create.gsp
r147 r150 1 1 <head> 2 <meta name="layout" content="main" />3 <title>Create Person</title>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 <div class="nav">9 <div class="nav"> 10 10 <nav:renderSubItems group="navAlt"/> 11 </div>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 <tr class="prop">28 <td valign="top" class="name"><label for="loginName">Login Name:</label></td>29 <td valign="top" class="value ${hasErrors(bean:person,field:'loginName','errors')}">30 <input type="text" id="loginName" name="loginName" value="${person.loginName?.encodeAsHTML()}"/>31 </td>32 </tr>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 <tr class="prop">35 <td valign="top" class="name"><label for="firstName">First Name:</label></td>36 <td valign="top" class="value ${hasErrors(bean:person,field:'firstName','errors')}">37 <input type="text" id="firstName" name="firstName" value="${person.firstName?.encodeAsHTML()}"/>38 </td>39 </tr>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 <tr class="prop">50 <td valign="top" class="name"><label for="pass">Password:</label></td>51 <td valign="top" class="value ${hasErrors(bean:person,field:'pass','errors')}">52 <input type="password" id="pass" name="pass"/>53 </td>54 </tr>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 <tr class="prop">57 <td valign="top" class="name"><label for="isActive">isActive:</label></td>58 <td valign="top" class="value ${hasErrors(bean:person,field:'isActive','errors')}">59 <g:checkBox name="isActive" value="${person.isActive}" ></g:checkBox>60 </td>61 </tr>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 <tr class="prop">64 <td valign="top" class="name"><label for="description">Description:</label></td>65 <td valign="top" class="value ${hasErrors(bean:person,field:'description','errors')}">66 <input type="text" id="description" name="description" value="${person.description?.encodeAsHTML()}"/>67 </td>68 </tr>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 <tr class="prop">71 <td valign="top" class="name"><label for="email">Email:</label></td>72 <td valign="top" class="value ${hasErrors(bean:person,field:'email','errors')}">73 <input type="text" id="email" name="email" value="${person.email?.encodeAsHTML()}"/>74 </td>75 </tr>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 <tr class="prop">78 <td valign="top" class="name"><label for="emailShow">Show Email:</label></td>79 <td valign="top" class="value ${hasErrors(bean:person,field:'emailShow','errors')}">80 <g:checkBox name="emailShow" value="${person.emailShow}"/>81 </td>82 </tr>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 <tr class="prop">92 <td valign="top" class="name" align="left">Authorities:</td>93 </tr>94 <tr class="prop"> 95 <td valign="top" class="name" align="left">Authorities:</td> 96 </tr> 94 97 95 <g:each in="${authorityList}">96 <tr>97 <td valign="top" class="name" align="left">${it.authority.encodeAsHTML()}</td>98 <td align="left"><g:checkBox name="${it.authority}"/></td>99 </tr>100 </g:each>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 </tbody>103 </table>104 </div>105 </tbody> 106 </table> 107 </div> 105 108 106 <div class="buttons">107 <span class="button"><input class="save" type="submit" value="Create" /></span>108 </div>109 <div class="buttons"> 110 <span class="button"><input class="save" type="submit" value="Create" /></span> 111 </div> 109 112 110 </g:form>113 </g:form> 111 114 112 </div>115 </div> 113 116 </body>
Note: See TracChangeset
for help on using the changeset viewer.
