testappproj/templates/new_edit_problem.html
changeset 2 654c583fd78e
parent 0 0b061d58aea3
equal deleted inserted replaced
1:0eda880b3d25 2:654c583fd78e
     1 {%block body%}
     1 {%block body%}
     2 
     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 
     3 
    14 <h2>{% if creating %}Add{% else %}Edit{% endif %} Problem</h2>
     4 <h2>{% if creating %}Add{% else %}Edit{% endif %} Problem</h2>
    15   <form action="" method="post">
     5   <form action="" method="post" enctype="multipart/form-data">
    16   <table>
     6   <table>
    17     {{ form.as_table  }}
     7     {{ form.as_table  }}
    18   </table>
     8   </table>
    19   <input type="submit" value="Save" />
     9   <input type="submit" value="Save" />
    20 </form>
    10 </form>
    21 
    11 <hr />
    22 {%endblock%}
    12 {%endblock%}