Changeset 268 for trunk/grails-app/views/site
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- Location:
- trunk/grails-app/views/site
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/site/create.gsp
r178 r268 46 46 <tr class="prop"> 47 47 <td valign="top" class="name"> 48 <label for="costCode">Cost Code:</label>49 </td>50 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'costCode','errors')}">51 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:siteInstance,field:'costCode')}"/>52 </td>53 </tr>54 55 <tr class="prop">56 <td valign="top" class="name">57 48 <label for="isActive">Is Active:</label> 58 49 </td> -
trunk/grails-app/views/site/edit.gsp
r178 r268 49 49 <tr class="prop"> 50 50 <td valign="top" class="name"> 51 <label for="costCode">Cost Code:</label>52 </td>53 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'costCode','errors')}">54 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:siteInstance,field:'costCode')}"/>55 </td>56 </tr>57 58 <tr class="prop">59 <td valign="top" class="name">60 <label for="inventoryStores">Inventory Stores:</label>61 </td>62 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'inventoryStores','errors')}">63 64 <ul>65 <g:each var="i" in="${siteInstance?.inventoryStores?}">66 <li><g:link controller="inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>67 </g:each>68 </ul>69 <g:link controller="inventoryStore" params="['site.id':siteInstance?.id]" action="create">Add InventoryStore</g:link>70 71 </td>72 </tr>73 74 <tr class="prop">75 <td valign="top" class="name">76 51 <label for="isActive">Is Active:</label> 77 52 </td> … … 83 58 <tr class="prop"> 84 59 <td valign="top" class="name"> 85 <label for="s ystemSections">SystemSections:</label>60 <label for="sections">Sections:</label> 86 61 </td> 87 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'s ystemSections','errors')}">62 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'sections','errors')}"> 88 63 89 64 <ul> 90 <g:each var="s" in="${siteInstance?.s ystemSections?}">91 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>65 <g:each var="s" in="${siteInstance?.sections?}"> 66 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 92 67 </g:each> 93 68 </ul> 94 <g:link controller="systemSection" params="['site.id':siteInstance?.id]" action="create">Add SystemSection</g:link> 69 <g:link controller="section" params="['site.id':siteInstance?.id]" action="create">Add Section</g:link> 70 71 </td> 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name"> 76 <label for="siteExtendedAttributes">Site Extended Attributes:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'siteExtendedAttributes','errors')}"> 79 80 <ul> 81 <g:each var="s" in="${siteInstance?.siteExtendedAttributes?}"> 82 <li><g:link controller="siteExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 83 </g:each> 84 </ul> 85 <g:link controller="siteExtendedAttribute" params="['site.id':siteInstance?.id]" action="create">Add SiteExtendedAttribute</g:link> 95 86 96 87 </td> -
trunk/grails-app/views/site/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:siteInstance, field:'description')}</td> 44 42 45 <td>${fieldValue(bean:siteInstance, field:'costCode')}</td>46 47 43 <td>${fieldValue(bean:siteInstance, field:'isActive')}</td> 48 44 -
trunk/grails-app/views/site/show.gsp
r178 r268 44 44 45 45 <tr class="prop"> 46 <td valign="top" class="name"> Cost Code:</td>46 <td valign="top" class="name">Is Active:</td> 47 47 48 <td valign="top" class="value">${fieldValue(bean:siteInstance, field:' costCode')}</td>48 <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'isActive')}</td> 49 49 50 50 </tr> 51 51 52 52 <tr class="prop"> 53 <td valign="top" class="name"> Inventory Stores:</td>53 <td valign="top" class="name">Sections:</td> 54 54 55 55 <td valign="top" style="text-align:left;" class="value"> 56 56 <ul> 57 <g:each var=" i" in="${siteInstance.inventoryStores}">58 <li><g:link controller=" inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>57 <g:each var="s" in="${siteInstance.sections}"> 58 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 59 59 </g:each> 60 60 </ul> … … 64 64 65 65 <tr class="prop"> 66 <td valign="top" class="name">Is Active:</td> 67 68 <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'isActive')}</td> 69 70 </tr> 71 72 <tr class="prop"> 73 <td valign="top" class="name">System Sections:</td> 66 <td valign="top" class="name">Site Extended Attributes:</td> 74 67 75 68 <td valign="top" style="text-align:left;" class="value"> 76 69 <ul> 77 <g:each var="s" in="${siteInstance.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="${siteInstance.siteExtendedAttributes}"> 71 <li><g:link controller="siteExtendedAttribute" 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.