project/templates/proceedings/submit.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 13 Jul 2010 01:43:25 +0530
changeset 103 852015a7eead
parent 93 7c27e8d9231d
parent 101 fb27be005a5c
permissions -rw-r--r--
Merged changes.
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 %}
101
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
     5
  <link rel="stylesheet" type="text/css" href="/static/jquery/jquery.autocomplete.css" />
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
     6
  <script type="text/javascript" src="/static/jquery/jquery-ui-1.7.2.custom.min.js"></script>
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
     7
  <script type="text/javascript" src="/static/jquery/jquery-dynamic-form.js"></script>
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
     8
  <script type="text/javascript" src="/static/jquery/jquery.autocomplete-min.js"></script>
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
     9
  <script type="text/javascript">
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    10
    $(document).ready(function(){	
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    11
	  $("#author").dynamicForm("#plus", "#minus", {limit: 10, createColor: 'green',removeColor: 'red'});
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    12
	  var a = $('input[id^=id_authors]').autocomplete({ 
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    13
        serviceUrl:'/proceedings/getusers/', 
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    14
      });
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    15
	});
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    16
  </script>
92
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
{% endblock %}
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    19
{% block content %}
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    20
  <h1>Submit Proceedings paper</h1>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    21
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    22
  {% include '_errors.html' %}
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
101
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    24
  <form action="{% url kiwipycon_submit_proceedings %}" method="post">
92
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
    {% if not user.is_authenticated %}
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    26
    <fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
      <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
    28
      <table class="kiwipycon-default required">{{ login_form }}</table>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
      <input type="hidden" name="action" value="login" />
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
      <button class="button left" type="submit">Login</button>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    31
    </fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
  </form>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
  <br />
101
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    34
  <form action="{% url kiwipycon_submit_talk %}" enctype="multipart/form-data" method="post">
92
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
    <fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
      <legend>User Registration</legend>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
      <table class="kiwipycon-default required">{{ register_form }}</table>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
      <input type="hidden" name="action" value="register" />
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    39
    </fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    40
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    41
    {% endif %}
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
    <br />
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    43
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    44
    <fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
      <legend>Proceedings Paper Submission</legend>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
      <table class="kiwipycon-default required">
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
		<tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
          <th>{{ proceedings_form.title.label }}</th>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
          <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
    50
        </tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    51
		<tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    52
          <th>{{ proceedings_form.abstract.label }}</th>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    53
          <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
    54
        </tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    55
        <tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    56
          <th>{{ proceedings_form.body.label }}</th>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    57
          <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
    58
        </tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    59
        <tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    60
          <th>{{ proceedings_form.rst_file.label }}</th>
101
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    61
          <td>{{ proceedings_form.rst_file.errors }}{{ proceedings_form.rst_file }}</td>
92
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    62
        </tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    63
        <tr>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    64
          <th>{{ proceedings_form.authors.label }}</th>
101
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    65
          <td>
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    66
            <table style="position: relative; left: -3%;"><tr id="author"><td>
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    67
            {{ proceedings_form.authors.errors }}
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    68
            {{ proceedings_form.authors }}
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    69
            <span><a id="minus" href="">[Remove]</a><a id="plus" href="">[Add]</a></span>
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    70
            </td><tr></table>
fb27be005a5c Added complete support for dynamic form to add extra authors fields to proceedings form and added initial support for autocompletion based on user names for authors.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 96
diff changeset
    71
          </td>
92
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
      </table>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    74
      <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
    75
    </fieldset>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    76
  </form>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    77
  {% if message %}
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    78
  <script type="text/javascript">$.jGrowl("{{ message }}");</script>
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    79
  {% endif %}
3743275f7291 Added submission template to the repository.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    80
{% endblock content %}