Index: trunk/grails-app/views/sectionDetailed/create.gsp
===================================================================
--- trunk/grails-app/views/sectionDetailed/create.gsp	(revision 272)
+++ trunk/grails-app/views/sectionDetailed/create.gsp	(revision 273)
@@ -5,18 +5,18 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Create SystemSection</title>         
+        <title>Create Section</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">SystemSection List</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span>
         </div>
         <div class="body">
-            <h1>Create SystemSection</h1>
+            <h1>Create Section</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
             </g:if>
-            <g:hasErrors bean="${systemSectionInstance}">
+            <g:hasErrors bean="${sectionInstance}">
             <div class="errors">
-                <g:renderErrors bean="${systemSectionInstance}" as="list" />
+                <g:renderErrors bean="${sectionInstance}" as="list" />
             </div>
             </g:hasErrors>
@@ -30,8 +30,8 @@
                                     <label for="name">Name:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:sectionInstance,field:'name')}"/>
                                 </td>
-                            </tr>
+                            </tr> 
                         
                             <tr class="prop">
@@ -39,15 +39,15 @@
                                     <label for="description">Description:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:sectionInstance,field:'description')}"/>
                                 </td>
-                            </tr>
+                            </tr> 
                         
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
+                                    <label for="isActive">Is Active:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${sectionInstance?.isActive}" ></g:checkBox>
                                 </td>
                             </tr> 
@@ -57,6 +57,6 @@
                                     <label for="department">Department:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}">
-                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}">
+                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select>
                                 </td>
                             </tr> 
@@ -66,17 +66,8 @@
                                     <label for="site">Site:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}">
-                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'site','errors')}">
+                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${sectionInstance?.site?.id}" ></g:select>
                                 </td>
                             </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="isActive">Is Active:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}">
-                                    <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox>
-                                </td>
-                            </tr>
                         
                         </tbody>
Index: trunk/grails-app/views/sectionDetailed/edit.gsp
===================================================================
--- trunk/grails-app/views/sectionDetailed/edit.gsp	(revision 272)
+++ trunk/grails-app/views/sectionDetailed/edit.gsp	(revision 273)
@@ -5,24 +5,24 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Edit SystemSection</title>
+        <title>Edit Section</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">SystemSection List</g:link></span>
-            <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span>
         </div>
         <div class="body">
-            <h1>Edit SystemSection</h1>
+            <h1>Edit Section</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
             </g:if>
-            <g:hasErrors bean="${systemSectionInstance}">
+            <g:hasErrors bean="${sectionInstance}">
             <div class="errors">
-                <g:renderErrors bean="${systemSectionInstance}" as="list" />
+                <g:renderErrors bean="${sectionInstance}" as="list" />
             </div>
             </g:hasErrors>
             <g:form method="post" >
-                <input type="hidden" name="id" value="${systemSectionInstance?.id}" />
-                <input type="hidden" name="version" value="${systemSectionInstance?.version}" />
+                <input type="hidden" name="id" value="${sectionInstance?.id}" />
+                <input type="hidden" name="version" value="${sectionInstance?.version}" />
                 <div class="dialog">
                     <table>
@@ -33,8 +33,8 @@
                                     <label for="name">Name:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:sectionInstance,field:'name')}"/>
                                 </td>
-                            </tr>
+                            </tr> 
                         
                             <tr class="prop">
@@ -42,17 +42,33 @@
                                     <label for="description">Description:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:sectionInstance,field:'description')}"/>
                                 </td>
-                            </tr>
+                            </tr> 
                         
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
+                                    <label for="isActive">Is Active:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${sectionInstance?.isActive}" ></g:checkBox>
                                 </td>
-                            </tr>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="assets">Assets:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'assets','errors')}">
+                                    
+<ul>
+<g:each var="a" in="${sectionInstance?.assets?}">
+    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="asset" params="['section.id':sectionInstance?.id]" action="create">Add Asset</g:link>
+
+                                </td>
+                            </tr> 
                         
                             <tr class="prop">
@@ -60,6 +76,38 @@
                                     <label for="department">Department:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}">
