project/templates/proceedings/submit.html
changeset 123 d4799b7159e4
parent 96 178b89a3ca4f
equal deleted inserted replaced
122:7bdf396d4778 123:d4799b7159e4
     9   /** Init autosuggest on Search Input **/
     9   /** Init autosuggest on Search Input **/
    10   jQuery(function() {
    10   jQuery(function() {
    11 
    11 
    12     // Set autosuggest options with all plugins activated
    12     // Set autosuggest options with all plugins activated
    13     var options = {
    13     var options = {
    14       script:"{% url scipycon_get_usernames %}?limit=10&",
    14       script:"{% url scipycon_get_usernames params.scope %}?limit=10&",
    15       varname:"input",
    15       varname:"input",
    16       json:true,            // Returned response type
    16       json:true,            // Returned response type
    17       shownoresults:true,       // If disable, display nothing if no results
    17       shownoresults:true,       // If disable, display nothing if no results
    18       noresults:"No Results",     // String displayed when no results
    18       noresults:"No Results",     // String displayed when no results
    19       maxresults:8,         // Max num results displayed
    19       maxresults:8,         // Max num results displayed
    39 {% block content %}
    39 {% block content %}
    40   <h1>Submit Proceedings paper</h1>
    40   <h1>Submit Proceedings paper</h1>
    41 
    41 
    42   {% include '_errors.html' %}
    42   {% include '_errors.html' %}
    43 
    43 
    44   <form action="{% if id %}{% url scipycon_submit_proceedings id %}{% else %}{% url scipycon_submit_proceedings %}{% endif %}" method="post">
    44   <form action="
       
    45       {% if id %}
       
    46           {% url scipycon_submit_proceedings id  params.scope %}
       
    47       {% else %}
       
    48           {% url scipycon_submit_proceedings params.scope %}
       
    49       {% endif %}"
       
    50       method="post">
    45     {% if not user.is_authenticated %}
    51     {% if not user.is_authenticated %}
    46     <fieldset>
    52     <fieldset>
    47       <legend>Are you a member of this site?</legend>
    53       <legend>Are you a member of this site?</legend>
    48       <table class="scipycon-default required">{{ login_form }}</table>
    54       <table class="scipycon-default required">{{ login_form }}</table>
    49       <input type="hidden" name="action" value="login" />
    55       <input type="hidden" name="action" value="login" />
    50       <button class="button left" type="submit">Login</button>
    56       <button class="button left" type="submit">Login</button>
    51     </fieldset>
    57     </fieldset>
    52   </form>
    58   </form>
    53   <br />
    59   <br />
    54   <form action="{% url scipycon_submit_proceedings id %}" 
    60   <form action="{% url scipycon_submit_proceedings id params.scope %}"
    55     enctype="multipart/form-data" method="post">
    61     enctype="multipart/form-data" method="post">
    56     <fieldset>
    62     <fieldset>
    57       <legend>User Registration</legend>
    63       <legend>User Registration</legend>
    58       <table class="scipycon-default required">{{ register_form }}</table>
    64       <table class="scipycon-default required">{{ register_form }}</table>
    59       <input type="hidden" name="action" value="register" />
    65       <input type="hidden" name="action" value="register" />