Changeset 93 for trunk/src/grails-app/views/taskModification
- Timestamp:
- Mar 29, 2009, 11:56:11 PM (16 years ago)
- Location:
- trunk/src/grails-app/views/taskModification
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/views/taskModification/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 Modification</title>7 <title>Create TaskModification</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"> Modification List</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">TaskModification List</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Create Modification</h1>15 <h1>Create TaskModification</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${ modificationInstance}">19 <g:hasErrors bean="${taskModificationInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${ modificationInstance}" as="list" />21 <g:renderErrors bean="${taskModificationInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> … … 31 31 <label for="person">Person:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'person','errors')}">34 <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${ modificationInstance?.person?.id}" ></g:select>33 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'person','errors')}"> 34 <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${taskModificationInstance?.person?.id}" ></g:select> 35 35 </td> 36 36 </tr> … … 38 38 <tr class="prop"> 39 39 <td valign="top" class="name"> 40 <label for=" modificationType">Modification Type:</label>40 <label for="taskModificationType">Task Modification Type:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'modificationType','errors')}">43 <g:select optionKey="id" from="${ ModificationType.list()}" name="modificationType.id" value="${modificationInstance?.modificationType?.id}" ></g:select>42 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'taskModificationType','errors')}"> 43 <g:select optionKey="id" from="${TaskModificationType.list()}" name="taskModificationType.id" value="${taskModificationInstance?.taskModificationType?.id}" ></g:select> 44 44 </td> 45 45 </tr> … … 49 49 <label for="task">Task:</label> 50 50 </td> 51 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'task','errors')}">52 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${ modificationInstance?.task?.id}" ></g:select>51 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'task','errors')}"> 52 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${taskModificationInstance?.task?.id}" ></g:select> 53 53 </td> 54 54 </tr> … … 58 58 <label for="date">Date:</label> 59 59 </td> 60 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'date','errors')}">61 <g:datePicker name="date" value="${ modificationInstance?.date}" ></g:datePicker>60 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'date','errors')}"> 61 <g:datePicker name="date" value="${taskModificationInstance?.date}" ></g:datePicker> 62 62 </td> 63 63 </tr> … … 67 67 <label for="comment">Comment:</label> 68 68 </td> 69 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'comment','errors')}">70 <input type="text" id="comment" name="comment" value="${fieldValue(bean: modificationInstance,field:'comment')}"/>69 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'comment','errors')}"> 70 <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskModificationInstance,field:'comment')}"/> 71 71 </td> 72 72 </tr> -
trunk/src/grails-app/views/taskModification/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 Modification</title>7 <title>Edit TaskModification</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"> Modification List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New Modification</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">TaskModification List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New TaskModification</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit Modification</h1>16 <h1>Edit TaskModification</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> 19 19 </g:if> 20 <g:hasErrors bean="${ modificationInstance}">20 <g:hasErrors bean="${taskModificationInstance}"> 21 21 <div class="errors"> 22 <g:renderErrors bean="${ modificationInstance}" as="list" />22 <g:renderErrors bean="${taskModificationInstance}" as="list" /> 23 23 </div> 24 24 </g:hasErrors> 25 25 <g:form method="post" > 26 <input type="hidden" name="id" value="${modificationInstance?.id}" /> 26 <input type="hidden" name="id" value="${taskModificationInstance?.id}" /> 27 <input type="hidden" name="version" value="${taskModificationInstance?.version}" /> 27 28 <div class="dialog"> 28 29 <table> … … 33 34 <label for="person">Person:</label> 34 35 </td> 35 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'person','errors')}">36 <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${ modificationInstance?.person?.id}" ></g:select>36 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'person','errors')}"> 37 <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${taskModificationInstance?.person?.id}" ></g:select> 37 38 </td> 38 39 </tr> … … 40 41 <tr class="prop"> 41 42 <td valign="top" class="name"> 42 <label for=" modificationType">Modification Type:</label>43 <label for="taskModificationType">Task Modification Type:</label> 43 44 </td> 44 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'modificationType','errors')}">45 <g:select optionKey="id" from="${ ModificationType.list()}" name="modificationType.id" value="${modificationInstance?.modificationType?.id}" ></g:select>45 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'taskModificationType','errors')}"> 46 <g:select optionKey="id" from="${TaskModificationType.list()}" name="taskModificationType.id" value="${taskModificationInstance?.taskModificationType?.id}" ></g:select> 46 47 </td> 47 48 </tr> … … 51 52 <label for="task">Task:</label> 52 53 </td> 53 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'task','errors')}">54 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${ modificationInstance?.task?.id}" ></g:select>54 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'task','errors')}"> 55 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${taskModificationInstance?.task?.id}" ></g:select> 55 56 </td> 56 57 </tr> … … 60 61 <label for="date">Date:</label> 61 62 </td> 62 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'date','errors')}">63 <g:datePicker name="date" value="${ modificationInstance?.date}" ></g:datePicker>63 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'date','errors')}"> 64 <g:datePicker name="date" value="${taskModificationInstance?.date}" ></g:datePicker> 64 65 </td> 65 66 </tr> … … 69 70 <label for="comment">Comment:</label> 70 71 </td> 71 <td valign="top" class="value ${hasErrors(bean: modificationInstance,field:'comment','errors')}">72 <input type="text" id="comment" name="comment" value="${fieldValue(bean: modificationInstance,field:'comment')}"/>72 <td valign="top" class="value ${hasErrors(bean:taskModificationInstance,field:'comment','errors')}"> 73 <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskModificationInstance,field:'comment')}"/> 73 74 </td> 74 75 </tr> -
trunk/src/grails-app/views/taskModification/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> Modification List</title>7 <title>TaskModification 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 Modification</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New TaskModification</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1> Modification List</h1>15 <h1>TaskModification List</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 26 26 <th>Person</th> 27 27 28 <th> Modification Type</th>28 <th>Task Modification Type</th> 29 29 30 30 <th>Task</th> … … 37 37 </thead> 38 38 <tbody> 39 <g:each in="${ modificationInstanceList}" status="i" var="modificationInstance">39 <g:each in="${taskModificationInstanceList}" status="i" var="taskModificationInstance"> 40 40 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 41 41 42 <td><g:link action="show" id="${ modificationInstance.id}">${fieldValue(bean:modificationInstance, field:'id')}</g:link></td>42 <td><g:link action="show" id="${taskModificationInstance.id}">${fieldValue(bean:taskModificationInstance, field:'id')}</g:link></td> 43 43 44 <td>${fieldValue(bean: modificationInstance, field:'person')}</td>44 <td>${fieldValue(bean:taskModificationInstance, field:'person')}</td> 45 45 46 <td>${fieldValue(bean: modificationInstance, field:'modificationType')}</td>46 <td>${fieldValue(bean:taskModificationInstance, field:'taskModificationType')}</td> 47 47 48 <td>${fieldValue(bean: modificationInstance, field:'task')}</td>48 <td>${fieldValue(bean:taskModificationInstance, field:'task')}</td> 49 49 50 <td>${fieldValue(bean: modificationInstance, field:'date')}</td>50 <td>${fieldValue(bean:taskModificationInstance, field:'date')}</td> 51 51 52 <td>${fieldValue(bean: modificationInstance, field:'comment')}</td>52 <td>${fieldValue(bean:taskModificationInstance, field:'comment')}</td> 53 53 54 54 </tr> … … 58 58 </div> 59 59 <div class="paginateButtons"> 60 <g:paginate total="${ Modification.count()}" />60 <g:paginate total="${taskModificationInstanceTotal}" /> 61 61 </div> 62 62 </div> -
trunk/src/grails-app/views/taskModification/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 Modification</title>7 <title>Show TaskModification</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"> Modification List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New Modification</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">TaskModification List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New TaskModification</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Show Modification</h1>16 <h1>Show TaskModification</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: modificationInstance, field:'id')}</td>28 <td valign="top" class="value">${fieldValue(bean:taskModificationInstance, field:'id')}</td> 29 29 30 30 </tr> … … 33 33 <td valign="top" class="name">Person:</td> 34 34 35 <td valign="top" class="value"><g:link controller="person" action="show" id="${ modificationInstance?.person?.id}">${modificationInstance?.person?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value"><g:link controller="person" action="show" id="${taskModificationInstance?.person?.id}">${taskModificationInstance?.person?.encodeAsHTML()}</g:link></td> 36 36 37 37 </tr> 38 38 39 39 <tr class="prop"> 40 <td valign="top" class="name"> Modification Type:</td>40 <td valign="top" class="name">Task Modification Type:</td> 41 41 42 <td valign="top" class="value"><g:link controller=" modificationType" action="show" id="${modificationInstance?.modificationType?.id}">${modificationInstance?.modificationType?.encodeAsHTML()}</g:link></td>42 <td valign="top" class="value"><g:link controller="taskModificationType" action="show" id="${taskModificationInstance?.taskModificationType?.id}">${taskModificationInstance?.taskModificationType?.encodeAsHTML()}</g:link></td> 43 43 44 44 </tr> … … 47 47 <td valign="top" class="name">Task:</td> 48 48 49 <td valign="top" class="value"><g:link controller="task" action="show" id="${ modificationInstance?.task?.id}">${modificationInstance?.task?.encodeAsHTML()}</g:link></td>49 <td valign="top" class="value"><g:link controller="task" action="show" id="${taskModificationInstance?.task?.id}">${taskModificationInstance?.task?.encodeAsHTML()}</g:link></td> 50 50 51 51 </tr> … … 54 54 <td valign="top" class="name">Date:</td> 55 55 56 <td valign="top" class="value">${fieldValue(bean: modificationInstance, field:'date')}</td>56 <td valign="top" class="value">${fieldValue(bean:taskModificationInstance, field:'date')}</td> 57 57 58 58 </tr> … … 61 61 <td valign="top" class="name">Comment:</td> 62 62 63 <td valign="top" class="value">${fieldValue(bean: modificationInstance, field:'comment')}</td>63 <td valign="top" class="value">${fieldValue(bean:taskModificationInstance, field:'comment')}</td> 64 64 65 65 </tr> … … 70 70 <div class="buttons"> 71 71 <g:form> 72 <input type="hidden" name="id" value="${ modificationInstance?.id}" />72 <input type="hidden" name="id" value="${taskModificationInstance?.id}" /> 73 73 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 74 74 <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.