Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add kluge for schedule slotkinds to the edit grid template similar to the grid template #70

Merged
merged 1 commit into from
May 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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