project/templates/talk/submit-talk.html
changeset 1 fda1c66b25f9
equal deleted inserted replaced
0:9a77edda77b7 1:fda1c66b25f9
       
     1 {% extends "base.html" %}
       
     2 
       
     3 {% block title %}Submit Talk Proposal{% endblock %}
       
     4 
       
     5 {% block content %}
       
     6     <h1>Submit Talk Proposal</h1>
       
     7 
       
     8 {% include '_errors.html' %}
       
     9 
       
    10         <form action="{% url kiwipycon_submit_talk %}"
       
    11               method="post">
       
    12     {% if not user.is_authenticated %}
       
    13                 <fieldset>
       
    14                     <legend>Are you a member of this site?</legend>
       
    15                     <table class="kiwipycon-default required">
       
    16                         {{ login_form }}
       
    17                     </table>
       
    18 
       
    19                 <input type="hidden"
       
    20                        name="action"
       
    21                        value="login" />
       
    22 
       
    23             <button class="button left"
       
    24                     type="submit">
       
    25                 Login
       
    26             </button>
       
    27                 </fieldset>
       
    28 
       
    29         </form>
       
    30         <br />
       
    31         <form action="{% url kiwipycon_submit_talk %}"
       
    32               enctype="multipart/form-data"
       
    33               method="post">
       
    34                 <fieldset>
       
    35                     <legend>Speaker Registration</legend>
       
    36                     <table class="kiwipycon-default required">
       
    37                         {{ register_form }}
       
    38                     </table>
       
    39 
       
    40                 <input type="hidden"
       
    41                        name="action"
       
    42                        value="register" />
       
    43                 </fieldset>
       
    44     {% endif %}
       
    45                 <br />
       
    46                 <fieldset>
       
    47                     <legend>Talk Submission</legend>
       
    48                     <table class="kiwipycon-default required">
       
    49                         {{ talk_form }}
       
    50                     </table>
       
    51 
       
    52                 <button class="button left"
       
    53                         type="submit">
       
    54                     Submit Talk
       
    55                 </button>
       
    56                 </fieldset>
       
    57         </form>
       
    58     {% if message %}
       
    59     <script type="text/javascript">
       
    60         $.jGrowl("{{ message }}");
       
    61 </script>
       
    62     {% endif %}
       
    63 {% endblock content %}