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.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/project/templates/registration/submit-registration.html b/project/templates/registration/submit-registration.html
index 1124cd3..7c238b0 100644
--- a/project/templates/registration/submit-registration.html
+++ b/project/templates/registration/submit-registration.html
@@ -19,6 +19,20 @@
$('#id_sex').removeAttr('disabled');
}
});
+
+ if (!$('#id_paid').is(':checked')) {
+ $('#id_type').attr('disabled', 'disabled');
+ $('#id_details').attr('disabled', 'disabled');
+ }
+ $('#id_paid').change(function() {
+ if (!$('#id_paid').is(':checked')) {
+ $('#id_type').attr('disabled', 'disabled');
+ $('#id_details').attr('disabled', 'disabled');
+ } else {
+ $('#id_type').removeAttr('disabled');
+ $('#id_details').removeAttr('disabled');
+ }
+ });
});
@@ -147,6 +161,13 @@
</fieldset>
<fieldset>
+ <legend>Payment</legend>
+ <table class="scipycon-default">
+ {{ payment_form }}
+ </table>
+ </fieldset>
+
+ <fieldset>
<legend>Others</legend>
<table class="scipycon-default">
{{ wifi_form }}