[Product-Developers] Anonymous can't select the date picker box in register form

Steve McMahon steve at dcn.org
Tue Sep 15 00:49:26 UTC 2009


Check to make sure your loading the javascript support for that macro for
anonymous viewers.

2009/9/14 Nguyễn Thái Sơn <leoofcoltech at gmail.com>

> Hi all,
>
> I have used a date picker box in my register form. My problem is: just
> admin can use the date picker box, when anonymous register he can not use
> this option. This is my code:
>
> ----------------------------
>
> <div class="row"
>            tal:define="error errors/birthdate| nothing;
>                        birthdate request/birthdate | nothing;
>                        inputname string:birthdate;
>
>
> 	                   formname string:join_form;
> 	                   inputvalue birthdate;
> 	                   starting_year python:1940;
> 	                   show_hm python:0;
> 	                   show_ymd python:1;"
>
>
>            tal:attributes="class python:test(error, 'field error', 'join_form_field')">
>
>         <h3 for="birthdate"
>             i18n:translate="label_birthdate">Birth date</h3>
>
>
>         <span class="fieldRequired" title="Required"
>               i18n:attributes="title title_required;"
>               i18n:translate="label_required">(Required)</span>
>
>
>         <div class="formHelp" i18n:translate="help_birthdate">
>           Enter your birth date
>         </div>
>
>         <div tal:content="error">Validation error output</div>
>
>
>         <div metal:use-macro="here/calendar_macros/macros/calendarDatePickerBox">
>              calendar pop-up
>         </div>
>
>       </div>
>
> ---------------------------
> Many thanks for any help!
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090914/64b53e99/attachment.html>


More information about the Product-Developers mailing list