Changeset 131 for trunk/grails-app/views/taskRecurringSchedule
- Timestamp:
- May 8, 2009, 1:01:56 AM (16 years ago)
- Location:
- trunk/grails-app/views/taskRecurringSchedule
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/taskRecurringSchedule/create.gsp
r123 r131 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create RecurringSchedule</title>7 <title>Create TaskRecurringSchedule</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"> RecurringSchedule List</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">TaskRecurringSchedule List</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Create RecurringSchedule</h1>15 <h1>Create TaskRecurringSchedule</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${ recurringScheduleInstance}">19 <g:hasErrors bean="${taskRecurringScheduleInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${ recurringScheduleInstance}" as="list" />21 <g:renderErrors bean="${taskRecurringScheduleInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> … … 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for=" plannedMaintenance">Planned Maintenance:</label>31 <label for="lastGeneratedDate">Last Generated Date:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean: recurringScheduleInstance,field:'plannedMaintenance','errors')}">34 <g: select optionKey="id" from="${PlannedMaintenance.list()}" name="plannedMaintenance.id" value="${recurringScheduleInstance?.plannedMaintenance?.id}" noSelection="['null':'']"></g:select>33 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedDate','errors')}"> 34 <g:datePicker name="lastGeneratedDate" value="${taskRecurringScheduleInstance?.lastGeneratedDate}" noSelection="['':'']"></g:datePicker> 35 35 </td> 36 36 </tr> … … 38 38 <tr class="prop"> 39 39 <td valign="top" class="name"> 40 <label for="last ExecutedDate">Last Executed Date:</label>40 <label for="lastGeneratedSubTask">Last Generated Sub Task:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'lastExecutedDate','errors')}"> 43 <g:datePicker name="lastExecutedDate" value="${recurringScheduleInstance?.lastExecutedDate}" noSelection="['':'']"></g:datePicker> 42 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedSubTask','errors')}"> 43 <g:select optionKey="id" from="${Task.list()}" name="lastGeneratedSubTask.id" value="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}" noSelection="['null':'']"></g:select> 44 </td> 45 </tr> 46 47 <tr class="prop"> 48 <td valign="top" class="name"> 49 <label for="isEnabled">Is Enabled:</label> 50 </td> 51 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}"> 52 <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox> 44 53 </td> 45 54 </tr> … … 49 58 <label for="nextDueDate">Next Due Date:</label> 50 59 </td> 51 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'nextDueDate','errors')}"> 52 <g:datePicker name="nextDueDate" value="${recurringScheduleInstance?.nextDueDate}" noSelection="['':'']"></g:datePicker> 53 </td> 54 </tr> 55 56 <tr class="prop"> 57 <td valign="top" class="name"> 58 <label for="isActive">Is Active:</label> 59 </td> 60 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'isActive','errors')}"> 61 <g:checkBox name="isActive" value="${recurringScheduleInstance?.isActive}" ></g:checkBox> 60 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextDueDate','errors')}"> 61 <g:datePicker name="nextDueDate" value="${taskRecurringScheduleInstance?.nextDueDate}" ></g:datePicker> 62 62 </td> 63 63 </tr> … … 67 67 <label for="period">Period:</label> 68 68 </td> 69 <td valign="top" class="value ${hasErrors(bean: recurringScheduleInstance,field:'period','errors')}">70 <g:select optionKey="id" from="${Period.list()}" name="period.id" value="${ recurringScheduleInstance?.period?.id}" ></g:select>69 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'period','errors')}"> 70 <g:select optionKey="id" from="${Period.list()}" name="period.id" value="${taskRecurringScheduleInstance?.period?.id}" ></g:select> 71 71 </td> 72 72 </tr> … … 76 76 <label for="recurEvery">Recur Every:</label> 77 77 </td> 78 <td valign="top" class="value ${hasErrors(bean: recurringScheduleInstance,field:'recurEvery','errors')}">79 <input type="text" id="recurEvery" name="recurEvery" value="${fieldValue(bean: recurringScheduleInstance,field:'recurEvery')}" />78 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}"> 79 <input type="text" id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" /> 80 80 </td> 81 81 </tr> … … 85 85 <label for="startDate">Start Date:</label> 86 86 </td> 87 <td valign="top" class="value ${hasErrors(bean: recurringScheduleInstance,field:'startDate','errors')}">88 <g:datePicker name="startDate" value="${ recurringScheduleInstance?.startDate}" ></g:datePicker>87 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}"> 88 <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}" ></g:datePicker> 89 89 </td> 90 90 </tr> … … 94 94 <label for="task">Task:</label> 95 95 </td> 96 <td valign="top" class="value ${hasErrors(bean: recurringScheduleInstance,field:'task','errors')}">97 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${ recurringScheduleInstance?.task?.id}" ></g:select>96 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'task','errors')}"> 97 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${taskRecurringScheduleInstance?.task?.id}" ></g:select> 98 98 </td> 99 99 </tr> -
trunk/grails-app/views/taskRecurringSchedule/edit.gsp
r123 r131 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit RecurringSchedule</title>7 <title>Edit TaskRecurringSchedule</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"> RecurringSchedule List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New RecurringSchedule</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">TaskRecurringSchedule List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New TaskRecurringSchedule</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit RecurringSchedule</h1>16 <h1>Edit TaskRecurringSchedule</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> 19 19 </g:if> 20 <g:hasErrors bean="${ recurringScheduleInstance}">20 <g:hasErrors bean="${taskRecurringScheduleInstance}"> 21 21 <div class="errors"> 22 <g:renderErrors bean="${ recurringScheduleInstance}" as="list" />22 <g:renderErrors bean="${taskRecurringScheduleInstance}" as="list" /> 23 23 </div> 24 24 </g:hasErrors> 25 25 <g:form method="post" > 26 <input type="hidden" name="id" value="${ recurringScheduleInstance?.id}" />27 <input type="hidden" name="version" value="${ recurringScheduleInstance?.version}" />26 <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" /> 27 <input type="hidden" name="version" value="${taskRecurringScheduleInstance?.version}" /> 28 28 <div class="dialog"> 29 29 <table> … … 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for=" plannedMaintenance">Planned Maintenance:</label>34 <label for="lastGeneratedDate">Last Generated Date:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean: recurringScheduleInstance,field:'plannedMaintenance','errors')}">37 <g: select optionKey="id" from="${PlannedMaintenance.list()}" name="plannedMaintenance.id" value="${recurringScheduleInstance?.plannedMaintenance?.id}" noSelection="['null':'']"></g:select>36 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedDate','errors')}"> 37 <g:datePicker name="lastGeneratedDate" value="${taskRecurringScheduleInstance?.lastGeneratedDate}" noSelection="['':'']"></g:datePicker> 38 38 </td> 39 39 </tr> … … 41 41 <tr class="prop"> 42 42 <td valign="top" class="name"> 43 <label for="last ExecutedDate">Last Executed Date:</label>43 <label for="lastGeneratedSubTask">Last Generated Sub Task:</label> 44 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'lastExecutedDate','errors')}"> 46 <g:datePicker name="lastExecutedDate" value="${recurringScheduleInstance?.lastExecutedDate}" noSelection="['':'']"></g:datePicker> 45 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedSubTask','errors')}"> 46 <g:select optionKey="id" from="${Task.list()}" name="lastGeneratedSubTask.id" value="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}" noSelection="['null':'']"></g:select> 47 </td> 48 </tr> 49 50 <tr class="prop"> 51 <td valign="top" class="name"> 52 <label for="isEnabled">Is Enabled:</label> 53 </td> 54 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}"> 55 <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox> 47 56 </td> 48 57 </tr> … … 52 61 <label for="nextDueDate">Next Due Date:</label> 53 62 </td> 54 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'nextDueDate','errors')}"> 55 <g:datePicker name="nextDueDate" value="${recurringScheduleInstance?.nextDueDate}" noSelection="['':'']"></g:datePicker> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="isActive">Is Active:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'isActive','errors')}"> 64 <g:checkBox name="isActive" value="${recurringScheduleInstance?.isActive}" ></g:checkBox> 63 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextDueDate','errors')}"> 64 <g:datePicker name="nextDueDate" value="${taskRecurringScheduleInstance?.nextDueDate}" ></g:datePicker> 65 65 </td> 66 66 </tr> … … 70 70 <label for="period">Period:</label> 71 71 </td> 72 <td valign="top" class="value ${hasErrors(bean: recurringScheduleInstance,field:'period','errors')}">73 <g:select optionKey="id" from="${Period.list()}" name="period.id" value="${ recurringScheduleInstance?.period?.id}" ></g:select>72 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'period','errors')}"> 73 <g:select optionKey="id" from="${Period.list()}" name="period.id" value="${taskRecurringScheduleInstance?.period?.id}" ></g:select> 74 74 </td> 75 75 </tr> … … 79 79 <label for="recurEvery">Recur Every:</label> 80 80 </td> 81 <td valign="top" class="value ${hasErrors(bean: recurringScheduleInstance,field:'recurEvery','errors')}">82 <input type="text" id="recurEvery" name="recurEvery" value="${fieldValue(bean: recurringScheduleInstance,field:'recurEvery')}" />81 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}"> 82 <input type="text" id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" /> 83 83 </td> 84 84 </tr> … … 88 88 <label for="startDate">Start Date:</label> 89 89 </td> 90 <td valign="top" class="value ${hasErrors(bean: recurringScheduleInstance,field:'startDate','errors')}">91 <g:datePicker name="startDate" value="${ recurringScheduleInstance?.startDate}" ></g:datePicker>90 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}"> 91 <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}" ></g:datePicker> 92 92 </td> 93 93 </tr> … … 97 97 <label for="task">Task:</label> 98 98 </td> 99 <td valign="top" class="value ${hasErrors(bean: recurringScheduleInstance,field:'task','errors')}">100 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${ recurringScheduleInstance?.task?.id}" ></g:select>99 <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'task','errors')}"> 100 <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${taskRecurringScheduleInstance?.task?.id}" ></g:select> 101 101 </td> 102 102 </tr> -
trunk/grails-app/views/taskRecurringSchedule/list.gsp
r123 r131 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title> RecurringSchedule List</title>7 <title>TaskRecurringSchedule 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 RecurringSchedule</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New TaskRecurringSchedule</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1> RecurringSchedule List</h1>15 <h1>TaskRecurringSchedule List</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <th>Planned Maintenance</th> 26 <g:sortableColumn property="lastGeneratedDate" title="Last Generated Date" /> 27 28 <th>Last Generated Sub Task</th> 27 29 28 <g:sortableColumn property=" lastExecutedDate" title="Last Executed Date" />30 <g:sortableColumn property="isEnabled" title="Is Enabled" /> 29 31 30 32 <g:sortableColumn property="nextDueDate" title="Next Due Date" /> 31 32 <g:sortableColumn property="isActive" title="Is Active" />33 33 34 34 <th>Period</th> … … 37 37 </thead> 38 38 <tbody> 39 <g:each in="${ recurringScheduleInstanceList}" status="i" var="recurringScheduleInstance">39 <g:each in="${taskRecurringScheduleInstanceList}" status="i" var="taskRecurringScheduleInstance"> 40 40 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 41 41 42 <td><g:link action="show" id="${ recurringScheduleInstance.id}">${fieldValue(bean:recurringScheduleInstance, field:'id')}</g:link></td>42 <td><g:link action="show" id="${taskRecurringScheduleInstance.id}">${fieldValue(bean:taskRecurringScheduleInstance, field:'id')}</g:link></td> 43 43 44 <td>${fieldValue(bean: recurringScheduleInstance, field:'plannedMaintenance')}</td>44 <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'lastGeneratedDate')}</td> 45 45 46 <td>${fieldValue(bean: recurringScheduleInstance, field:'lastExecutedDate')}</td>46 <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'lastGeneratedSubTask')}</td> 47 47 48 <td>${fieldValue(bean: recurringScheduleInstance, field:'nextDueDate')}</td>48 <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'isEnabled')}</td> 49 49 50 <td>${fieldValue(bean: recurringScheduleInstance, field:'isActive')}</td>50 <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'nextDueDate')}</td> 51 51 52 <td>${fieldValue(bean: recurringScheduleInstance, field:'period')}</td>52 <td>${fieldValue(bean:taskRecurringScheduleInstance, field:'period')}</td> 53 53 54 54 </tr> … … 58 58 </div> 59 59 <div class="paginateButtons"> 60 <g:paginate total="${ recurringScheduleInstanceTotal}" />60 <g:paginate total="${taskRecurringScheduleInstanceTotal}" /> 61 61 </div> 62 62 </div> -
trunk/grails-app/views/taskRecurringSchedule/show.gsp
r123 r131 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show RecurringSchedule</title>7 <title>Show TaskRecurringSchedule</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"> RecurringSchedule List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New RecurringSchedule</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">TaskRecurringSchedule List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New TaskRecurringSchedule</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Show RecurringSchedule</h1>16 <h1>Show TaskRecurringSchedule</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: recurringScheduleInstance, field:'id')}</td>28 <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'id')}</td> 29 29 30 30 </tr> 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name"> Planned Maintenance:</td>33 <td valign="top" class="name">Last Generated Date:</td> 34 34 35 <td valign="top" class="value"> <g:link controller="plannedMaintenance" action="show" id="${recurringScheduleInstance?.plannedMaintenance?.id}">${recurringScheduleInstance?.plannedMaintenance?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'lastGeneratedDate')}</td> 36 36 37 37 </tr> 38 38 39 39 <tr class="prop"> 40 <td valign="top" class="name">Last Executed Date:</td>40 <td valign="top" class="name">Last Generated Sub Task:</td> 41 41 42 <td valign="top" class="value">${fieldValue(bean:recurringScheduleInstance, field:'lastExecutedDate')}</td> 42 <td valign="top" class="value"><g:link controller="task" action="show" id="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}">${taskRecurringScheduleInstance?.lastGeneratedSubTask?.encodeAsHTML()}</g:link></td> 43 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name">Is Enabled:</td> 48 49 <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'isEnabled')}</td> 43 50 44 51 </tr> … … 47 54 <td valign="top" class="name">Next Due Date:</td> 48 55 49 <td valign="top" class="value">${fieldValue(bean:recurringScheduleInstance, field:'nextDueDate')}</td> 50 51 </tr> 52 53 <tr class="prop"> 54 <td valign="top" class="name">Is Active:</td> 55 56 <td valign="top" class="value">${fieldValue(bean:recurringScheduleInstance, field:'isActive')}</td> 56 <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'nextDueDate')}</td> 57 57 58 58 </tr> … … 61 61 <td valign="top" class="name">Period:</td> 62 62 63 <td valign="top" class="value"><g:link controller="period" action="show" id="${ recurringScheduleInstance?.period?.id}">${recurringScheduleInstance?.period?.encodeAsHTML()}</g:link></td>63 <td valign="top" class="value"><g:link controller="period" action="show" id="${taskRecurringScheduleInstance?.period?.id}">${taskRecurringScheduleInstance?.period?.encodeAsHTML()}</g:link></td> 64 64 65 65 </tr> … … 68 68 <td valign="top" class="name">Recur Every:</td> 69 69 70 <td valign="top" class="value">${fieldValue(bean: recurringScheduleInstance, field:'recurEvery')}</td>70 <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'recurEvery')}</td> 71 71 72 72 </tr> … … 75 75 <td valign="top" class="name">Start Date:</td> 76 76 77 <td valign="top" class="value">${fieldValue(bean: recurringScheduleInstance, field:'startDate')}</td>77 <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'startDate')}</td> 78 78 79 79 </tr> … … 82 82 <td valign="top" class="name">Task:</td> 83 83 84 <td valign="top" class="value"><g:link controller="task" action="show" id="${ recurringScheduleInstance?.task?.id}">${recurringScheduleInstance?.task?.encodeAsHTML()}</g:link></td>84 <td valign="top" class="value"><g:link controller="task" action="show" id="${taskRecurringScheduleInstance?.task?.id}">${taskRecurringScheduleInstance?.task?.encodeAsHTML()}</g:link></td> 85 85 86 86 </tr> … … 91 91 <div class="buttons"> 92 92 <g:form> 93 <input type="hidden" name="id" value="${ recurringScheduleInstance?.id}" />93 <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" /> 94 94 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 95 95 <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.