Ignore:
Timestamp:
May 8, 2009, 1:01:56 AM (15 years ago)
Author:
gav
Message:

Reconfigure Planned Maintenance again, now Preventative Maintenance, TaskProcedure? and MaintenanceAction?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/taskRecurringSchedule/create.gsp

    r123 r131  
    55        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    66        <meta name="layout" content="main" />
    7         <title>Create RecurringSchedule</title>         
     7        <title>Create TaskRecurringSchedule</title>         
    88    </head>
    99    <body>
    1010        <div class="nav">
    1111            <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>
    1313        </div>
    1414        <div class="body">
    15             <h1>Create RecurringSchedule</h1>
     15            <h1>Create TaskRecurringSchedule</h1>
    1616            <g:if test="${flash.message}">
    1717            <div class="message">${flash.message}</div>
    1818            </g:if>
    19             <g:hasErrors bean="${recurringScheduleInstance}">
     19            <g:hasErrors bean="${taskRecurringScheduleInstance}">
    2020            <div class="errors">
    21                 <g:renderErrors bean="${recurringScheduleInstance}" as="list" />
     21                <g:renderErrors bean="${taskRecurringScheduleInstance}" as="list" />
    2222            </div>
    2323            </g:hasErrors>
     
    2929                            <tr class="prop">
    3030                                <td valign="top" class="name">
    31                                     <label for="plannedMaintenance">Planned Maintenance:</label>
     31                                    <label for="lastGeneratedDate">Last Generated Date:</label>
    3232                                </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>
    3535                                </td>
    3636                            </tr>
     
    3838                            <tr class="prop">
    3939                                <td valign="top" class="name">
    40                                     <label for="lastExecutedDate">Last Executed Date:</label>
     40                                    <label for="lastGeneratedSubTask">Last Generated Sub Task:</label>
    4141                                </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>
    4453                                </td>
    4554                            </tr>
     
    4958                                    <label for="nextDueDate">Next Due Date:</label>
    5059                                </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>
    6262                                </td>
    6363                            </tr>
     
    6767                                    <label for="period">Period:</label>
    6868                                </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>
    7171                                </td>
    7272                            </tr>
     
    7676                                    <label for="recurEvery">Recur Every:</label>
    7777                                </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')}" />
    8080                                </td>
    8181                            </tr>
     
    8585                                    <label for="startDate">Start Date:</label>
    8686                                </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>
    8989                                </td>
    9090                            </tr>
     
    9494                                    <label for="task">Task:</label>
    9595                                </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>
    9898                                </td>
    9999                            </tr>
Note: See TracChangeset for help on using the changeset viewer.