project/templates/proceedings/submit.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 01 Apr 2010 11:59:35 +0530
changeset 94 e86755df35da
parent 92 3743275f7291
child 96 3ece0de11641
permissions -rw-r--r--
Add admin interface and views for proceedings. Booklet is also setup to generate paper.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 %}
94
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">
94
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 = {
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
    14
      script:"{% url kiwipycon_get_usernames %}?limit=10&",
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
94
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
    44
  <form action="{% if id %}{% url kiwipycon_submit_proceedings id %}{% else %}{% url kiwipycon_submit_proceedings %}{% endif %}" method="post">
92
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
    {% if not user.is_authenticated %}
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
    <fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
      <legend>Are you a member of this site?</legend>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
      <table class="kiwipycon-default required">{{ login_form }}</table>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
      <input type="hidden" name="action" value="login" />
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
      <button class="button left" type="submit">Login</button>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    51
    </fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    52
  </form>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    53
  <br />
94
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
    54
  <form action="{% url kiwipycon_submit_proceedings id %}" 
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
    55
    enctype="multipart/form-data" method="post">
92
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    56
    <fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    57
      <legend>User Registration</legend>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    58
      <table class="kiwipycon-default required">{{ register_form }}</table>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    59
      <input type="hidden" name="action" value="register" />
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    60
    </fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    61
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    62
    {% endif %}
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    63
    <br />
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    64
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    65
    <fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    66
      <legend>Proceedings Paper Submission</legend>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    67
      <table class="kiwipycon-default required">
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    68
		<tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    69
          <th>{{ proceedings_form.title.label }}</th>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    70
          <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
    71
        </tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    72
		<tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    73
          <th>{{ proceedings_form.abstract.label }}</th>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    74
          <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
    75
        </tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    76
        <tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    77
          <th>{{ proceedings_form.body.label }}</th>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    78
          <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
    79
        </tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    80
        <tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    81
          <th>{{ proceedings_form.rst_file.label }}</th>
94
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
    82
          <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
    83
              {{ proceedings_form.rst_file }}</td>
92
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    84
        </tr>
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
          <th>{{ proceedings_form.authors.label }}</th>
94
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
    87
          <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
    88
              {{ proceedings_form.authors }}</td>
92
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    89
        </tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    90
      </table>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    91
      <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
    92
    </fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    93
  </form>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    94
  {% if message %}
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    95
  <script type="text/javascript">$.jGrowl("{{ message }}");</script>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    96
  {% endif %}
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    97
{% endblock content %}