Ignore:
Timestamp:
May 13, 2009, 12:51:15 PM (15 years ago)
Author:
gav
Message:

Add icons from famfamfam silk icons, add acknowledgement page to suite.
Adjust AssignedPerson? controller so that a task.id is required to create.
Move Add AssignedPerson? link up to TaskDetailed? show page.
Further improvements to taskDetailed show tabs.
Adjust TaskProcedureDetailed? controller to allow linking a Procedure to a task during creation.
Adjust TaskRecurringSchedule? to a one-to-one cascading relationship.
Modify CSS class duration to time and added icons.
Regenerate some pages.

File:
1 edited

Legend:

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

    r122 r134  
    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>
    2424            <g:form action="save" method="post" >
     25                <g:hiddenField name="task.id" value="${taskRecurringScheduleInstance.task.id}" />
    2526                <div class="dialog">
    2627                    <table>
    2728                        <tbody>
    28                        
     29
    2930                            <tr class="prop">
    3031                                <td valign="top" class="name">
    31                                     <label for="plannedMaintenance">Planned Maintenance:</label>
     32                                    <label for="recForTask">Recurring Schedule for Task:</label>
    3233                                </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>
     34                                <td valign="top" name="recForTask" class="value">
     35                                    ${taskRecurringScheduleInstance.task}
     36                                </td>
     37                            </tr>   
     38                     
     39                            <tr class="prop">
     40                                <td valign="top" class="name">
     41                                    <label for="lastGeneratedDate">Last Generated Date:</label>
     42                                </td>
     43                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedDate','errors')}">
     44                                    <g:datePicker name="lastGeneratedDate" value="${taskRecurringScheduleInstance?.lastGeneratedDate}" noSelection="['':'']"></g:datePicker>
    3545                                </td>
    3646                            </tr>
     
    3848                            <tr class="prop">
    3949                                <td valign="top" class="name">
    40                                     <label for="isActive">Is Active:</label>
     50                                    <label for="lastGeneratedSubTask">Last Generated Sub Task:</label>
    4151                                </td>
    42                                 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'isActive','errors')}">
    43                                     <g:checkBox name="isActive" value="${recurringScheduleInstance?.isActive}" ></g:checkBox>
     52                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'lastGeneratedSubTask','errors')}">
     53                                    <g:select optionKey="id" from="${Task.list()}" name="lastGeneratedSubTask.id" value="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}" noSelection="['null':'']"></g:select>
     54                                </td>
     55                            </tr>
     56                       
     57                            <tr class="prop">
     58                                <td valign="top" class="name">
     59                                    <label for="isEnabled">Is Enabled:</label>
     60                                </td>
     61                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'isEnabled','errors')}">
     62                                    <g:checkBox name="isEnabled" value="${taskRecurringScheduleInstance?.isEnabled}" ></g:checkBox>
     63                                </td>
     64                            </tr>
     65                       
     66                            <tr class="prop">
     67                                <td valign="top" class="name">
     68                                    <label for="nextDueDate">Next Due Date:</label>
     69                                </td>
     70                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'nextDueDate','errors')}">
     71                                    <g:datePicker name="nextDueDate" value="${taskRecurringScheduleInstance?.nextDueDate}" ></g:datePicker>
    4472                                </td>
    4573                            </tr>
     
    4977                                    <label for="period">Period:</label>
    5078                                </td>
    51                                 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'period','errors')}">
    52                                     <g:select optionKey="id" from="${Period.list()}" name="period.id" value="${recurringScheduleInstance?.period?.id}" ></g:select>
     79                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'period','errors')}">
     80                                    <g:select optionKey="id" from="${Period.list()}" name="period.id" value="${taskRecurringScheduleInstance?.period?.id}" ></g:select>
    5381                                </td>
    5482                            </tr>
     
    5886                                    <label for="recurEvery">Recur Every:</label>
    5987                                </td>
    60                                 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'recurEvery','errors')}">
    61                                     <input type="text" id="recurEvery" name="recurEvery" value="${fieldValue(bean:recurringScheduleInstance,field:'recurEvery')}" />
     88                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'recurEvery','errors')}">
     89                                    <input type="text" id="recurEvery" name="recurEvery" value="${fieldValue(bean:taskRecurringScheduleInstance,field:'recurEvery')}" />
    6290                                </td>
    6391                            </tr>
     
    6795                                    <label for="startDate">Start Date:</label>
    6896                                </td>
    69                                 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'startDate','errors')}">
    70                                     <g:datePicker name="startDate" value="${recurringScheduleInstance?.startDate}" ></g:datePicker>
     97                                <td valign="top" class="value ${hasErrors(bean:taskRecurringScheduleInstance,field:'startDate','errors')}">
     98                                    <g:datePicker name="startDate" value="${taskRecurringScheduleInstance?.startDate}" ></g:datePicker>
    7199                                </td>
    72                             </tr>
    73                        
    74                             <tr class="prop">
    75                                 <td valign="top" class="name">
    76                                     <label for="task">Task:</label>
    77                                 </td>
    78                                 <td valign="top" class="value ${hasErrors(bean:recurringScheduleInstance,field:'task','errors')}">
    79                                     <g:select optionKey="id" from="${Task.list()}" name="task.id" value="${recurringScheduleInstance?.task?.id}" ></g:select>
    80                                 </td>
    81                             </tr>
     100                            </tr>
    82101                       
    83102                        </tbody>
Note: See TracChangeset for help on using the changeset viewer.