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 ++++++++++++++++++++++++++++++++
website/forms.py | 1 +
website/models.py | 1 +
5 files changed, 51 insertions(+), 1 deletion(-)
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 %}
+
+
+
+
+
+
+
+ Terms and conditions
+
+
+
+
Paper
+
+ - The decision of the organization will be final.
+ - Maximum three authors for one paper are allowed.
+ - The subsidy will be given to the authors of the selected papers, to cover a part of the cost of their accommodation(for 1 night) and part of travel expenses depending on the quality of their work. This will be paid after the conference.
+ - Only one author will get the above subsidy in case of a paper has multiple authors.
+ - The organization reserves all rights to take a decision about this subsidy.
+ - All authors must register for the conference.
+
+
Content:
+
+ - The copyright for the content uploaded or shared by any means will be transferred to FOSSEE, IIT Bombay.
+ - The Organization reserves the rights to release this content under Creative Commons Attribution-ShareAlike 4.0 International License in any format.
+
+
+
+
+
+
+
+
+
{% endblock %}
diff --git a/website/forms.py b/website/forms.py
index 67bfc9f..a08c9ee 100755
--- a/website/forms.py
+++ b/website/forms.py
@@ -155,6 +155,7 @@ class ProposalForm(forms.ModelForm):
)
open_to_share = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect(), required=True,
label='I agree to publish my content',)
+ terms_and_conditions = forms.BooleanField(widget=forms.CheckboxInput(), required=True, label='I agree to the terms and conditions')
class Meta:
model = Proposal
diff --git a/website/models.py b/website/models.py
index f5b004a..d550548 100644
--- a/website/models.py
+++ b/website/models.py
@@ -51,6 +51,7 @@ class Proposal(models.Model):
proposal_type = models.CharField(max_length=100)
tags = models.CharField(max_length=250)
open_to_share = models.CharField(max_length=2, default=1)
+ terms_and_conditions = models.BooleanField(default= 'True')
class Ratings(models.Model):
--
cgit