pytask/templates/profile/edit.html
changeset 480 d0325456f266
parent 435 1217d808d70f
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 
     4 
       
     5 {% block js %}
       
     6 <script type="text/javascript">
       
     7   $(document).ready(function () {
       
     8     $("#id_dob").datepicker({
       
     9       dateFormat: 'yy-mm-dd',
       
    10       changeMonth: true,
       
    11       changeYear: true,
       
    12       minDate: "-90y",
       
    13       maxDate: "+0D",
       
    14       yearRange: "-90",
       
    15       defaultDate: '1985-01-01'
       
    16     });
       
    17   });
       
    18 </script>
       
    19 {% endblock %}
       
    20 
       
    21 
     5 {% block content %}
    22 {% block content %}
     6   {% as_div_form form "Edit Profile Form" csrf_token "Update" %}
    23   {% as_div_form form "Edit Profile Form" csrf_token "Update" %}
     7 {% endblock %}
    24 {% endblock %}