Skip to content

Commit

Permalink
Merge pull request #70 from pydata/schedule-edit
Browse files Browse the repository at this point in the history
add kluge for schedule slotkinds to the edit grid template similar to the grid template
  • Loading branch information
codersquid committed May 28, 2015
2 parents d33c36d + ac27aca commit f9e7fad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion conf_site/templates/schedule/_edit_grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<td class="time">{{ row.time|date:"h:iA" }}</td>
{% for slot in row.slots %}
<td class="slot slot-{{ slot.kind.label }}" colspan="{{ slot.colspan }}" rowspan="{{ slot.rowspan }}">
{% if slot.kind.label == "talk" or slot.kind.label == "tutorial" %}
{# this is a kludge until the slot.kind model has a property #}
{# to distinguish a presentation from a non-presentation slot #}
{% if slot.kind.label in "Track 4 Track 3 Track 2 Track 1 Tutorial Track 4 Tutorial Track 3 Tutorial Track 2 Tutorial Track 1" %}
{% if not slot.content %}
<a class="btn btn-xs edit-slot" data-action="{% url "schedule_slot_edit" schedule.section.slug slot.pk %}" href="#">+</a>
{% else %}
Expand Down

0 comments on commit f9e7fad

Please sign in to comment.