Changeset 162 for trunk/grails-app/views/systemSectionDetailed/edit.gsp
- Timestamp:
- Oct 22, 2009, 8:26:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/systemSectionDetailed/edit.gsp
r151 r162 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for="name">Name:</label> 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> 37 <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> 38 </td> 39 </tr> 40 41 <tr class="prop"> 42 <td valign="top" class="name"> 43 <label for="description">Description:</label> 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}"> 46 <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/> 47 </td> 48 </tr> 49 50 <tr class="prop"> 51 <td valign="top" class="name"> 52 <label for="costCode">Cost Code:</label> 53 </td> 54 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}"> 55 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="department">Department:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}"> 64 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select> 65 </td> 66 </tr> 67 68 <tr class="prop"> 69 <td valign="top" class="name"> 70 <label for="site">Site:</label> 71 </td> 72 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}"> 73 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select> 74 </td> 75 </tr> 76 77 <tr class="prop"> 78 <td valign="top" class="name"> 79 <label for="isActive">Is Active:</label> 80 </td> 81 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}"> 82 <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox> 83 </td> 84 </tr> 85 86 <tr class="prop"> 87 <td valign="top" class="name"> 34 88 <label for="assets">Assets:</label> 35 89 </td> … … 43 97 <g:link controller="assetDetailed" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link> 44 98 45 </td>46 </tr>47 48 <tr class="prop">49 <td valign="top" class="name">50 <label for="description">Description:</label>51 </td>52 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}">53 <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/>54 </td>55 </tr>56 57 <tr class="prop">58 <td valign="top" class="name">59 <label for="isActive">Is Active:</label>60 </td>61 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}">62 <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox>63 99 </td> 64 100 </tr> … … 80 116 </tr> 81 117 82 <tr class="prop">83 <td valign="top" class="name">84 <label for="name">Name:</label>85 </td>86 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}">87 <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/>88 </td>89 </tr>90 91 <tr class="prop">92 <td valign="top" class="name">93 <label for="site">Site:</label>94 </td>95 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}">96 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select>97 </td>98 </tr>99 100 118 </tbody> 101 119 </table>
Note: See TracChangeset
for help on using the changeset viewer.