diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/allotter/apply.html | 14 | ||||
-rw-r--r-- | template/base.html | 2 |
2 files changed, 10 insertions, 6 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> diff --git a/template/base.html b/template/base.html index d10402c..cd937ba 100644 --- a/template/base.html +++ b/template/base.html @@ -7,7 +7,7 @@ border: 2px solid red; } </style> - <title>{% block title %}Tagging Exploration{% endblock %}</title> + <title>{% block title %} {% endblock %}</title> </head> <body> |