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
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to