Changeset 162 for trunk/grails-app/views/systemSection
- Timestamp:
- Oct 22, 2009, 8:26:09 PM (15 years ago)
- Location:
- trunk/grails-app/views/systemSection
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/systemSection/create.gsp
r151 r162 26 26 <table> 27 27 <tbody> 28 29 <tr class="prop"> 30 <td valign="top" class="name"> 31 <label for="costCode">Cost Code:</label> 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}"> 34 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/> 35 </td> 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name"> 40 <label for="department">Department:</label> 41 </td> 42 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}"> 43 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select> 44 </td> 45 </tr> 28 46 29 47 <tr class="prop"> -
trunk/grails-app/views/systemSection/edit.gsp
r151 r162 43 43 <g:link controller="asset" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link> 44 44 45 </td> 46 </tr> 47 48 <tr class="prop"> 49 <td valign="top" class="name"> 50 <label for="costCode">Cost Code:</label> 51 </td> 52 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}"> 53 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/> 54 </td> 55 </tr> 56 57 <tr class="prop"> 58 <td valign="top" class="name"> 59 <label for="department">Department:</label> 60 </td> 61 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}"> 62 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select> 45 63 </td> 46 64 </tr> -
trunk/grails-app/views/systemSection/list.gsp
r151 r162 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <g:sortableColumn property="costCode" title="Cost Code" /> 27 28 <th>Department</th> 29 26 30 <g:sortableColumn property="description" title="Description" /> 27 31 … … 30 34 <g:sortableColumn property="name" title="Name" /> 31 35 32 <th>Site</th>33 34 36 </tr> 35 37 </thead> … … 40 42 <td><g:link action="show" id="${systemSectionInstance.id}">${fieldValue(bean:systemSectionInstance, field:'id')}</g:link></td> 41 43 44 <td>${fieldValue(bean:systemSectionInstance, field:'costCode')}</td> 45 46 <td>${fieldValue(bean:systemSectionInstance, field:'department')}</td> 47 42 48 <td>${fieldValue(bean:systemSectionInstance, field:'description')}</td> 43 49 … … 45 51 46 52 <td>${fieldValue(bean:systemSectionInstance, field:'name')}</td> 47 48 <td>${fieldValue(bean:systemSectionInstance, field:'site')}</td>49 53 50 54 </tr> -
trunk/grails-app/views/systemSection/show.gsp
r151 r162 40 40 </ul> 41 41 </td> 42 43 </tr> 44 45 <tr class="prop"> 46 <td valign="top" class="name">Cost Code:</td> 47 48 <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'costCode')}</td> 49 50 </tr> 51 52 <tr class="prop"> 53 <td valign="top" class="name">Department:</td> 54 55 <td valign="top" class="value"><g:link controller="department" action="show" id="${systemSectionInstance?.department?.id}">${systemSectionInstance?.department?.encodeAsHTML()}</g:link></td> 42 56 43 57 </tr>
Note: See TracChangeset
for help on using the changeset viewer.