1 {% extends "base.html" %} |
1 {% extends "base.html" %} |
2 {% block title %}Submit Paper for Proceedings{% endblock %} |
2 {% block title %}Submit Paper for Proceedings{% endblock %} |
3 |
3 |
4 {% block addscripts %} |
4 {% block addscripts %} |
5 <link rel="stylesheet" href="/static/css/autoSuggest.css" type="text/css" media="screen" charset="utf-8"> |
5 <link rel="stylesheet" type="text/css" href="/static/jquery/jquery.autocomplete.css" /> |
6 <script type="text/javascript" src="/static/jquery/jquery.autoSuggest.js"></script> |
6 <script type="text/javascript" src="/static/jquery/jquery-ui-1.7.2.custom.min.js"></script> |
7 <script type="text/javascript"> |
7 <script type="text/javascript" src="/static/jquery/jquery-dynamic-form.js"></script> |
8 $(document).ready(function() { |
8 <script type="text/javascript" src="/static/jquery/jquery.autocomplete-min.js"></script> |
9 var initial_authors_obj = eval("{{ initial_authors|escapejs }}"); |
9 <script type="text/javascript"> |
10 $("#id_authors").autoSuggest("{% url kiwipycon_get_usernames %}", |
10 $(document).ready(function(){ |
11 {minChars: 2, asHtmlID: "authors", |
11 $("#author").dynamicForm("#plus", "#minus", {limit: 10, createColor: 'green',removeColor: 'red'}); |
12 selectedValuesProp: "name", |
12 var a = $('input[id^=id_authors]').autocomplete({ |
13 preFill: initial_authors_obj }); |
13 serviceUrl:'/proceedings/getusers/', |
14 }); |
14 }); |
15 </script> |
15 }); |
16 |
16 </script> |
17 {% endblock %} |
17 {% endblock %} |
18 |
18 |
19 {% block content %} |
19 {% block content %} |
20 <h1>Submit Proceedings paper</h1> |
20 <h1>Submit Proceedings paper</h1> |
21 |
21 |
22 {% include '_errors.html' %} |
22 {% include '_errors.html' %} |
23 |
23 |
24 <form action="{% if id %}{% url kiwipycon_submit_proceedings id %}{% else %}{% url kiwipycon_submit_proceedings %}{% endif %}" method="post"> |
24 <form action="{% url kiwipycon_submit_proceedings %}" method="post"> |
25 {% if not user.is_authenticated %} |
25 {% if not user.is_authenticated %} |
26 <fieldset> |
26 <fieldset> |
27 <legend>Are you a member of this site?</legend> |
27 <legend>Are you a member of this site?</legend> |
28 <table class="kiwipycon-default required">{{ login_form }}</table> |
28 <table class="kiwipycon-default required">{{ login_form }}</table> |
29 <input type="hidden" name="action" value="login" /> |
29 <input type="hidden" name="action" value="login" /> |
30 <button class="button left" type="submit">Login</button> |
30 <button class="button left" type="submit">Login</button> |
31 </fieldset> |
31 </fieldset> |
32 </form> |
32 </form> |
33 <br /> |
33 <br /> |
34 <form action="{% url kiwipycon_submit_proceedings id %}" |
34 <form action="{% url kiwipycon_submit_talk %}" enctype="multipart/form-data" method="post"> |
35 enctype="multipart/form-data" method="post"> |
|
36 <fieldset> |
35 <fieldset> |
37 <legend>User Registration</legend> |
36 <legend>User Registration</legend> |
38 <table class="kiwipycon-default required">{{ register_form }}</table> |
37 <table class="kiwipycon-default required">{{ register_form }}</table> |
39 <input type="hidden" name="action" value="register" /> |
38 <input type="hidden" name="action" value="register" /> |
40 </fieldset> |
39 </fieldset> |
57 <th>{{ proceedings_form.body.label }}</th> |
56 <th>{{ proceedings_form.body.label }}</th> |
58 <td>{{ proceedings_form.body.errors }}{{ proceedings_form.body }}</td> |
57 <td>{{ proceedings_form.body.errors }}{{ proceedings_form.body }}</td> |
59 </tr> |
58 </tr> |
60 <tr> |
59 <tr> |
61 <th>{{ proceedings_form.rst_file.label }}</th> |
60 <th>{{ proceedings_form.rst_file.label }}</th> |
62 <td>{{ proceedings_form.rst_file.errors }} |
61 <td>{{ proceedings_form.rst_file.errors }}{{ proceedings_form.rst_file }}</td> |
63 {{ proceedings_form.rst_file }}</td> |
|
64 </tr> |
62 </tr> |
65 <tr> |
63 <tr> |
66 <th>{{ proceedings_form.authors.label }}</th> |
64 <th>{{ proceedings_form.authors.label }}</th> |
67 <td>{{ proceedings_form.authors.errors }} |
65 <td> |
68 {{ proceedings_form.authors }}</td> |
66 <table style="position: relative; left: -3%;"><tr id="author"><td> |
|
67 {{ proceedings_form.authors.errors }} |
|
68 {{ proceedings_form.authors }} |
|
69 <span><a id="minus" href="">[Remove]</a><a id="plus" href="">[Add]</a></span> |
|
70 </td><tr></table> |
|
71 </td> |
69 </tr> |
72 </tr> |
70 </table> |
73 </table> |
71 <button class="button left" type="submit">Submit Paper</button> |
74 <button class="button left" type="submit">Submit Paper</button> |
72 </fieldset> |
75 </fieldset> |
73 </form> |
76 </form> |