From f1874b0e0f5c32fcb2ab3075070a57064f4ed53f Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Wed, 19 Sep 2018 11:53:02 +0530 Subject: Added checkbox for terms and conditions in paper submission --- static/website/js/custom.js | 11 ++++++++++ static/website/templates/home.html | 2 +- static/website/templates/submit-cfp.html | 37 ++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) (limited to 'static/website') diff --git a/static/website/js/custom.js b/static/website/js/custom.js index 2573428..ef59691 100644 --- a/static/website/js/custom.js +++ b/static/website/js/custom.js @@ -91,3 +91,14 @@ $(document) e.preventDefault(); // prevent the default action (scroll / move caret) }); +$(function() +{ + $('#id_terms_and_conditions').click(function() + { + if ($('#id_terms_and_conditions').is(":checked")) { + $('#modal_terms_and_conditions').modal('show'); + }else { + $('#modal_terms_and_conditions').modal('hide'); + } + }); +}); \ No newline at end of file diff --git a/static/website/templates/home.html b/static/website/templates/home.html index 53fcc4d..f554cee 100644 --- a/static/website/templates/home.html +++ b/static/website/templates/home.html @@ -576,5 +576,5 @@ - + {% endblock %} diff --git a/static/website/templates/submit-cfp.html b/static/website/templates/submit-cfp.html index b31658d..5d9ec8b 100755 --- a/static/website/templates/submit-cfp.html +++ b/static/website/templates/submit-cfp.html @@ -38,5 +38,42 @@ {% endif %} + +