-                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}">
+                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="maintenanceActions">Maintenance Actions:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'maintenanceActions','errors')}">
+                                    
+<ul>
+<g:each var="m" in="${sectionInstance?.maintenanceActions?}">
+    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="maintenanceAction" params="['section.id':sectionInstance?.id]" action="create">Add MaintenanceAction</g:link>
+
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="sectionExtendedAttributes">Section Extended Attributes:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'sectionExtendedAttributes','errors')}">
+                                    
+<ul>
+<g:each var="s" in="${sectionInstance?.sectionExtendedAttributes?}">
+    <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="sectionExtendedAttribute" params="['section.id':sectionInstance?.id]" action="create">Add SectionExtendedAttribute</g:link>
+
                                 </td>
                             </tr> 
@@ -69,47 +117,6 @@
                                     <label for="site">Site:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}">
-                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select>
-                                </td>
-                            </tr>
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="isActive">Is Active:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}">
-                                    <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox>
-                                </td>
-                            </tr>
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="assets">Assets:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assets','errors')}">
-                                    
-<ul>
-<g:each var="a" in="${systemSectionInstance?.assets?}">
-    <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
-</g:each>
-</ul>
-<g:link controller="assetDetailed" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link>
-
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="maintenanceActions">Maintenance Actions:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'maintenanceActions','errors')}">
-                                    
-<ul>
-<g:each var="m" in="${systemSectionInstance?.maintenanceActions?}">
-    <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
-</g:each>
-</ul>
-<g:link controller="maintenanceActionDetailed" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link>
-
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'site','errors')}">
+                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${sectionInstance?.site?.id}" ></g:select>
                                 </td>
                             </tr> 
Index: trunk/grails-app/views/sectionDetailed/list.gsp
===================================================================
--- trunk/grails-app/views/sectionDetailed/list.gsp	(revision 272)
+++ trunk/grails-app/views/sectionDetailed/list.gsp	(revision 273)
@@ -5,12 +5,12 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>SystemSection List</title>
+        <title>Section List</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span>
         </div>
         <div class="body">
-            <h1>SystemSection List</h1>
+            <h1>Section List</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
@@ -23,10 +23,12 @@
                    	        <g:sortableColumn property="id" title="Id" />
                         
+                   	        <g:sortableColumn property="name" title="Name" />
+                        
                    	        <g:sortableColumn property="description" title="Description" />
                         
                    	        <g:sortableColumn property="isActive" title="Is Active" />
                         
-                   	        <g:sortableColumn property="name" title="Name" />
-                        
+                   	        <th>Department</th>
+                   	    
                    	        <th>Site</th>
                    	    
@@ -34,16 +36,18 @@
                     </thead>
                     <tbody>
-                    <g:each in="${systemSectionInstanceList}" status="i" var="systemSectionInstance">
+                    <g:each in="${sectionInstanceList}" status="i" var="sectionInstance">
                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                         
-                            <td><g:link action="show" id="${systemSectionInstance.id}">${fieldValue(bean:systemSectionInstance, field:'id')}</g:link></td>
+                            <td><g:link action="show" id="${sectionInstance.id}">${fieldValue(bean:sectionInstance, field:'id')}</g:link></td>
                         
-                            <td>${fieldValue(bean:systemSectionInstance, field:'description')}</td>
+                            <td>${fieldValue(bean:sectionInstance, field:'name')}</td>
                         
-                            <td>${fieldValue(bean:systemSectionInstance, field:'isActive')}</td>
+                            <td>${fieldValue(bean:sectionInstance, field:'description')}</td>
                         
-                            <td>${fieldValue(bean:systemSectionInstance, field:'name')}</td>
+                            <td>${fieldValue(bean:sectionInstance, field:'isActive')}</td>
                         
-                            <td>${fieldValue(bean:systemSectionInstance, field:'site')}</td>
+                            <td>${fieldValue(bean:sectionInstance, field:'department')}</td>
+                        
+                            <td>${fieldValue(bean:sectionInstance, field:'site')}</td>
                         
                         </tr>
@@ -53,5 +57,5 @@
             </div>
             <div class="paginateButtons">
-                <g:paginate total="${systemSectionInstanceTotal}" />
+                <g:paginate total="${sectionInstanceTotal}" />
             </div>
         </div>
