project/templates/registration/submit-registration.html
changeset 134 6d8d8b64853e
parent 96 178b89a3ca4f
child 191 0eb941d14ec3
equal deleted inserted replaced
133:c5de36c4573e 134:6d8d8b64853e
     1 {% extends "base.html" %}
     1 {% extends "base.html" %}
     2 
     2 
     3 {% block title %}Submit Registration{% endblock %}
     3 {% block title %}Submit Registration{% endblock %}
     4 
     4 
     5 {% block content %}
     5 {% block content %}
       
     6     {% block formheading %}
       
     7       <h1>Submit Registration</h1>
       
     8     {% endblock formheading %}
     6 
     9 
     7     <h1>Submit Registration</h1>
    10     {% block overreg %}
     8 
       
     9     {% if over_reg %}
    11     {% if over_reg %}
    10     <div class="notice">
    12     <div class="notice">
    11       We have already reached the total number of registrations for the
    13       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
    14       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
    15       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
    16       will be in contact if a registration spot comes available. <strong>N.B. Do not
    15       pay the admission fee.</strong>
    17       pay the admission fee.</strong>
    16     </div>
    18     </div>
    17     {% endif %}
    19     {% endif %}
    18         <form action="/submit-registration/"
    20     {% endblock overreg %}
    19               method="post">
    21 
       
    22     <form action=
       
    23     {% block url_select_login %}
       
    24       "{% url scipycon_submit_registration params.scope %}"
       
    25     {% endblock url_select_login %}
       
    26         method="post">
    20     {% if not user.is_authenticated %}
    27     {% if not user.is_authenticated %}
    21                 <fieldset>
    28       <fieldset>
    22                     <legend>Have you already registered for the conference?</legend>
    29         <legend>Have you already registered for the conference?</legend>
    23                     <table class="scipycon-default">
    30         <table class="scipycon-default">
    24                         {{ login_form }}
    31           {{ login_form }}
    25                     </table>
    32         </table>
    26 
    33 
    27                 <input type="hidden"
    34         <input type="hidden" name="action" value="login" />
    28                        name="action"
       
    29                        value="login" />
       
    30 
    35 
    31             <button class="button left"
    36         <button class="button left" type="submit">Login</button>
    32                     type="submit">
    37       </fieldset>
    33                 Login
       
    34             </button>
       
    35                 </fieldset>
       
    36 
    38 
    37         </form>
    39     </form>
    38     {% endif %}
    40     {% endif %}
    39 
    41 
    40     <p></p>
    42     <p></p>
    41 
    43 
    42     {% if not user.is_authenticated %}
    44     {% if not user.is_authenticated %}
    43         <br />
    45     <br />
    44         <form action="/submit-registration/"
    46     <form action=
    45               enctype="multipart/form-data"
    47     {% block url_select_reg %}
    46               method="post">
    48       "{% url scipycon_submit_registration params.scope %}"
    47                 <fieldset>
    49     {% endblock url_select_reg %}
    48                     <legend>Registrant Details</legend>
    50         enctype="multipart/form-data" method="post">
    49                     <table class="scipycon-default required">
    51       <fieldset>
    50                         {{ registrant_form }}
    52         <legend>Registrant Details</legend>
    51                     </table>
    53         <table class="scipycon-default required">
       
    54           {{ registrant_form }}
       
    55         </table>
    52 
    56 
    53                 <input type="hidden"
    57         <input type="hidden" name="action" value="register" />
    54                        name="action"
    58       </fieldset>
    55                        value="register" />
       
    56                 </fieldset>
       
    57     {% endif %}
    59     {% endif %}
    58                 <br />
    60     <br />
    59 
    61 
    60 {% if registration_form.errors %}<div class="errors">Please correct the errors below</div>{% endif %}
    62     {% if registration_form.errors %}
       
    63       <div class="errors">Please correct the errors below</div>
       
    64     {% endif %}
    61 
    65 
    62                 <fieldset>
    66       <fieldset>
    63                     <legend>Details</legend>
    67         <legend>Details</legend>
    64                     <table class="scipycon-default required">
    68         <table class="scipycon-default required">
    65                         {% for field in registration_form.personal_fields %}
    69           {% for field in registration_form.personal_fields %}
    66                         <tr class="{% cycle odd,even %}"><th>{{ field.label_tag }}</th>
    70             <tr class="{% cycle odd,even %}">
    67                           <td>{{ field.errors }}{{ field }}<br />{{ field.help_text }} </td></tr>
    71               <th>{{ field.label_tag }}</th>
    68                          {% endfor %}
    72               <td>{{ field.errors }}{{ field }}<br />{{ field.help_text }}</td>
       
    73             </tr>
       
    74           {% endfor %}
    69 
    75 
    70                         {% for field in registration_form.other_fields %}
    76           {% for field in registration_form.other_fields %}
    71                         <tr class="{% cycle odd,even %}"><th>{{ field.label_tag }}</th>
    77             <tr class="{% cycle odd,even %}">
    72                           <td>{{ field.errors }}{{ field }}<br />{{ field.help_text }} </td></tr>
    78               <th>{{ field.label_tag }}</th>
    73                          {% endfor %}
    79               <td>{{ field.errors }}{{ field }}<br />{{ field.help_text }}</td>
       
    80             </tr>
       
    81           {% endfor %}
       
    82         </table>
       
    83       </fieldset>
       
    84       <br />
    74 
    85 
    75                     </table>
    86       <fieldset>
    76                   </fieldset>
    87         <legend>Occupation</legend>
       
    88         <table class="scipycon-default required">
       
    89           {% for field in registration_form.occupation_fields %}
       
    90             <tr class="{% cycle odd,even %}">
       
    91               <th>{{ field.label_tag }}</th>
       
    92               <td>
       
    93                 {{ field.errors }}{{ field }}<br />{{ field.help_text }}
       
    94               </td>
       
    95             </tr>
       
    96           {% endfor %}
       
    97         </table>
       
    98       </fieldset>
    77 
    99 
    78                 <br />
   100       <fieldset>
       
   101         <legend>Demographics</legend>
       
   102         <table class="scipycon-default">
       
   103           {% for field in registration_form.demographic_fields %}
       
   104             <tr class="{% cycle odd,even %}">
       
   105               <th>{{ field.label_tag }}</th>
       
   106               <td>
       
   107                 {{ field.errors }}{{ field }}<br />{{ field.help_text }}
       
   108               </td>
       
   109             </tr>
       
   110           {% endfor %}
       
   111         </table>
       
   112       </fieldset>
    79 
   113 
    80                 <fieldset>
   114       <fieldset>
    81                     <legend>Demographics</legend>
   115         <legend>Others</legend>
    82                     <table class="scipycon-default required">
   116         <table class="scipycon-default">
    83                         {% for field in registration_form.demographic_fields %}
   117           {{ wifi_form }}
    84                         <tr class="{% cycle odd,even %}"><th>{{ field.label_tag }}</th>
   118         </table>
    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="scipycon-default">
       
    92                          {{ wifi_form }}
       
    93                     </table>
       
    94 
   119 
    95                 <button class="button left"
   120         <button class="button left" type="submit">Submit Registration</button>
    96                         type="submit">
   121       </fieldset>
    97                     Submit Registration
   122 
    98                 </button>
   123       {% block formextras %}{% endblock formextras %}
    99                 </fieldset>                
   124     </form>
   100         </form>
       
   101     {% if message %}
   125     {% if message %}
   102     <script type="text/javascript">
   126     <script type="text/javascript">
   103         $.jGrowl("{{ message }}");
   127         $.jGrowl("{{ message }}");
   104 </script>
   128     </script>
   105     {% endif %}
   129     {% endif %}
   106 {% endblock content %}
   130 {% endblock content %}