summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhardythe12013-10-14 15:30:14 +0530
committerhardythe12013-10-14 15:30:14 +0530
commit17bfc6009b872badccf1f5db99c54741919a6b50 (patch)
tree57815b36fa498e32b4d881970806c9468050f786
parentc0c25ce189b4c749de0a695ae7d9b273bc499e98 (diff)
downloadSciPy2013-17bfc6009b872badccf1f5db99c54741919a6b50.tar.gz
SciPy2013-17bfc6009b872badccf1f5db99c54741919a6b50.tar.bz2
SciPy2013-17bfc6009b872badccf1f5db99c54741919a6b50.zip
updating model to store required fields for proposal
-rw-r--r--scipy/forms.py7
-rw-r--r--scipy/templates/upload-document.html1
-rw-r--r--scipy/views.py2
-rw-r--r--website/models.py8
-rw-r--r--website/static/img/favicon.icobin0 -> 15402 bytes
-rw-r--r--website/templates/papers.html9
6 files changed, 18 insertions, 9 deletions
diff --git a/scipy/forms.py b/scipy/forms.py
index a1e9e61..77c2b96 100644
--- a/scipy/forms.py
+++ b/scipy/forms.py
@@ -30,7 +30,12 @@ class UserProfileForm(UserChangeForm):
fields = ('first_name', 'last_name', 'email', 'username')
class DocumentUploadForm(forms.ModelForm):
-
class Meta:
model = Paper
exclude = ('user', 'verified')
+ widgets = {
+ 'title':forms.TextInput(attrs={'placeholder':'Title of your Talk'}),
+ 'objective':forms.TextInput(attrs={'placeholder':'Objective of the talk'}),
+ 'abstract':forms.Textarea(attrs={'placeholder':'Abstract in 400 to 700 '}),
+ 'links':forms.TextInput(attrs={'placeholder':'Link to the code (if any) or relevant links'}),
+ }
diff --git a/scipy/templates/upload-document.html b/scipy/templates/upload-document.html
index f72ebb3..2beb912 100644
--- a/scipy/templates/upload-document.html
+++ b/scipy/templates/upload-document.html
@@ -7,6 +7,5 @@
<input type="hidden" name = "next" value="{{ next }}">
<button class="success expand" type="submit">Submit</button>
</form>
- <h6>Dont have an scipy account? <a href="/accounts/register"><u>Register Here.</u></a></h6>
</div>
{% endblock %}
diff --git a/scipy/views.py b/scipy/views.py
index cccbdd2..a23f9d1 100644
--- a/scipy/views.py
+++ b/scipy/views.py
@@ -79,7 +79,7 @@ def upload_document(request):
data.user = request.user
data.verified = False
data.save()
- return HttpResponseRedirect("/2013/call-for-papers/?status=up")
+ return HttpResponseRedirect("/2013/call-for-proposals/?status=up")
else:
context = {}
context.update(csrf(request))
diff --git a/website/models.py b/website/models.py
index b95e81a..158c073 100644
--- a/website/models.py
+++ b/website/models.py
@@ -9,5 +9,11 @@ def get_presentation_dir(instance, filename):
class Paper(models.Model):
user = models.ForeignKey(User)
- document = models.FileField(upload_to=get_document_dir)
+ title = models.CharField(max_length=250)
+ affiliation = models.CharField(max_length=250)
+ objective = models.CharField(max_length=512)
+ abstract = models.TextField(max_length=700)
+ bio = models.TextField(max_length=500)
+ links = models.CharField(max_length=128)
+ attachments = models.FileField(upload_to=get_document_dir)
verified = models.NullBooleanField()
diff --git a/website/static/img/favicon.ico b/website/static/img/favicon.ico
new file mode 100644
index 0000000..aae1ff6
--- /dev/null
+++ b/website/static/img/favicon.ico
Binary files differ
diff --git a/website/templates/papers.html b/website/templates/papers.html
index 7f8d9a2..11cc23d 100644
--- a/website/templates/papers.html
+++ b/website/templates/papers.html
@@ -2,14 +2,13 @@
{% block content %}
<div class="row">
{% if status == "up" %}
-<h4>Document uploaded succcessfully. </h4>
+<h4>We have succcessfully received your proposal. Thank You !</h4>
{% endif %}
<h4>Call for Proposals</h4>
<p align="justify">
- We look forward for submissions for presentations at SciPy India 2013.
- If you wish to present, please submit an abstract of 300 to 700 words describing the topic,
- including its relevance to Python. Based on the quality of the submissions,
- the conference organizers will select it either as a full fledge talk (20-30 mins) or as
+ We look forward to submissions for presentations at SciPy India 2013. Please submit an abstract of 400 to 700 words describing the topic, including its relevance to Python. Only submissions with an actual implementation will be considered for presentation (i.e. proposals to implement the code are not acceptable, partial implementations are acceptable so long as they demonstrate the features discussed). Please provide links to your code if this is an open source implementation.
+
+Based on the quality of the submissions, the conference organizers will select it either as a full fledged talk (20-30 mins) or
<a href="http://en.wikipedia.org/wiki/PechaKucha" target="_blank">Pecha Kucha style</a> talk.
</p>
<p>