testappproj/templates/new_edit_problem.html~
author amit@thunder
Mon, 14 Jun 2010 22:02:14 +0530
changeset 4 4d5422e5a45d
parent 0 0b061d58aea3
permissions -rw-r--r--
checking if somebody is importing a libarary in code

{%block body%}

{% if creating %}
<h2>Upload Problems</h2>
  <form action="/upload/" method="post" enctype="multipart/form-data">
    <table>
      {{ upload_form.as_table }}
    </table>
    <input type="submit" value="upload" />
  </form>
<hr />
{% endif %}

<h2>{% if creating %}Add{% else %}Edit{% endif %} Problem</h2>
  <form action="" method="post">
  <table>
    {{ form.as_table  }}
  </table>
  <input type="submit" value="Save" />
</form>

{%endblock%}