equal
deleted
inserted
replaced
|
1 {%block body%} |
|
2 |
|
3 {% if creating %} |
|
4 <h2>Upload Problems</h2> |
|
5 <form action="/upload/" method="post" enctype="multipart/form-data"> |
|
6 <table> |
|
7 {{ upload_form.as_table }} |
|
8 </table> |
|
9 <input type="submit" value="upload" /> |
|
10 </form> |
|
11 <hr /> |
|
12 {% endif %} |
|
13 |
|
14 <h2>{% if creating %}Add{% else %}Edit{% endif %} Problem</h2> |
|
15 <form action="" method="post"> |
|
16 <table> |
|
17 {{ form.as_table }} |
|
18 </table> |
|
19 <input type="submit" value="Save" /> |
|
20 </form> |
|
21 |
|
22 {%endblock%} |