Created
August 28, 2012 22:46
-
-
Save graingert/3505028 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% regroup pfpdiscipline by task_date.week as curricula_groups %} | |
{% for curricula in curricula_groups %} | |
<h3>Week {{ curricula.grouper }}</h3> | |
{% for curriculum in curricula.list %} | |
{% if forloop.first %} | |
<h4>{{ curriculum.task_date.day|length }}</h4> | |
<table id="tableid-{{ forloop.counter }}" class="table table-bordered"> | |
<thead> | |
<tr> | |
<th>Day</th> | |
<th>Task</th> | |
<th>Objective</th> | |
<th>Outcome</th> | |
<th>Category</th> | |
<th>Hours</th> | |
</tr> | |
</thead> | |
<tbody> | |
{% endif %} | |
<tr id="day-{{ curriculum.task_date.day }}"> | |
{% ifchanged %}<th rowspan="{{ curricula.list|length }}" >{{ curriculum.task_date.day }}</th>{% endifchanged %} | |
<td> {% editable curriculum.task_name %} {{ curriculum.task_name }} {% endeditable %}</td> | |
<td style="width: 40%;"> {% editable curriculum.objective %} {{ curriculum.objective }} {% endeditable %}</td> | |
<td>{% editable curriculum.outcome %} {{ curriculum.outcome }} {% endeditable %}</td> | |
<td style="width: 70px;">{% editable curriculum.task_category %} {{ curriculum.task_category }} {% endeditable %}</td> | |
<td style="width: 50px;">{% editable curriculum.projected_hours %} {{ curriculum.projected_hours }} {% endeditable %}</td> | |
</tr> | |
{% if forloop.last %} | |
</tbody> | |
</table> | |
{% endif %} | |
{% empty %} | |
<div class="alert">No stuff for curriculum: {{curriculum}}</div> | |
{% endfor %} | |
{% empty %} | |
<div class="alert alert-error">No stuff for week: {{task_date.week}}</div> | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment