Changeset 145 for trunk/grails-app


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.

Location:
trunk/grails-app
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r142 r145  
    155155        //Person #2
    156156        personInstance = new Person(loginName:"manager",
    157                                     firstName:"Meca",
     157                                    firstName:"Demo",
    158158                                    lastName:"Manager",
    159159                                    pass:passClearText,
  • trunk/grails-app/conf/SecurityConfig.groovy

    r140 r145  
    3939    '/images/**': ['IS_AUTHENTICATED_ANONYMOUSLY'],
    4040    '/js/**': ['IS_AUTHENTICATED_ANONYMOUSLY'],
    41     '/plugins/help-balloons-1.2/**': ['IS_AUTHENTICATED_FULLY'],
    42     '/plugins/richui-0.6/**': ['IS_AUTHENTICATED_FULLY'],
    43     '/plugins/navigation-1.1/**': ['IS_AUTHENTICATED_FULLY'],
    44     '/plugins/filterpane-0.6.2/**': ['IS_AUTHENTICATED_FULLY'],
    45     '/plugins/class-diagram-0.3/**': ['IS_AUTHENTICATED_FULLY'],
    46     '/classDiagram*': ['IS_AUTHENTICATED_FULLY'],
    47     '/classDiagram/**': ['IS_AUTHENTICATED_FULLY'],
     41     '/plugins/**': ['IS_AUTHENTICATED_FULLY'],
     42//     '/plugins/help-balloons-1.2/**': ['IS_AUTHENTICATED_FULLY'],
     43//     '/plugins/richui-0.6/**': ['IS_AUTHENTICATED_FULLY'],
     44//     '/plugins/navigation-1.1/**': ['IS_AUTHENTICATED_FULLY'],
     45//     '/plugins/filterpane-0.6.2/**': ['IS_AUTHENTICATED_FULLY'],
     46//     '/plugins/calendar-1.2.0-SNAPSHOT2/**': ['IS_AUTHENTICATED_FULLY'],
     47//
     48//     '/plugins/class-diagram-0.3/**': ['IS_AUTHENTICATED_FULLY'],
     49//     '/classDiagram*': ['IS_AUTHENTICATED_FULLY'],
     50//     '/classDiagram/**': ['IS_AUTHENTICATED_FULLY'],
    4851    '/login*': ['IS_AUTHENTICATED_ANONYMOUSLY'],
    4952    '/login/**': ['IS_AUTHENTICATED_ANONYMOUSLY'],
  • 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.