Changeset 35 for trunk/src/grails-app/views/person
- Timestamp:
- Jan 26, 2009, 5:26:11 AM (16 years ago)
- Location:
- trunk/src/grails-app/views/person
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/views/person/create.gsp
r21 r35 32 32 </td> 33 33 <td valign="top" class="value ${hasErrors(bean:personInstance,field:'firstName','errors')}"> 34 <input type="text" id="firstName" name="firstName" value="${fieldValue(bean:personInstance,field:'firstName')}"/>34 <input type="text" maxlength="50" id="firstName" name="firstName" value="${fieldValue(bean:personInstance,field:'firstName')}"/> 35 35 </td> 36 36 </tr> … … 41 41 </td> 42 42 <td valign="top" class="value ${hasErrors(bean:personInstance,field:'lastName','errors')}"> 43 <input type="text" id="lastName" name="lastName" value="${fieldValue(bean:personInstance,field:'lastName')}"/>43 <input type="text" maxlength="50" id="lastName" name="lastName" value="${fieldValue(bean:personInstance,field:'lastName')}"/> 44 44 </td> 45 45 </tr> … … 63 63 </tr> 64 64 65 <tr class="prop">66 <td valign="top" class="name">67 <label for="personGroup">Person Group:</label>68 </td>69 <td valign="top" class="value ${hasErrors(bean:personInstance,field:'personGroup','errors')}">70 <g:select optionKey="id" from="${PersonGroup.list()}" name="personGroup.id" value="${personInstance?.personGroup?.id}" ></g:select>71 </td>72 </tr>73 74 65 </tbody> 75 66 </table> -
trunk/src/grails-app/views/person/edit.gsp
r21 r35 34 34 </td> 35 35 <td valign="top" class="value ${hasErrors(bean:personInstance,field:'firstName','errors')}"> 36 <input type="text" id="firstName" name="firstName" value="${fieldValue(bean:personInstance,field:'firstName')}"/>36 <input type="text" maxlength="50" id="firstName" name="firstName" value="${fieldValue(bean:personInstance,field:'firstName')}"/> 37 37 </td> 38 38 </tr> … … 43 43 </td> 44 44 <td valign="top" class="value ${hasErrors(bean:personInstance,field:'lastName','errors')}"> 45 <input type="text" id="lastName" name="lastName" value="${fieldValue(bean:personInstance,field:'lastName')}"/>45 <input type="text" maxlength="50" id="lastName" name="lastName" value="${fieldValue(bean:personInstance,field:'lastName')}"/> 46 46 </td> 47 47 </tr> … … 99 99 <tr class="prop"> 100 100 <td valign="top" class="name"> 101 <label for="personGroup">Person Group:</label>102 </td>103 <td valign="top" class="value ${hasErrors(bean:personInstance,field:'personGroup','errors')}">104 <g:select optionKey="id" from="${PersonGroup.list()}" name="personGroup.id" value="${personInstance?.personGroup?.id}" ></g:select>105 </td>106 </tr>107 108 <tr class="prop">109 <td valign="top" class="name">110 101 <label for="personGroups">Person Groups:</label> 111 102 </td> -
trunk/src/grails-app/views/person/list.gsp
r21 r35 32 32 <g:sortableColumn property="isActive" title="Is Active" /> 33 33 34 <th>Person Group</th>35 36 34 </tr> 37 35 </thead> … … 50 48 <td>${fieldValue(bean:personInstance, field:'isActive')}</td> 51 49 52 <td>${fieldValue(bean:personInstance, field:'personGroup')}</td>53 54 50 </tr> 55 51 </g:each> -
trunk/src/grails-app/views/person/show.gsp
r21 r35 79 79 80 80 <tr class="prop"> 81 <td valign="top" class="name">Person Group:</td>82 83 <td valign="top" class="value"><g:link controller="personGroup" action="show" id="${personInstance?.personGroup?.id}">${personInstance?.personGroup?.encodeAsHTML()}</g:link></td>84 85 </tr>86 87 <tr class="prop">88 81 <td valign="top" class="name">Person Groups:</td> 89 82
Note: See TracChangeset
for help on using the changeset viewer.