|
1 {% extends "base.html" %} |
|
2 {% block title %}Submit Paper for Proceedings{% endblock %} |
|
3 |
|
4 {% block addscripts %} |
|
5 <script type="text/javascript" src="/static/jquery/jquery-ui-1.7.2.custom.min.js"></script> |
|
6 <script type="text/javascript" src="/static/jquery/jquery-dynamic-form.js"></script> |
|
7 <script type="text/javascript"> |
|
8 $(document).ready(function(){ |
|
9 $("#author").dynamicForm("#plus", "#minus", {createColor: 'yellow',removeColor: 'red'}); |
|
10 }); |
|
11 </script> |
|
12 {% endblock %} |
|
13 |
|
14 {% block content %} |
|
15 <h1>Submit Proceedings paper</h1> |
|
16 |
|
17 {% include '_errors.html' %} |
|
18 |
|
19 <form action="{% url kiwipycon_submit_proceedings %}" method="post"> |
|
20 {% if not user.is_authenticated %} |
|
21 <fieldset> |
|
22 <legend>Are you a member of this site?</legend> |
|
23 <table class="kiwipycon-default required">{{ login_form }}</table> |
|
24 <input type="hidden" name="action" value="login" /> |
|
25 <button class="button left" type="submit">Login</button> |
|
26 </fieldset> |
|
27 </form> |
|
28 <br /> |
|
29 <form action="{% url kiwipycon_submit_talk %}" enctype="multipart/form-data" method="post"> |
|
30 <fieldset> |
|
31 <legend>User Registration</legend> |
|
32 <table class="kiwipycon-default required">{{ register_form }}</table> |
|
33 <input type="hidden" name="action" value="register" /> |
|
34 </fieldset> |
|
35 |
|
36 {% endif %} |
|
37 <br /> |
|
38 |
|
39 <fieldset> |
|
40 <legend>Proceedings Paper Submission</legend> |
|
41 <table class="kiwipycon-default required"> |
|
42 <tr> |
|
43 <th>{{ proceedings_form.title.label }}</th> |
|
44 <td>{{ proceedings_form.title.errors }}{{ proceedings_form.title }}</td> |
|
45 </tr> |
|
46 <tr> |
|
47 <th>{{ proceedings_form.abstract.label }}</th> |
|
48 <td>{{ proceedings_form.abstract.errors }}{{ proceedings_form.abstract }}</td> |
|
49 </tr> |
|
50 <tr> |
|
51 <th>{{ proceedings_form.body.label }}</th> |
|
52 <td>{{ proceedings_form.body.errors }}{{ proceedings_form.body }}</td> |
|
53 </tr> |
|
54 <tr> |
|
55 <th>{{ proceedings_form.rst_file.label }}</th> |
|
56 <td>{{ proceedings_form.rst_file.errors }}{{ proceedings_form.rst_file }}</td> |
|
57 </tr> |
|
58 <tr> |
|
59 <th>{{ proceedings_form.authors.label }}</th> |
|
60 <td id="author"> |
|
61 {{ proceedings_form.authors.errors }} |
|
62 {{ proceedings_form.authors }} |
|
63 <span><a id="minus" href="">[Remove]</a><a id="plus" href="">[Add]</a></span> |
|
64 <br /> |
|
65 </td> |
|
66 </tr> |
|
67 </table> |
|
68 <button class="button left" type="submit">Submit Paper</button> |
|
69 </fieldset> |
|
70 </form> |
|
71 {% if message %} |
|
72 <script type="text/javascript">$.jGrowl("{{ message }}");</script> |
|
73 {% endif %} |
|
74 {% endblock content %} |