diff options
Diffstat (limited to 'template/allotter/apply.html')
-rw-r--r-- | template/allotter/apply.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/template/allotter/apply.html b/template/allotter/apply.html index ca03726..e1c728d 100644 --- a/template/allotter/apply.html +++ b/template/allotter/apply.html @@ -39,33 +39,37 @@ options are available to you. Please rank your choices.</h4> Listing the options for first test paper. {% endcomment %} -<form action="/allotter/save" method="post"> +{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %} + +<form action="/allotter/{{user.username}}/submit/" method="post"> {% csrf_token %} {% for option in options_available_first %} <p>{{ option.opt_name }}</p> {% for i in oafl|get_range %} - <input name="option" type="radio" value="{{i}}" />{{i}}<br/> + <input name="{{option.opt_name}}" type="radio" value="{{option.id}}" /><br/> {% endfor %} - <input name="option" type="radio" value="None" />None<br/> + <input name="{{option.opt_name}}" type="radio" value="None" />None<br/> {% endfor %} {% comment %} Listing the options for second test paper if it exists. {% endcomment %} + {% if np == 2 %} {% for option in options_available_second %} <p>{{ option.opt_name }}</p> {% for i in oafl|get_range %} - <input name="option" type="radio" value="{{i}}" />{{i}}<br/> + <input name="option" type="radio" value="{{i}}"/><br/> {% endfor %} <input name="option" type="radio" value="None" />None<br/> -{% endfor %} +{% endfor %} {% endif %} + <input type="submit" name="save" value="Save" /> </form> |