Ignore:
Timestamp:
Dec 4, 2009, 1:13:08 AM (14 years ago)
Author:
gav
Message:

Clicking on a searchCalendar day allows user to create a task with that day preset as targetStartDate.

Location:
trunk/grails-app/views/taskDetailed
Files:
2 edited

Legend:

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

    r196 r214  
    5151                                </td>
    5252                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}">
    53                                     <richui:dateChooser name="targetStartDate" format="dd-MM-yyyy" value="${new Date()}" />
     53                                    <richui:dateChooser name="targetStartDate" format="dd-MM-yyyy" value="${taskInstance.targetStartDate}" />
    5454                                    <g:helpBalloon class="helpballoon" code="task.targetStartDate" />
    5555                                </td>
     
    6161                                </td>
    6262                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}">
    63                                     <richui:dateChooser name="targetCompletionDate" format="dd-MM-yyyy" value="${new Date()}" />
     63                                    <richui:dateChooser name="targetCompletionDate" format="dd-MM-yyyy" value="${taskInstance.targetCompletionDate}" />
    6464                                    <g:helpBalloon class="helpballoon" code="task.targetCompletionDate" />
    6565                                </td>
  • trunk/grails-app/views/taskDetailed/searchCalendar.gsp

    r181 r214  
    3838                <filterpane:filterButton text="Advanced" appliedText="Advanced" />
    3939            </div>
    40             <richui:calendarMonthView items="${taskInstanceList}" createLink="true" constraintDateFields="['targetStartDate']" month="${new Date()}" controller="taskDetailed" action="show" />
     40            <richui:calendarMonthView items="${taskInstanceList}"
     41                                                                    createLink="true"
     42                                                                    constraintDateFields="['targetStartDate']"
     43                                                                    month="${new Date()}"
     44                                                                    controller="taskDetailed"
     45                                                                    action="show"
     46                                                                    dayAction="create"/>
    4147            <filterpane:filterPane domainBean="Task"
    4248                                    title="Advanced Search"
Note: See TracChangeset for help on using the changeset viewer.