project/templates/registration/submit-registration.html
branchpayments
changeset 264 f80e1c78dcc0
parent 250 ac52304d265d
child 315 566e5f783e75
equal deleted inserted replaced
263:02593358eddc 264:f80e1c78dcc0
    17       } else {
    17       } else {
    18         $('#id_accommodation_days').removeAttr('disabled');
    18         $('#id_accommodation_days').removeAttr('disabled');
    19         $('#id_sex').removeAttr('disabled');
    19         $('#id_sex').removeAttr('disabled');
    20       }
    20       }
    21     });
    21     });
       
    22 
       
    23     if (!$('#id_paid').is(':checked')) {
       
    24         $('#id_type').attr('disabled', 'disabled');
       
    25         $('#id_details').attr('disabled', 'disabled');
       
    26       }
       
    27       $('#id_paid').change(function() {
       
    28         if (!$('#id_paid').is(':checked')) {
       
    29           $('#id_type').attr('disabled', 'disabled');
       
    30           $('#id_details').attr('disabled', 'disabled');
       
    31         } else {
       
    32           $('#id_type').removeAttr('disabled');
       
    33           $('#id_details').removeAttr('disabled');
       
    34         }
       
    35       });
    22   });
    36   });
    23 
    37 
    24 
    38 
    25   </script>
    39   </script>
    26 {% endblock addscripts %}
    40 {% endblock addscripts %}