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/create.gsp

    r178 r273  
    55        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    66        <meta name="layout" content="main" />
    7         <title>Create SystemSection</title>         
     7        <title>Create Section</title>
    88    </head>
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">SystemSection List</g:link></span>
     11            <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span>
    1212        </div>
    1313        <div class="body">
    14             <h1>Create SystemSection</h1>
     14            <h1>Create Section</h1>
    1515            <g:if test="${flash.message}">
    1616            <div class="message">${flash.message}</div>
    1717            </g:if>
    18             <g:hasErrors bean="${systemSectionInstance}">
     18            <g:hasErrors bean="${sectionInstance}">
    1919            <div class="errors">
    20                 <g:renderErrors bean="${systemSectionInstance}" as="list" />
     20                <g:renderErrors bean="${sectionInstance}" as="list" />
    2121            </div>
    2222            </g:hasErrors>
     
    3030                                    <label for="name">Name:</label>
    3131                                </td>
    32                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}">
    33                                     <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/>
     32                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'name','errors')}">
     33                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:sectionInstance,field:'name')}"/>
    3434                                </td>
    35                             </tr>
     35                            </tr> 
    3636                       
    3737                            <tr class="prop">
     
    3939                                    <label for="description">Description:</label>
    4040                                </td>
    41                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}">
    42                                     <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/>
     41                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'description','errors')}">
     42                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:sectionInstance,field:'description')}"/>
    4343                                </td>
    44                             </tr>
     44                            </tr> 
    4545                       
    4646                            <tr class="prop">
    4747                                <td valign="top" class="name">
    48                                     <label for="costCode">Cost Code:</label>
     48                                    <label for="isActive">Is Active:</label>
    4949                                </td>
    50                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}">
    51                                     <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/>
     50                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'isActive','errors')}">
     51                                    <g:checkBox name="isActive" value="${sectionInstance?.isActive}" ></g:checkBox>
    5252                                </td>
    5353                            </tr>
     
    5757                                    <label for="department">Department:</label>
    5858                                </td>
    59                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}">
    60                                     <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select>
     59                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}">
     60                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select>
    6161                                </td>
    6262                            </tr>
     
    6666                                    <label for="site">Site:</label>
    6767                                </td>
    68                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}">
    69                                     <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select>
     68                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'site','errors')}">
     69                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${sectionInstance?.site?.id}" ></g:select>
    7070                                </td>
    7171                            </tr>
    72                        
    73                             <tr class="prop">
    74                                 <td valign="top" class="name">
    75                                     <label for="isActive">Is Active:</label>
    76                                 </td>
    77                                 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}">
    78                                     <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox>
    79                                 </td>
    80                             </tr>
    8172                       
    8273                        </tbody>
Note: See TracChangeset for help on using the changeset viewer.