diff options
author | Komal Sheth | 2016-10-06 15:27:04 +0530 |
---|---|---|
committer | GitHub | 2016-10-06 15:27:04 +0530 |
commit | b60bbc2181f03ffd5fabc7781c8b8cbf3aa794c0 (patch) | |
tree | a051f97fc6786a45cb1194fdfd5930944b45d873 | |
parent | 43d79cf73e0e89283ff5ba2e9b201ef1db464da2 (diff) | |
parent | b136779b0056594143ebc686b633e1c9517ab12c (diff) | |
download | SciPy2016-b60bbc2181f03ffd5fabc7781c8b8cbf3aa794c0.tar.gz SciPy2016-b60bbc2181f03ffd5fabc7781c8b8cbf3aa794c0.tar.bz2 SciPy2016-b60bbc2181f03ffd5fabc7781c8b8cbf3aa794c0.zip |
Merge pull request #25 from FOSSEE/Home_page
Fetching email id using facebook login
-rwxr-xr-x | scipy2016/settings.py | 4 | ||||
-rwxr-xr-x | website/forms.py | 5 | ||||
-rwxr-xr-x | website/templates/cfp.html | 34 |
3 files changed, 24 insertions, 19 deletions
diff --git a/scipy2016/settings.py b/scipy2016/settings.py index 1c0ef19..9295dcb 100755 --- a/scipy2016/settings.py +++ b/scipy2016/settings.py @@ -115,6 +115,10 @@ SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = GOOGLE_SECRET SOCIAL_AUTH_FACEBOOK_KEY = FACEBOOK_KEY SOCIAL_AUTH_FACEBOOK_SECRET = FACEBOOK_SECRET +SOCIAL_AUTH_FACEBOOK_SCOPE = ['email'] +SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = { + 'fields': 'id,name,email', +} LOCAL_SOCIAL_AUTH_GITHUB_KEY = GITHUB_KEY diff --git a/website/forms.py b/website/forms.py index c8e4846..392d6e2 100755 --- a/website/forms.py +++ b/website/forms.py @@ -97,11 +97,6 @@ class ProposalForm(forms.ModelForm): model = Proposal exclude = ('user', 'email','prerequisite','status','rate') - def clean_title(self): - title = self.cleaned_data['title'] - if Proposal.objects.filter(title=title).exists(): - raise forms.ValidationError("This title already exist.") - return title def clean_attachment(self): import os diff --git a/website/templates/cfp.html b/website/templates/cfp.html index 9c8f3dc..dfc2bb9 100755 --- a/website/templates/cfp.html +++ b/website/templates/cfp.html @@ -45,7 +45,7 @@ <!-- <div id="wrapper"> --> <div id="main"> <section id="content" class="main"> - {% if proposal_submit %} + {% if proposal_submit %} <center> <table> <tr> @@ -55,17 +55,23 @@ </tr> </table> </center> - {% endif %} + {% endif %} + + + {% if registration_complete %} <center> <p>Thank You for your registration. You can now log in by clicking <a href="{% url 'website:cfp' %}">here </a>!</p> <br><br> </center> - {% endif %} + {% endif %} + + + {% if user and not user.is_anonymous and not login_required %} - <p>We invite you to submit proposals for talks/ workshops to be presented at SciPy 2016. The time duration for talks is 15 or 30 minutes and for workshops is 2 to 4 hours. The workshops are to be conducted in two parallel tracks for basic and advanced users. -</p> + <p>We invite you to submit proposals for talks/ workshops to be presented at SciPy 2016. The time duration for talks is 15 or 30 minutes and for workshops is 2 to 4 hours. The workshops are to be conducted in two parallel tracks for basic and advanced users. + </p> <span><h2><u>Important Dates</u></h2></span> <ul> <li>Call for proposals opens: <b>October 4, 2016</b></li> @@ -74,7 +80,7 @@ </ul> <br> - {% if user.is_superuser %} + {% if user.is_superuser %} <center><a href="{% url 'website:view_abstracts' %}" style="background:#D44727" class="button special">View Proposals</a> </center> {% else %} <center> @@ -84,11 +90,11 @@ </center> {% endif %} - {% else %} - <p align = "justify">We invite you to submit proposals for talks/ workshops to be presented at SciPy 2016. The time duration for talks is 15 or 30 minutes and for workshops is 2 to 4 hours. The workshops are to be conducted in two parallel tracks for basic and advanced users. -</p><hr> - <ul class="features"> -<li> + {% else %} + <p align = "justify">We invite you to submit proposals for talks/ workshops to be presented at SciPy 2016. The time duration for talks is 15 or 30 minutes and for workshops is 2 to 4 hours. The workshops are to be conducted in two parallel tracks for basic and advanced users. + </p><hr> + <ul class="features"> + <li> <span><h2><u>Login</u></h2></span> <p>Login/Register to Submit a Proposal</p> @@ -113,16 +119,16 @@ <!-- <div class="col-md-6" > --> -<li> + <li> <span><h2><u>Important Dates</u></h2></span> <ul> <li>Call for proposal opens: <b>October 4, 2016</b></li> <li>Last date for submission of proposals: To be announced <li>Announcement of selected proposals: To be announced </ul> -</li> + </li> <!-- </div> --> - {% endif %} + {% endif %} </section> </div> |