Index: trunk/grails-app/views/sectionDetailed/show.gsp
===================================================================
--- trunk/grails-app/views/sectionDetailed/show.gsp	(revision 272)
+++ trunk/grails-app/views/sectionDetailed/show.gsp	(revision 273)
@@ -5,13 +5,13 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Show SystemSection</title>
+        <title>Show Section</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">SystemSection List</g:link></span>
-            <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span>
         </div>
         <div class="body">
-            <h1>Show SystemSection</h1>
+            <h1>Show Section</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
@@ -25,5 +25,5 @@
                             <td valign="top" class="name">Id:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'id')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'id')}</td>
                             
                         </tr>
@@ -32,5 +32,5 @@
                             <td valign="top" class="name">Name:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'name')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'name')}</td>
                             
                         </tr>
@@ -39,26 +39,5 @@
                             <td valign="top" class="name">Description:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'description')}</td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Cost Code:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'costCode')}</td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Department:</td>
-                            
-                            <td valign="top" class="value"><g:link controller="department" action="show" id="${systemSectionInstance?.department?.id}">${systemSectionInstance?.department?.encodeAsHTML()}</g:link></td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Site:</td>
-                            
-                            <td valign="top" class="value"><g:link controller="site" action="show" id="${systemSectionInstance?.site?.id}">${systemSectionInstance?.site?.encodeAsHTML()}</g:link></td>
+                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'description')}</td>
                             
                         </tr>
@@ -67,5 +46,5 @@
                             <td valign="top" class="name">Is Active:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'isActive')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'isActive')}</td>
                             
                         </tr>
@@ -76,9 +55,16 @@
                             <td  valign="top" style="text-align:left;" class="value">
                                 <ul>
-                                <g:each var="a" in="${systemSectionInstance.assets}">
-                                    <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
+                                <g:each var="a" in="${sectionInstance.assets}">
+                                    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
                                 </g:each>
                                 </ul>
                             </td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Department:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="department" action="show" id="${sectionInstance?.department?.id}">${sectionInstance?.department?.encodeAsHTML()}</g:link></td>
                             
                         </tr>
@@ -89,9 +75,29 @@
                             <td  valign="top" style="text-align:left;" class="value">
                                 <ul>
-                                <g:each var="m" in="${systemSectionInstance.maintenanceActions}">
-                                    <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
+                                <g:each var="m" in="${sectionInstance.maintenanceActions}">
+                                    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
                                 </g:each>
                                 </ul>
                             </td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Section Extended Attributes:</td>
+                            
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="s" in="${sectionInstance.sectionExtendedAttributes}">
+                                    <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Site:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="site" action="show" id="${sectionInstance?.site?.id}">${sectionInstance?.site?.encodeAsHTML()}</g:link></td>
                             
                         </tr>
@@ -102,5 +108,5 @@
             <div class="buttons">
                 <g:form>
-                    <input type="hidden" name="id" value="${systemSectionInstance?.id}" />
+                    <input type="hidden" name="id" value="${sectionInstance?.id}" />
                     <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
Index: trunk/grails-app/views/site/edit.gsp
===================================================================
--- trunk/grails-app/views/site/edit.gsp	(revision 272)
+++ trunk/grails-app/views/site/edit.gsp	(revision 273)
@@ -58,4 +58,20 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
+                                    <label for="inventoryStores">Inventory Stores:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'inventoryStores','errors')}">
+                                    
+<ul>
+<g:each var="i" in="${siteInstance?.inventoryStores?}">
+    <li><g:link controller="inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="inventoryStore" params="['site.id':siteInstance?.id]" action="create">Add InventoryStore</g:link>
+
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
                                     <label for="sections">Sections:</label>
                                 </td>
Index: trunk/grails-app/views/site/show.gsp
===================================================================
--- trunk/grails-app/views/site/show.gsp	(revision 272)
+++ trunk/grails-app/views/site/show.gsp	(revision 273)
@@ -51,4 +51,17 @@
                     
                         <tr class="prop">
+                            <td valign="top" class="name">Inventory Stores:</td>
+                            
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="i" in="${siteInstance.inventoryStores}">
+                                    <li><g:link controller="inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
                             <td valign="top" class="name">Sections:</td>
                             
