</tr>
</thead>
<tbody>
- {% for pod in dev_pods %}
+ {% for resource in dev_pods %}
<tr>
<th>
- <a target='_blank' href={{ pod.url }}>{{ pod.name }}</a>
+ <a target='_blank' href={{ resource.url }}>{{ resource.name }}</a>
</th>
<th>
- <a target='_blank' href={{ pod.slaveurl }}>{{ pod.slavename }}</a>
+ <a target='_blank' href={{ resource.slaveurl }}>{{ resource.slavename }}</a>
</th>
<th>
- {{ pod.current_booking.user }}
+ {{ resource.current_booking.user.username }}
</th>
<th>
- {{ pod.current_booking.end_date_time }}
+ {{ resource.current_booking.end }}
</th>
<th>
- {{ pod.current_booking.purpose }}
+ {{ resource.current_booking.purpose }}
</th>
- <th style="background-color:{{ pod.status_color }}">
- {{ pod.status }}
+ <th style="background-color:{{ resource.status_color }}">
+ {{ resource.status }}
</th>
<th>
- <a href='{% url 'dashboard:booking_calendar' %}{{ pod.resource_id }}' class="btn btn-primary">
+ <a href="{% url 'booking:create' resource_id=resource.id %}" class="btn btn-primary">
Book
</a>
</th>