project/templates/registration/submit-registration.html
branch2011
changeset 405 6795ae41f54b
parent 316 88ff5f6b43f4
child 417 4dd4f6d77e10
equal deleted inserted replaced
404:17a24435fc93 405:6795ae41f54b
    10       $('#id_sex').attr('disabled', 'disabled');
    10       $('#id_sex').attr('disabled', 'disabled');
    11       $('#id_accommodation_on_1st').attr('disabled', 'disabled');
    11       $('#id_accommodation_on_1st').attr('disabled', 'disabled');
    12       $('#id_accommodation_on_2nd').attr('disabled', 'disabled');
    12       $('#id_accommodation_on_2nd').attr('disabled', 'disabled');
    13       $('#id_accommodation_on_3rd').attr('disabled', 'disabled');
    13       $('#id_accommodation_on_3rd').attr('disabled', 'disabled');
    14       $('#id_accommodation_on_4th').attr('disabled', 'disabled');
    14       $('#id_accommodation_on_4th').attr('disabled', 'disabled');
    15       $('#id_accommodation_on_5th').attr('disabled', 'disabled');
       
    16       $('#id_accommodation_on_6th').attr('disabled', 'disabled');
       
    17     }
    15     }
    18     $('#id_accommodation_required').change(function() {
    16     $('#id_accommodation_required').change(function() {
    19       if (!$('#id_accommodation_required').is(':checked')) {
    17       if (!$('#id_accommodation_required').is(':checked')) {
    20         $('#id_sex').attr('disabled', 'disabled');
    18         $('#id_sex').attr('disabled', 'disabled');
    21         $('#id_accommodation_on_1st').attr('disabled', 'disabled');
    19         $('#id_accommodation_on_1st').attr('disabled', 'disabled');
    22         $('#id_accommodation_on_2nd').attr('disabled', 'disabled');
    20         $('#id_accommodation_on_2nd').attr('disabled', 'disabled');
    23         $('#id_accommodation_on_3rd').attr('disabled', 'disabled');
    21         $('#id_accommodation_on_3rd').attr('disabled', 'disabled');
    24         $('#id_accommodation_on_4th').attr('disabled', 'disabled');
    22         $('#id_accommodation_on_4th').attr('disabled', 'disabled');
    25         $('#id_accommodation_on_5th').attr('disabled', 'disabled');
       
    26         $('#id_accommodation_on_6th').attr('disabled', 'disabled');
       
    27       } else {
    23       } else {
    28       $('#id_accommodation_days').removeAttr('disabled');
    24       $('#id_accommodation_days').removeAttr('disabled');
    29       $('#id_sex').removeAttr('disabled');
    25       $('#id_sex').removeAttr('disabled');
    30       $('#id_accommodation_on_1st').removeAttr('disabled', 'disabled');
    26       $('#id_accommodation_on_1st').removeAttr('disabled', 'disabled');
    31       $('#id_accommodation_on_2nd').removeAttr('disabled', 'disabled');
    27       $('#id_accommodation_on_2nd').removeAttr('disabled', 'disabled');
    32       $('#id_accommodation_on_3rd').removeAttr('disabled', 'disabled');
    28       $('#id_accommodation_on_3rd').removeAttr('disabled', 'disabled');
    33       $('#id_accommodation_on_4th').removeAttr('disabled', 'disabled');
    29       $('#id_accommodation_on_4th').removeAttr('disabled', 'disabled');
    34       $('#id_accommodation_on_5th').removeAttr('disabled', 'disabled');
       
    35       $('#id_accommodation_on_6th').removeAttr('disabled', 'disabled');
       
    36       }
    30       }
    37     });
    31     });
    38 
    32 
    39     if (!$('#id_paid').is(':checked')) {
    33     if (!$('#id_paid').is(':checked')) {
    40         $('#id_type').attr('disabled', 'disabled');
    34         $('#id_type').attr('disabled', 'disabled');