Changeset 268 for trunk/grails-app/views/section/create.gsp
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/section/create.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create S ystemSection</title>7 <title>Create Section</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">S ystemSection List</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>Create S ystemSection</h1>14 <h1>Create Section</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> 17 17 </g:if> 18 <g:hasErrors bean="${s ystemSectionInstance}">18 <g:hasErrors bean="${sectionInstance}"> 19 19 <div class="errors"> 20 <g:renderErrors bean="${s ystemSectionInstance}" as="list" />20 <g:renderErrors bean="${sectionInstance}" as="list" /> 21 21 </div> 22 22 </g:hasErrors> … … 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for=" costCode">Cost Code:</label>30 <label for="name">Name:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}"> 33 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/> 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')}"/> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="description">Description:</label> 40 </td> 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')}"/> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="isActive">Is Active:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'isActive','errors')}"> 51 <g:checkBox name="isActive" value="${sectionInstance?.isActive}" ></g:checkBox> 34 52 </td> 35 53 </tr> … … 39 57 <label for="department">Department:</label> 40 58 </td> 41 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}"> 42 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="description">Description:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}"> 51 <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/> 52 </td> 53 </tr> 54 55 <tr class="prop"> 56 <td valign="top" class="name"> 57 <label for="isActive">Is Active:</label> 58 </td> 59 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}"> 60 <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox> 61 </td> 62 </tr> 63 64 <tr class="prop"> 65 <td valign="top" class="name"> 66 <label for="name">Name:</label> 67 </td> 68 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> 69 <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> 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> 70 61 </td> 71 62 </tr> … … 75 66 <label for="site">Site:</label> 76 67 </td> 77 <td valign="top" class="value ${hasErrors(bean:s ystemSectionInstance,field:'site','errors')}">78 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${s ystemSectionInstance?.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> 79 70 </td> 80 71 </tr>
Note: See TracChangeset
for help on using the changeset viewer.