author | Primal Pappachan <primal007@gmail.com> |
Fri, 02 Dec 2011 16:48:45 +0530 | |
branch | 2011 |
changeset 475 | 6f5e358c0a10 |
parent 123 | d4799b7159e4 |
permissions | -rw-r--r-- |
92
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
1 |
{% extends "base.html" %} |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
2 |
{% block title %}Submit Paper for Proceedings{% endblock %} |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
3 |
|
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
4 |
{% block addscripts %} |
93
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
5 |
<script type="text/javascript" src="/static/jquery/jquery.watermarkinput.js"></script> |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
6 |
<link rel="stylesheet" href="/static/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8"> |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
7 |
<script type="text/javascript" src="/static/jquery/jquery.autosuggest.js"></script> |
92
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
8 |
<script type="text/javascript"> |
93
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
9 |
/** Init autosuggest on Search Input **/ |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
10 |
jQuery(function() { |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
11 |
|
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
12 |
// Set autosuggest options with all plugins activated |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
13 |
var options = { |
123
d4799b7159e4
Add scope for all the URLs and adjust the formatting and indentation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
96
diff
changeset
|
14 |
script:"{% url scipycon_get_usernames params.scope %}?limit=10&", |
93
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
15 |
varname:"input", |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
16 |
json:true, // Returned response type |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
17 |
shownoresults:true, // If disable, display nothing if no results |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
18 |
noresults:"No Results", // String displayed when no results |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
19 |
maxresults:8, // Max num results displayed |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
20 |
cache:false, // To enable cache |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
21 |
minchars:2, // Start AJAX request with at leat 2 chars |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
22 |
timeout:100000, // AutoHide in XX ms |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
23 |
callback: function (obj) { // Callback after click or selection |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
24 |
// => TO submit form (general use) |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
25 |
//$('#id_authors').val('sucks'); |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
26 |
//$('#form_search_country').submit(); |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
27 |
} |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
28 |
}; |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
29 |
|
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
30 |
// Init autosuggest |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
31 |
var as_json = new bsn.AutoSuggest('id_authors', options); |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
32 |
|
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
33 |
// Display a little watermak |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
34 |
$("#id_authors").Watermark("Ex : alex, guido, travis"); |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
35 |
}); |
92
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
36 |
</script> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
37 |
{% endblock %} |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
38 |
|
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
39 |
{% block content %} |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
40 |
<h1>Submit Proceedings paper</h1> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
41 |
|
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
42 |
{% include '_errors.html' %} |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
43 |
|
123
d4799b7159e4
Add scope for all the URLs and adjust the formatting and indentation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
96
diff
changeset
|
44 |
<form action=" |
d4799b7159e4
Add scope for all the URLs and adjust the formatting and indentation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
96
diff
changeset
|
45 |
{% if id %} |
d4799b7159e4
Add scope for all the URLs and adjust the formatting and indentation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
96
diff
changeset
|
46 |
{% url scipycon_submit_proceedings id params.scope %} |
d4799b7159e4
Add scope for all the URLs and adjust the formatting and indentation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
96
diff
changeset
|
47 |
{% else %} |
d4799b7159e4
Add scope for all the URLs and adjust the formatting and indentation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
96
diff
changeset
|
48 |
{% url scipycon_submit_proceedings params.scope %} |
d4799b7159e4
Add scope for all the URLs and adjust the formatting and indentation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
96
diff
changeset
|
49 |
{% endif %}" |
d4799b7159e4
Add scope for all the URLs and adjust the formatting and indentation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
96
diff
changeset
|
50 |
method="post"> |
92
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
51 |
{% if not user.is_authenticated %} |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
52 |
<fieldset> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
53 |
<legend>Are you a member of this site?</legend> |
96
178b89a3ca4f
Removed unwanted files and made more changes to make SciPyCon a clean app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
93
diff
changeset
|
54 |
<table class="scipycon-default required">{{ login_form }}</table> |
92
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
55 |
<input type="hidden" name="action" value="login" /> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
56 |
<button class="button left" type="submit">Login</button> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
57 |
</fieldset> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
58 |
</form> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
59 |
<br /> |
123
d4799b7159e4
Add scope for all the URLs and adjust the formatting and indentation.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
96
diff
changeset
|
60 |
<form action="{% url scipycon_submit_proceedings id params.scope %}" |
93
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
61 |
enctype="multipart/form-data" method="post"> |
92
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
62 |
<fieldset> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
63 |
<legend>User Registration</legend> |
96
178b89a3ca4f
Removed unwanted files and made more changes to make SciPyCon a clean app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
93
diff
changeset
|
64 |
<table class="scipycon-default required">{{ register_form }}</table> |
92
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
65 |
<input type="hidden" name="action" value="register" /> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
66 |
</fieldset> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
67 |
|
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
68 |
{% endif %} |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
69 |
<br /> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
70 |
|
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
71 |
<fieldset> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
72 |
<legend>Proceedings Paper Submission</legend> |
96
178b89a3ca4f
Removed unwanted files and made more changes to make SciPyCon a clean app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
93
diff
changeset
|
73 |
<table class="scipycon-default required"> |
92
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
74 |
<tr> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
75 |
<th>{{ proceedings_form.title.label }}</th> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
76 |
<td>{{ proceedings_form.title.errors }}{{ proceedings_form.title }}</td> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
77 |
</tr> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
78 |
<tr> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
79 |
<th>{{ proceedings_form.abstract.label }}</th> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
80 |
<td>{{ proceedings_form.abstract.errors }}{{ proceedings_form.abstract }}</td> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
81 |
</tr> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
82 |
<tr> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
83 |
<th>{{ proceedings_form.body.label }}</th> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
84 |
<td>{{ proceedings_form.body.errors }}{{ proceedings_form.body }}</td> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
85 |
</tr> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
86 |
<tr> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
87 |
<th>{{ proceedings_form.rst_file.label }}</th> |
93
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
88 |
<td>{{ proceedings_form.rst_file.errors }} |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
89 |
{{ proceedings_form.rst_file }}</td> |
92
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
90 |
</tr> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
91 |
<tr> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
92 |
<th>{{ proceedings_form.authors.label }}</th> |
93
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
93 |
<td>{{ proceedings_form.authors.errors }} |
e86755df35da
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
92
diff
changeset
|
94 |
{{ proceedings_form.authors }}</td> |
92
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
95 |
</tr> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
96 |
</table> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
97 |
<button class="button left" type="submit">Submit Paper</button> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
98 |
</fieldset> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
99 |
</form> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
100 |
{% if message %} |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
101 |
<script type="text/javascript">$.jGrowl("{{ message }}");</script> |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
102 |
{% endif %} |
3743275f7291
Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff
changeset
|
103 |
{% endblock content %} |