Changeset 268 for trunk/grails-app/views/department
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- Location:
- trunk/grails-app/views/department
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/department/create.gsp
r178 r268 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> 33 <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 40 40 </td> 41 41 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}"> 42 <input type="text" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="costCode">Cost Code:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}"> 51 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 52 43 </td> 53 44 </tr> -
trunk/grails-app/views/department/edit.gsp
r178 r268 34 34 </td> 35 35 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> 36 <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> 37 37 </td> 38 38 </tr> … … 43 43 </td> 44 44 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}"> 45 <input type="text" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="costCode">Cost Code:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}"> 54 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 55 46 </td> 56 47 </tr> … … 67 58 <tr class="prop"> 68 59 <td valign="top" class="name"> 69 <label for=" persons">Persons:</label>60 <label for="departmentExtendedAttributes">Department Extended Attributes:</label> 70 61 </td> 71 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:' persons','errors')}">62 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'departmentExtendedAttributes','errors')}"> 72 63 73 64 <ul> 74 <g:each var=" p" in="${departmentInstance?.persons?}">75 <li><g:link controller=" person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>65 <g:each var="d" in="${departmentInstance?.departmentExtendedAttributes?}"> 66 <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li> 76 67 </g:each> 77 68 </ul> 78 <g:link controller=" person" params="['department.id':departmentInstance?.id]" action="create">Add Person</g:link>69 <g:link controller="departmentExtendedAttribute" params="['department.id':departmentInstance?.id]" action="create">Add DepartmentExtendedAttribute</g:link> 79 70 80 71 </td> … … 83 74 <tr class="prop"> 84 75 <td valign="top" class="name"> 85 <label for="s ystemSections">SystemSections:</label>76 <label for="sections">Sections:</label> 86 77 </td> 87 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'s ystemSections','errors')}">78 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'sections','errors')}"> 88 79 89 80 <ul> 90 <g:each var="s" in="${departmentInstance?.s ystemSections?}">91 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>81 <g:each var="s" in="${departmentInstance?.sections?}"> 82 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 92 83 </g:each> 93 84 </ul> 94 <g:link controller="s ystemSection" params="['department.id':departmentInstance?.id]" action="create">Add SystemSection</g:link>85 <g:link controller="section" params="['department.id':departmentInstance?.id]" action="create">Add Section</g:link> 95 86 96 87 </td> -
trunk/grails-app/views/department/list.gsp
r178 r268 27 27 <g:sortableColumn property="description" title="Description" /> 28 28 29 <g:sortableColumn property="costCode" title="Cost Code" />30 31 29 <g:sortableColumn property="isActive" title="Is Active" /> 32 30 … … 43 41 <td>${fieldValue(bean:departmentInstance, field:'description')}</td> 44 42 45 <td>${fieldValue(bean:departmentInstance, field:'costCode')}</td>46 47 43 <td>${fieldValue(bean:departmentInstance, field:'isActive')}</td> 48 44 -
trunk/grails-app/views/department/show.gsp
r178 r268 44 44 45 45 <tr class="prop"> 46 <td valign="top" class="name">Cost Code:</td>47 48 <td valign="top" class="value">${fieldValue(bean:departmentInstance, field:'costCode')}</td>49 50 </tr>51 52 <tr class="prop">53 46 <td valign="top" class="name">Is Active:</td> 54 47 … … 58 51 59 52 <tr class="prop"> 60 <td valign="top" class="name"> Persons:</td>53 <td valign="top" class="name">Department Extended Attributes:</td> 61 54 62 55 <td valign="top" style="text-align:left;" class="value"> 63 56 <ul> 64 <g:each var=" p" in="${departmentInstance.persons}">65 <li><g:link controller=" person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>57 <g:each var="d" in="${departmentInstance.departmentExtendedAttributes}"> 58 <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li> 66 59 </g:each> 67 60 </ul> … … 71 64 72 65 <tr class="prop"> 73 <td valign="top" class="name">S ystem Sections:</td>66 <td valign="top" class="name">Sections:</td> 74 67 75 68 <td valign="top" style="text-align:left;" class="value"> 76 69 <ul> 77 <g:each var="s" in="${departmentInstance.s ystemSections}">78 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>70 <g:each var="s" in="${departmentInstance.sections}"> 71 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 79 72 </g:each> 80 73 </ul>
Note: See TracChangeset
for help on using the changeset viewer.