app/soc/templates/modules/ghop/task/list/row.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Mon, 05 Oct 2009 22:43:30 +0200
changeset 3017 6689a4c8f02e
parent 2827 58e2a02e35b4
permissions -rw-r--r--
Separated the publish and approve button on the Task list page for Org members. Also ensured that only tasks from the right org with the right status can be changed. And that we do not make unneccesary loops over values in the POST dict by grouping all the keys in the POST data under "task_id". The list entries also no longer redirect a user when clicking on the checkbox. Patch by: Madhusudan.C.S and Lennard de Rijk

{% block first %}
<tr class="off" onmouseover="this.className='on'; do_redirect=true" onmouseout="this.className='off'" 
onclick="if (do_redirect) document.location.href='{{ list.redirect }}'" name="name">
  <td align="right"><div class="title"><a class="noul" onclick="do_redirect=false"
         href="{{ list.redirect }}">{{ list.item.title }}</a>
     </div>
  </td>
{% endblock first %}
  <td><div class="difficulty">{{ list.item.difficulty.0.tag }}</a></div></td>
  <td><div class="task_type">
  {% for task_type in list.item.task_type %}
    {{ task_type.tag }}{% if not forloop.last %}, {% endif %}
  {% endfor %}
  </a></div></td>
  <td><div class="timetocomplete">{{ list.item.time_to_complete }} hrs</a></div></td>
  <td><div class="status">{{ list.item.status }}</a></div></td>
  <td><div class="mentors">
  {% if list.info.mentors %}
    {% for mentor in list.info.mentors|slice:":2" %}
      {{ mentor.name }}{% if not forloop.last %}, {% endif %}    
    {% endfor %}
    {% if list.info.extramentors %}
      + {{ list.info.extramentors }} 
    {% endif %}
  {% else %}
    Not Assigned
  {% endif %}
  </a></div></td>
</tr>