Ignore:
Timestamp:
Oct 4, 2009, 12:59:04 AM (15 years ago)
Author:
gav
Message:

Minor bootstrap change, adjust security to accept all /plugin/ urls.
Tested every dateChooser under the sun only to come back to RichUI, only needs to support "EEE, dd-MMM-yyyy" format and have dropdowns for year and month and it would be perfect.
Placed a dateChooser on Task Create view.

File:
1 edited

Legend:

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

    r140 r145  
    55        <title>Create Task</title>
    66        <nav:resources override="true"/>
     7        <resource:dateChooser />
    78    </head>
    89    <body onload="document.createTaskForm.description.focus();">
     
    1920            </div>
    2021            </g:hasErrors>
     22
    2123            <g:form id='createTaskForm' name='createTaskForm' action="save" method="post" >
    2224                <div class="dialog">
     
    4951                                </td>
    5052                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}">
    51                                     <g:datePicker name="targetStartDate" value="${taskInstance?.targetStartDate}" precision="day"></g:datePicker>
     53                                    <richui:dateChooser name="targetStartDate" format="dd-MM-yyyy" value="${new Date()}" />
    5254                                    <g:helpBalloon class="helpballoon" code="task.targetStartDate" />
    5355                                </td>
     
    5961                                </td>
    6062                                <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}">
    61                                     <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" precision="day"></g:datePicker>
     63                                    <richui:dateChooser name="targetCompletionDate" format="dd-MM-yyyy" value="${new Date()}" />
    6264                                    <g:helpBalloon class="helpballoon" code="task.targetCompletionDate" />
    6365                                </td>
Note: See TracChangeset for help on using the changeset viewer.