From d1312be1555c8cb0d372acd7bac28cb6ad051a3d Mon Sep 17 00:00:00 2001
From: komalsheth286
Date: Wed, 5 Oct 2016 14:16:42 +0530
Subject: resubmission of proposal is added
---
scipy2016/settings.py | 2 +-
website/templates/base.html | 4 ++--
website/templates/cfp.html | 4 ++--
website/templates/view-abstracts.html | 14 +++++++++-----
website/views.py | 12 +++++++++---
5 files changed, 23 insertions(+), 13 deletions(-)
diff --git a/scipy2016/settings.py b/scipy2016/settings.py
index 9f24b41..1c0ef19 100755
--- a/scipy2016/settings.py
+++ b/scipy2016/settings.py
@@ -148,7 +148,7 @@ USE_TZ = True
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads')
-MEDIA_URL = "/downloads/"
+MEDIA_URL = "/2016/downloads/"
LOGIN_REDIRECT_URL = '/cfp'
diff --git a/website/templates/base.html b/website/templates/base.html
index fb3d745..a9ac680 100755
--- a/website/templates/base.html
+++ b/website/templates/base.html
@@ -89,10 +89,10 @@
-
+ |
|
|
-
+ |
|
diff --git a/website/templates/cfp.html b/website/templates/cfp.html
index e0eb537..9c8f3dc 100755
--- a/website/templates/cfp.html
+++ b/website/templates/cfp.html
@@ -64,7 +64,7 @@
{% endif %}
{% if user and not user.is_anonymous and not login_required %}
- 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 (max) hours. The workshops are to be conducted in two parallel tracks for basic and advanced users.
+
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.
Important Dates
@@ -85,7 +85,7 @@
{% endif %}
{% else %}
- 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 (max) hours. The workshops are to be conducted in two parallel tracks for basic and advanced users.
+
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.
-
diff --git a/website/templates/view-abstracts.html b/website/templates/view-abstracts.html
index 8979363..6a9a72b 100755
--- a/website/templates/view-abstracts.html
+++ b/website/templates/view-abstracts.html
@@ -71,7 +71,6 @@ You have not submitted any proposal. To submit proposal click
-
{% endif %}
@@ -88,6 +87,8 @@ You have not submitted any proposal. To submit proposal click {{proposal.title}}
View |
{% endif %}
-{% if user.is_superuser %}
- {% for rating in proposal.ratings_set.all %}
- {{ rating.rating}} by {{rating.user}}
+ | {% if user.is_superuser %}
+ {% for rating in proposal.ratings_set.all %}
+ {{ rating.rating}} - {{rating.user}}
{% endfor %}
+ {% else %}
+ {{proposal.comments_set.count}}
+ {% endif %}
+
|
-{% endif %}
{% if proposal.status = 'Accepted' %}
{{proposal.status}}
diff --git a/website/views.py b/website/views.py
index b516fad..96fa6bb 100755
--- a/website/views.py
+++ b/website/views.py
@@ -266,10 +266,14 @@ def edit_proposal(request, proposal_id = None):
if user.is_authenticated():
proposal = Proposal.objects.get(id=proposal_id)
if proposal.proposal_type == 'ABSTRACT':
- form = ProposalForm(request.POST, request.FILES, instance=proposal)
+ form = ProposalForm( instance=proposal)
else:
- form = WorkshopForm(request.POST, request.FILES, instance=proposal)
+ form = WorkshopForm( instance=proposal)
if request.method == 'POST':
+ if proposal.proposal_type == 'ABSTRACT':
+ form = ProposalForm( request.POST, request.FILES, instance=proposal)
+ else:
+ form = WorkshopForm( request.POST, request.FILES, instance=proposal)
if form.is_valid():
data = form.save(commit = False)
data.user = user
@@ -279,7 +283,9 @@ def edit_proposal(request, proposal_id = None):
return render(request, 'cfp.html')
else:
context['user'] = user
- return render(request, 'cfp.html', context)
+ context['form'] = form
+ context['proposal'] = proposal
+ return render(request, 'edit-proposal.html', context)
context['user'] = user
context['form'] = form
context['proposal'] = proposal
--
cgit
|