summaryrefslogtreecommitdiff
path: root/project/templates/registration/submit-registration.html
diff options
context:
space:
mode:
Diffstat (limited to 'project/templates/registration/submit-registration.html')
-rw-r--r--project/templates/registration/submit-registration.html24
1 files changed, 20 insertions, 4 deletions
diff --git a/project/templates/registration/submit-registration.html b/project/templates/registration/submit-registration.html
index 7c238b0..4b92552 100644
--- a/project/templates/registration/submit-registration.html
+++ b/project/templates/registration/submit-registration.html
@@ -7,16 +7,32 @@
$(document).ready(function(){
if (!$('#id_accommodation_required').is(':checked')) {
- $('#id_accommodation_days').attr('disabled', 'disabled');
$('#id_sex').attr('disabled', 'disabled');
+ $('#id_accommodation_on_1st').attr('disabled', 'disabled');
+ $('#id_accommodation_on_2nd').attr('disabled', 'disabled');
+ $('#id_accommodation_on_3rd').attr('disabled', 'disabled');
+ $('#id_accommodation_on_4th').attr('disabled', 'disabled');
+ $('#id_accommodation_on_5th').attr('disabled', 'disabled');
+ $('#id_accommodation_on_6th').attr('disabled', 'disabled');
}
$('#id_accommodation_required').change(function() {
if (!$('#id_accommodation_required').is(':checked')) {
- $('#id_accommodation_days').attr('disabled', 'disabled');
$('#id_sex').attr('disabled', 'disabled');
+ $('#id_accommodation_on_1st').attr('disabled', 'disabled');
+ $('#id_accommodation_on_2nd').attr('disabled', 'disabled');
+ $('#id_accommodation_on_3rd').attr('disabled', 'disabled');
+ $('#id_accommodation_on_4th').attr('disabled', 'disabled');
+ $('#id_accommodation_on_5th').attr('disabled', 'disabled');
+ $('#id_accommodation_on_6th').attr('disabled', 'disabled');
} else {
- $('#id_accommodation_days').removeAttr('disabled');
- $('#id_sex').removeAttr('disabled');
+ $('#id_accommodation_days').removeAttr('disabled');
+ $('#id_sex').removeAttr('disabled');
+ $('#id_accommodation_on_1st').removeAttr('disabled', 'disabled');
+ $('#id_accommodation_on_2nd').removeAttr('disabled', 'disabled');
+ $('#id_accommodation_on_3rd').removeAttr('disabled', 'disabled');
+ $('#id_accommodation_on_4th').removeAttr('disabled', 'disabled');
+ $('#id_accommodation_on_5th').removeAttr('disabled', 'disabled');
+ $('#id_accommodation_on_6th').removeAttr('disabled', 'disabled');
}
});