Ignore:
Timestamp:
Jan 15, 2010, 1:18:09 PM (14 years ago)
Author:
gav
Message:

Correct site-inventoryStores relationship and generate-all.
Copy section views over sectionDetailed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/sectionDetailed/list.gsp

    r178 r273  
    55        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    66        <meta name="layout" content="main" />
    7         <title>SystemSection List</title>
     7        <title>Section List</title>
    88    </head>
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span>
     11            <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span>
    1212        </div>
    1313        <div class="body">
    14             <h1>SystemSection List</h1>
     14            <h1>Section List</h1>
    1515            <g:if test="${flash.message}">
    1616            <div class="message">${flash.message}</div>
     
    2323                                <g:sortableColumn property="id" title="Id" />
    2424                       
     25                                <g:sortableColumn property="name" title="Name" />
     26                       
    2527                                <g:sortableColumn property="description" title="Description" />
    2628                       
    2729                                <g:sortableColumn property="isActive" title="Is Active" />
    2830                       
    29                                 <g:sortableColumn property="name" title="Name" />
    30                        
     31                                <th>Department</th>
     32                           
    3133                                <th>Site</th>
    3234                           
     
    3436                    </thead>
    3537                    <tbody>
    36                     <g:each in="${systemSectionInstanceList}" status="i" var="systemSectionInstance">
     38                    <g:each in="${sectionInstanceList}" status="i" var="sectionInstance">
    3739                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
    3840                       
    39                             <td><g:link action="show" id="${systemSectionInstance.id}">${fieldValue(bean:systemSectionInstance, field:'id')}</g:link></td>
     41                            <td><g:link action="show" id="${sectionInstance.id}">${fieldValue(bean:sectionInstance, field:'id')}</g:link></td>
    4042                       
    41                             <td>${fieldValue(bean:systemSectionInstance, field:'description')}</td>
     43                            <td>${fieldValue(bean:sectionInstance, field:'name')}</td>
    4244                       
    43                             <td>${fieldValue(bean:systemSectionInstance, field:'isActive')}</td>
     45                            <td>${fieldValue(bean:sectionInstance, field:'description')}</td>
    4446                       
    45                             <td>${fieldValue(bean:systemSectionInstance, field:'name')}</td>
     47                            <td>${fieldValue(bean:sectionInstance, field:'isActive')}</td>
    4648                       
    47                             <td>${fieldValue(bean:systemSectionInstance, field:'site')}</td>
     49                            <td>${fieldValue(bean:sectionInstance, field:'department')}</td>
     50                       
     51                            <td>${fieldValue(bean:sectionInstance, field:'site')}</td>
    4852                       
    4953                        </tr>
     
    5357            </div>
    5458            <div class="paginateButtons">
    55                 <g:paginate total="${systemSectionInstanceTotal}" />
     59                <g:paginate total="${sectionInstanceTotal}" />
    5660            </div>
    5761        </div>
Note: See TracChangeset for help on using the changeset viewer.