project/templates/registration/submit-registration.html
changeset 1 fda1c66b25f9
equal deleted inserted replaced
0:9a77edda77b7 1:fda1c66b25f9
       
     1 {% extends "base.html" %}
       
     2 
       
     3 {% block title %}Submit Registration{% endblock %}
       
     4 
       
     5 {% block content %}
       
     6 
       
     7     <h1>Submit Registration</h1>
       
     8 
       
     9     {% if over_reg %}
       
    10     <div class="notice">
       
    11       We have already reached the total number of registrations for the
       
    12       conference. If you would like to be put on a waiting list in the event that
       
    13       someone can't make it to the conference, please register below and we
       
    14       will be in contact if a registration spot comes available. <strong>N.B. Do not
       
    15       pay the admission fee.</strong>
       
    16     </div>
       
    17     {% endif %}
       
    18         <form action="/submit-registration/"
       
    19               method="post">
       
    20     {% if not user.is_authenticated %}
       
    21                 <fieldset>
       
    22                     <legend>Have you already registered for the conference?</legend>
       
    23                     <table class="kiwipycon-default">
       
    24                         {{ login_form }}
       
    25                     </table>
       
    26 
       
    27                 <input type="hidden"
       
    28                        name="action"
       
    29                        value="login" />
       
    30 
       
    31             <button class="button left"
       
    32                     type="submit">
       
    33                 Login
       
    34             </button>
       
    35                 </fieldset>
       
    36 
       
    37         </form>
       
    38     {% endif %}
       
    39 
       
    40     <p></p>
       
    41 
       
    42     {% if not user.is_authenticated %}
       
    43         <br />
       
    44         <form action="/submit-registration/"
       
    45               enctype="multipart/form-data"
       
    46               method="post">
       
    47                 <fieldset>
       
    48                     <legend>Registrant Details</legend>
       
    49                     <table class="kiwipycon-default required">
       
    50                         {{ registrant_form }}
       
    51                     </table>
       
    52 
       
    53                 <input type="hidden"
       
    54                        name="action"
       
    55                        value="register" />
       
    56                 </fieldset>
       
    57     {% endif %}
       
    58                 <br />
       
    59 
       
    60 {% if registration_form.errors %}<div class="errors">Please correct the errors below</div>{% endif %}
       
    61 
       
    62                 <fieldset>
       
    63                     <legend>Details</legend>
       
    64                     <table class="kiwipycon-default required">
       
    65                         {% for field in registration_form.personal_fields %}
       
    66                         <tr class="{% cycle odd,even %}"><th>{{ field.label_tag }}</th>
       
    67                           <td>{{ field.errors }}{{ field }}<br />{{ field.help_text }} </td></tr>
       
    68                          {% endfor %}
       
    69 
       
    70                         {% for field in registration_form.other_fields %}
       
    71                         <tr class="{% cycle odd,even %}"><th>{{ field.label_tag }}</th>
       
    72                           <td>{{ field.errors }}{{ field }}<br />{{ field.help_text }} </td></tr>
       
    73                          {% endfor %}
       
    74 
       
    75                     </table>
       
    76                   </fieldset>
       
    77 
       
    78                 <br />
       
    79 
       
    80                 <fieldset>
       
    81                     <legend>Demographics</legend>
       
    82                     <table class="kiwipycon-default required">
       
    83                         {% for field in registration_form.demographic_fields %}
       
    84                         <tr class="{% cycle odd,even %}"><th>{{ field.label_tag }}</th>
       
    85                           <td>{{ field.errors }}{{ field }}<br />{{ field.help_text }} </td></tr>
       
    86                          {% endfor %}
       
    87                     </table>
       
    88                 </fieldset>
       
    89                 <fieldset>
       
    90                     <legend>Others</legend>
       
    91                     <table class="kiwipycon-default">
       
    92                          {{ wifi_form }}
       
    93                     </table>
       
    94 
       
    95                 <button class="button left"
       
    96                         type="submit">
       
    97                     Submit Registration
       
    98                 </button>
       
    99                 </fieldset>                
       
   100         </form>
       
   101     {% if message %}
       
   102     <script type="text/javascript">
       
   103         $.jGrowl("{{ message }}");
       
   104 </script>
       
   105     {% endif %}
       
   106 {% endblock content %}