project/templates/talk/submit-talk.html
author Parth buch <parth.buch.115@gmail.com>
Sat, 01 Oct 2011 03:59:03 +0530
branch2011
changeset 429 cde70fd3073c
parent 123 d4799b7159e4
permissions -rw-r--r--
changed the handler404 and handler500 to a custom view, passing scope to get proper formed urls when displaying 404 and 500 pages

{% extends "base.html" %}

{% block title %}Submit Talk Proposal{% endblock %}

{% block content %}
  <h1>Submit Talk Proposal</h1>

  {% include '_errors.html' %}

  <form action="{% url scipycon_submit_talk params.scope %}" method="post">
    {% if not user.is_authenticated %}
      <fieldset>
        <legend>Are you a member of this site?</legend>
        <table class="scipycon-default required">
          {{ login_form }}
        </table>

        <input type="hidden" name="action" value="login" />

        <button class="button left" type="submit">Login</button>
      </fieldset>

    </form>
    <br />

    <form action="{% url scipycon_submit_talk %}"
        enctype="multipart/form-data" method="post">
      <fieldset>
        <legend>Speaker Registration</legend>
        <table class="scipycon-default required">
          {{ register_form }}
        </table>

        <input type="hidden" name="action" value="register" />
      </fieldset>
    {% endif %}
    <br />

    <fieldset>
      <legend>Talk Submission</legend>
      <table class="scipycon-default required">
        {{ talk_form }}
      </table>

      <button class="button left" type="submit">Submit Talk</button>
    </fieldset>
  </form>
  {% if message %}
    <script type="text/javascript">
        $.jGrowl("{{ message }}");
     </script>
  {% endif %}
{% endblock content %}