Changeset 557
- Timestamp:
- May 31, 2010, 7:07:37 PM (15 years ago)
- Location:
- trunk/grails-app/views/unitOfMeasure
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/unitOfMeasure/create.gsp
r178 r557 13 13 <div class="body"> 14 14 <h1>Create UnitOfMeasure</h1> 15 <g:if test="${flash.message}"> 16 <div class="message">${flash.message}</div> 17 </g:if> 15 <g:render template="/shared/messages" /> 18 16 <g:hasErrors bean="${unitOfMeasureInstance}"> 19 17 <div class="errors"> … … 28 26 <tr class="prop"> 29 27 <td valign="top" class="name"> 28 <label for="name">Name:</label> 29 </td> 30 <td valign="top" class="value ${hasErrors(bean:unitOfMeasureInstance,field:'name','errors')}"> 31 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:unitOfMeasureInstance,field:'name')}"/> 32 </td> 33 </tr> 34 35 <tr class="prop"> 36 <td valign="top" class="name"> 30 37 <label for="description">Description:</label> 31 38 </td> 32 39 <td valign="top" class="value ${hasErrors(bean:unitOfMeasureInstance,field:'description','errors')}"> 33 <input type="text" id="description" name="description" value="${fieldValue(bean:unitOfMeasureInstance,field:'description')}"/>40 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:unitOfMeasureInstance,field:'description')}"/> 34 41 </td> 35 42 </tr> … … 41 48 <td valign="top" class="value ${hasErrors(bean:unitOfMeasureInstance,field:'isActive','errors')}"> 42 49 <g:checkBox name="isActive" value="${unitOfMeasureInstance?.isActive}" ></g:checkBox> 43 </td>44 </tr>45 46 <tr class="prop">47 <td valign="top" class="name">48 <label for="name">Name:</label>49 </td>50 <td valign="top" class="value ${hasErrors(bean:unitOfMeasureInstance,field:'name','errors')}">51 <input type="text" id="name" name="name" value="${fieldValue(bean:unitOfMeasureInstance,field:'name')}"/>52 50 </td> 53 51 </tr> -
trunk/grails-app/views/unitOfMeasure/edit.gsp
r178 r557 14 14 <div class="body"> 15 15 <h1>Edit UnitOfMeasure</h1> 16 <g:if test="${flash.message}"> 17 <div class="message">${flash.message}</div> 18 </g:if> 16 <g:render template="/shared/messages" /> 19 17 <g:hasErrors bean="${unitOfMeasureInstance}"> 20 18 <div class="errors"> … … 31 29 <tr class="prop"> 32 30 <td valign="top" class="name"> 31 <label for="name">Name:</label> 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:unitOfMeasureInstance,field:'name','errors')}"> 34 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:unitOfMeasureInstance,field:'name')}"/> 35 </td> 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name"> 33 40 <label for="description">Description:</label> 34 41 </td> 35 42 <td valign="top" class="value ${hasErrors(bean:unitOfMeasureInstance,field:'description','errors')}"> 36 <input type="text" id="description" name="description" value="${fieldValue(bean:unitOfMeasureInstance,field:'description')}"/>43 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:unitOfMeasureInstance,field:'description')}"/> 37 44 </td> 38 45 </tr> … … 49 56 </g:each> 50 57 </ul> 51 <g:link controller="inventoryItem" params="['unitOfMeasure.id':unitOfMeasureInstance?.id]" action="create"> Add InventoryItem</g:link>58 <g:link controller="inventoryItem" params="['unitOfMeasure.id':unitOfMeasureInstance?.id]" action="create">+Add InventoryItem</g:link> 52 59 53 60 </td> … … 63 70 </tr> 64 71 65 <tr class="prop">66 <td valign="top" class="name">67 <label for="name">Name:</label>68 </td>69 <td valign="top" class="value ${hasErrors(bean:unitOfMeasureInstance,field:'name','errors')}">70 <input type="text" id="name" name="name" value="${fieldValue(bean:unitOfMeasureInstance,field:'name')}"/>71 </td>72 </tr>73 74 72 </tbody> 75 73 </table> … … 77 75 <div class="buttons"> 78 76 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 77 <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> 79 78 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 80 79 </div> -
trunk/grails-app/views/unitOfMeasure/list.gsp
r178 r557 13 13 <div class="body"> 14 14 <h1>UnitOfMeasure List</h1> 15 <g:if test="${flash.message}"> 16 <div class="message">${flash.message}</div> 17 </g:if> 15 <g:render template="/shared/messages" /> 18 16 <div class="list"> 19 17 <table> … … 23 21 <g:sortableColumn property="id" title="Id" /> 24 22 23 <g:sortableColumn property="name" title="Name" /> 24 25 25 <g:sortableColumn property="description" title="Description" /> 26 26 27 27 <g:sortableColumn property="isActive" title="Is Active" /> 28 29 <g:sortableColumn property="name" title="Name" />30 28 31 29 </tr> … … 37 35 <td><g:link action="show" id="${unitOfMeasureInstance.id}">${fieldValue(bean:unitOfMeasureInstance, field:'id')}</g:link></td> 38 36 37 <td>${fieldValue(bean:unitOfMeasureInstance, field:'name')}</td> 38 39 39 <td>${fieldValue(bean:unitOfMeasureInstance, field:'description')}</td> 40 40 41 41 <td>${fieldValue(bean:unitOfMeasureInstance, field:'isActive')}</td> 42 43 <td>${fieldValue(bean:unitOfMeasureInstance, field:'name')}</td>44 42 45 43 </tr> -
trunk/grails-app/views/unitOfMeasure/show.gsp
r178 r557 14 14 <div class="body"> 15 15 <h1>Show UnitOfMeasure</h1> 16 <g:if test="${flash.message}"> 17 <div class="message">${flash.message}</div> 18 </g:if> 16 <g:render template="/shared/messages" /> 19 17 <div class="dialog"> 20 18 <table> … … 26 24 27 25 <td valign="top" class="value">${fieldValue(bean:unitOfMeasureInstance, field:'id')}</td> 26 27 </tr> 28 29 <tr class="prop"> 30 <td valign="top" class="name">Name:</td> 31 32 <td valign="top" class="value">${fieldValue(bean:unitOfMeasureInstance, field:'name')}</td> 28 33 29 34 </tr> … … 56 61 </tr> 57 62 58 <tr class="prop">59 <td valign="top" class="name">Name:</td>60 61 <td valign="top" class="value">${fieldValue(bean:unitOfMeasureInstance, field:'name')}</td>62 63 </tr>64 65 63 </tbody> 66 64 </table>
Note: See TracChangeset
for help on using the changeset viewer.