Changeset 93 for trunk/src/grails-app/views/taskModificationType
- Timestamp:
- Mar 29, 2009, 11:56:11 PM (16 years ago)
- Location:
- trunk/src/grails-app/views/taskModificationType
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/views/taskModificationType/create.gsp
r66 r93 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create ModificationType</title>7 <title>Create TaskModificationType</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> ModificationType List</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">TaskModificationType List</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Create ModificationType</h1>15 <h1>Create TaskModificationType</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${ modificationTypeInstance}">19 <g:hasErrors bean="${taskModificationTypeInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${ modificationTypeInstance}" as="list" />21 <g:renderErrors bean="${taskModificationTypeInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> … … 31 31 <label for="description">Description:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean: modificationTypeInstance,field:'description','errors')}">34 <input type="text" id="description" name="description" value="${fieldValue(bean: modificationTypeInstance,field:'description')}"/>33 <td valign="top" class="value ${hasErrors(bean:taskModificationTypeInstance,field:'description','errors')}"> 34 <input type="text" id="description" name="description" value="${fieldValue(bean:taskModificationTypeInstance,field:'description')}"/> 35 35 </td> 36 36 </tr> … … 40 40 <label for="isActive">Is Active:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean: modificationTypeInstance,field:'isActive','errors')}">43 <g:checkBox name="isActive" value="${ modificationTypeInstance?.isActive}" ></g:checkBox>42 <td valign="top" class="value ${hasErrors(bean:taskModificationTypeInstance,field:'isActive','errors')}"> 43 <g:checkBox name="isActive" value="${taskModificationTypeInstance?.isActive}" ></g:checkBox> 44 44 </td> 45 45 </tr> … … 49 49 <label for="name">Name:</label> 50 50 </td> 51 <td valign="top" class="value ${hasErrors(bean: modificationTypeInstance,field:'name','errors')}">52 <input type="text" id="name" name="name" value="${fieldValue(bean: modificationTypeInstance,field:'name')}"/>51 <td valign="top" class="value ${hasErrors(bean:taskModificationTypeInstance,field:'name','errors')}"> 52 <input type="text" id="name" name="name" value="${fieldValue(bean:taskModificationTypeInstance,field:'name')}"/> 53 53 </td> 54 54 </tr> -
trunk/src/grails-app/views/taskModificationType/edit.gsp
r66 r93 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit ModificationType</title>7 <title>Edit TaskModificationType</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> ModificationType List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New ModificationType</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">TaskModificationType List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New TaskModificationType</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit ModificationType</h1>16 <h1>Edit TaskModificationType</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> 19 19 </g:if> 20 <g:hasErrors bean="${ modificationTypeInstance}">20 <g:hasErrors bean="${taskModificationTypeInstance}"> 21 21 <div class="errors"> 22 <g:renderErrors bean="${ modificationTypeInstance}" as="list" />22 <g:renderErrors bean="${taskModificationTypeInstance}" as="list" /> 23 23 </div> 24 24 </g:hasErrors> 25 25 <g:form method="post" > 26 <input type="hidden" name="id" value="${modificationTypeInstance?.id}" /> 26 <input type="hidden" name="id" value="${taskModificationTypeInstance?.id}" /> 27 <input type="hidden" name="version" value="${taskModificationTypeInstance?.version}" /> 27 28 <div class="dialog"> 28 29 <table> … … 33 34 <label for="description">Description:</label> 34 35 </td> 35 <td valign="top" class="value ${hasErrors(bean: modificationTypeInstance,field:'description','errors')}">36 <input type="text" id="description" name="description" value="${fieldValue(bean: modificationTypeInstance,field:'description')}"/>36 <td valign="top" class="value ${hasErrors(bean:taskModificationTypeInstance,field:'description','errors')}"> 37 <input type="text" id="description" name="description" value="${fieldValue(bean:taskModificationTypeInstance,field:'description')}"/> 37 38 </td> 38 39 </tr> … … 42 43 <label for="isActive">Is Active:</label> 43 44 </td> 44 <td valign="top" class="value ${hasErrors(bean:modificationTypeInstance,field:'isActive','errors')}"> 45 <g:checkBox name="isActive" value="${modificationTypeInstance?.isActive}" ></g:checkBox> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="modifications">Modifications:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:modificationTypeInstance,field:'modifications','errors')}"> 54 55 <ul> 56 <g:each var="m" in="${modificationTypeInstance?.modifications?}"> 57 <li><g:link controller="modification" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 58 </g:each> 59 </ul> 60 <g:link controller="modification" params="['modificationType.id':modificationTypeInstance?.id]" action="create">Add Modification</g:link> 61 45 <td valign="top" class="value ${hasErrors(bean:taskModificationTypeInstance,field:'isActive','errors')}"> 46 <g:checkBox name="isActive" value="${taskModificationTypeInstance?.isActive}" ></g:checkBox> 62 47 </td> 63 48 </tr> … … 67 52 <label for="name">Name:</label> 68 53 </td> 69 <td valign="top" class="value ${hasErrors(bean:modificationTypeInstance,field:'name','errors')}"> 70 <input type="text" id="name" name="name" value="${fieldValue(bean:modificationTypeInstance,field:'name')}"/> 54 <td valign="top" class="value ${hasErrors(bean:taskModificationTypeInstance,field:'name','errors')}"> 55 <input type="text" id="name" name="name" value="${fieldValue(bean:taskModificationTypeInstance,field:'name')}"/> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="taskModifications">Task Modifications:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:taskModificationTypeInstance,field:'taskModifications','errors')}"> 64 65 <ul> 66 <g:each var="t" in="${taskModificationTypeInstance?.taskModifications?}"> 67 <li><g:link controller="taskModification" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li> 68 </g:each> 69 </ul> 70 <g:link controller="taskModification" params="['taskModificationType.id':taskModificationTypeInstance?.id]" action="create">Add TaskModification</g:link> 71 71 72 </td> 72 73 </tr> -
trunk/src/grails-app/views/taskModificationType/list.gsp
r66 r93 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title> ModificationType List</title>7 <title>TaskModificationType List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="create" action="create">New ModificationType</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New TaskModificationType</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1> ModificationType List</h1>15 <h1>TaskModificationType List</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 33 33 </thead> 34 34 <tbody> 35 <g:each in="${ modificationTypeInstanceList}" status="i" var="modificationTypeInstance">35 <g:each in="${taskModificationTypeInstanceList}" status="i" var="taskModificationTypeInstance"> 36 36 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 37 37 38 <td><g:link action="show" id="${ modificationTypeInstance.id}">${fieldValue(bean:modificationTypeInstance, field:'id')}</g:link></td>38 <td><g:link action="show" id="${taskModificationTypeInstance.id}">${fieldValue(bean:taskModificationTypeInstance, field:'id')}</g:link></td> 39 39 40 <td>${fieldValue(bean: modificationTypeInstance, field:'description')}</td>40 <td>${fieldValue(bean:taskModificationTypeInstance, field:'description')}</td> 41 41 42 <td>${fieldValue(bean: modificationTypeInstance, field:'isActive')}</td>42 <td>${fieldValue(bean:taskModificationTypeInstance, field:'isActive')}</td> 43 43 44 <td>${fieldValue(bean: modificationTypeInstance, field:'name')}</td>44 <td>${fieldValue(bean:taskModificationTypeInstance, field:'name')}</td> 45 45 46 46 </tr> … … 50 50 </div> 51 51 <div class="paginateButtons"> 52 <g:paginate total="${ ModificationType.count()}" />52 <g:paginate total="${taskModificationTypeInstanceTotal}" /> 53 53 </div> 54 54 </div> -
trunk/src/grails-app/views/taskModificationType/show.gsp
r66 r93 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show ModificationType</title>7 <title>Show TaskModificationType</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> ModificationType List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New ModificationType</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">TaskModificationType List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New TaskModificationType</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Show ModificationType</h1>16 <h1>Show TaskModificationType</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> … … 26 26 <td valign="top" class="name">Id:</td> 27 27 28 <td valign="top" class="value">${fieldValue(bean: modificationTypeInstance, field:'id')}</td>28 <td valign="top" class="value">${fieldValue(bean:taskModificationTypeInstance, field:'id')}</td> 29 29 30 30 </tr> … … 33 33 <td valign="top" class="name">Description:</td> 34 34 35 <td valign="top" class="value">${fieldValue(bean: modificationTypeInstance, field:'description')}</td>35 <td valign="top" class="value">${fieldValue(bean:taskModificationTypeInstance, field:'description')}</td> 36 36 37 37 </tr> … … 40 40 <td valign="top" class="name">Is Active:</td> 41 41 42 <td valign="top" class="value">${fieldValue(bean:modificationTypeInstance, field:'isActive')}</td> 43 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name">Modifications:</td> 48 49 <td valign="top" style="text-align:left;" class="value"> 50 <ul> 51 <g:each var="m" in="${modificationTypeInstance.modifications}"> 52 <li><g:link controller="modification" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 53 </g:each> 54 </ul> 55 </td> 42 <td valign="top" class="value">${fieldValue(bean:taskModificationTypeInstance, field:'isActive')}</td> 56 43 57 44 </tr> … … 60 47 <td valign="top" class="name">Name:</td> 61 48 62 <td valign="top" class="value">${fieldValue(bean:modificationTypeInstance, field:'name')}</td> 49 <td valign="top" class="value">${fieldValue(bean:taskModificationTypeInstance, field:'name')}</td> 50 51 </tr> 52 53 <tr class="prop"> 54 <td valign="top" class="name">Task Modifications:</td> 55 56 <td valign="top" style="text-align:left;" class="value"> 57 <ul> 58 <g:each var="t" in="${taskModificationTypeInstance.taskModifications}"> 59 <li><g:link controller="taskModification" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li> 60 </g:each> 61 </ul> 62 </td> 63 63 64 64 </tr> … … 69 69 <div class="buttons"> 70 70 <g:form> 71 <input type="hidden" name="id" value="${ modificationTypeInstance?.id}" />71 <input type="hidden" name="id" value="${taskModificationTypeInstance?.id}" /> 72 72 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 73 73 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
Note: See TracChangeset
for help on using the changeset viewer.