project/templates/proceedings/submit.html
changeset 93 7c27e8d9231d
parent 92 3743275f7291
child 103 852015a7eead
equal deleted inserted replaced
92:3743275f7291 93:7c27e8d9231d
     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" type="text/css" href="/static/jquery/jquery.autocomplete.css" />
     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-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" src="/static/jquery/jquery-dynamic-form.js"></script>
       
     8   <script type="text/javascript" src="/static/jquery/jquery.autocomplete-min.js"></script>
     7   <script type="text/javascript">
     9   <script type="text/javascript">
     8     $(document).ready(function(){	
    10     $(document).ready(function(){	
     9 	  $("#author").dynamicForm("#plus", "#minus", {createColor: 'yellow',removeColor: 'red'});
    11 	  $("#author").dynamicForm("#plus", "#minus", {limit: 10, createColor: 'green',removeColor: 'red'});
       
    12 	  var a = $('input[id^=id_authors]').autocomplete({ 
       
    13         serviceUrl:'/proceedings/getusers/', 
       
    14       });
    10 	});
    15 	});
    11   </script>
    16   </script>
    12 {% endblock %}
    17 {% endblock %}
    13 
    18 
    14 {% block content %}
    19 {% block content %}
    55           <th>{{ proceedings_form.rst_file.label }}</th>
    60           <th>{{ proceedings_form.rst_file.label }}</th>
    56           <td>{{ proceedings_form.rst_file.errors }}{{ proceedings_form.rst_file }}</td>
    61           <td>{{ proceedings_form.rst_file.errors }}{{ proceedings_form.rst_file }}</td>
    57         </tr>
    62         </tr>
    58         <tr>
    63         <tr>
    59           <th>{{ proceedings_form.authors.label }}</th>
    64           <th>{{ proceedings_form.authors.label }}</th>
    60           <td id="author">
    65           <td>
       
    66             <table style="position: relative; left: -3%;"><tr id="author"><td>
    61             {{ proceedings_form.authors.errors }}
    67             {{ proceedings_form.authors.errors }}
    62             {{ proceedings_form.authors }}
    68             {{ proceedings_form.authors }}
    63             <span><a id="minus" href="">[Remove]</a><a id="plus" href="">[Add]</a></span>
    69             <span><a id="minus" href="">[Remove]</a><a id="plus" href="">[Add]</a></span>
    64             <br />
    70             </td><tr></table>
    65           </td>
    71           </td>
    66         </tr>
    72         </tr>
    67       </table>
    73       </table>
    68       <button class="button left" type="submit">Submit Paper</button>
    74       <button class="button left" type="submit">Submit Paper</button>
    69     </fieldset>
    75     </fieldset>