pytask/templates/registration/registration_form.html
changeset 480 d0325456f266
parent 477 a7ac6cbaca25
equal deleted inserted replaced
479:fdaf0d8ceb53 480:d0325456f266
     1 {% extends "base.html" %}
     1 {% extends "base.html" %}
     2 
     2 
     3 {% load form_helpers %}
     3 {% load form_helpers %}
       
     4 
       
     5 
       
     6 {% block js %}
       
     7 <script type="text/javascript">
       
     8   $(document).ready(function () {
       
     9     $("#id_dob").datepicker({
       
    10       dateFormat: 'yy-mm-dd',
       
    11       changeMonth: true,
       
    12       changeYear: true,
       
    13       minDate: "-90y",
       
    14       maxDate: "+0D",
       
    15       yearRange: "-90",
       
    16       defaultDate: '1985-01-01'
       
    17     });
       
    18   });
       
    19 </script>
       
    20 {% endblock %}
       
    21 
     4 
    22 
     5 {% block content %}
    23 {% block content %}
     6   {% url registration_register as registration_url %}
    24   {% url registration_register as registration_url %}
     7   {% as_div_form form "Create Profile Form" csrf_token "Submit" registration_url %}
    25   {% as_div_form form "Create Profile Form" csrf_token "Submit" registration_url %}
     8 {% endblock %}
    26 {% endblock %}