testappproj/templates/problems.html~
author amit@thunder
Mon, 17 May 2010 22:33:59 +0530
changeset 0 0b061d58aea3
permissions -rw-r--r--
First commit to Fossee of testapp has the basic Pykata framework on django with some specific changes to Problems model and some views to suit an exam like system

{%extends "base.html"%} 
{% block body %}
<h2>All Problems</h2>
<table class="problems" cellspacing="0" width="900">
  <tr style="color:#00ce1d;font-weight:bold;text-align:center">
    <td>Description</td>
<!-- commented because this may be used again for doing all the score stuff -->
{#  {% if user %}<td>Solved</td><td>Edit</td>{% endif %} #}
  </tr>

{% for entry in entries %}
<tr>
    <td>
      {{ entry.problem|escape }}
    	<a id="#solve_{{ entry.problem_id }}" class="comment"  href="#solve"  onclick="return loadcode({{ entry.problem_id }})">solve</a>
     </td>

</tr>
{% endfor %}

</table>

<p>
{% if user %}<a href="{% url testapp.views.new_edit %}">Create new problem</a>{% endif %}
</p>

{%endblock%}