templates/app_reservas/aula_detail.html
{% extends 'app_reservas/base_calendario.html' %}
{% load static %}
{% block title %}
{{ aula }}
{% endblock title %}
{% block contenido %}
<div class="page-header">
<h1>{{ aula.get_nombre_corto }}</h1>
</div>
<div class="col-sm-offset-3 col-sm-6">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">
Información
</h3>
</div>
<table class="table table-bordered">
{% if aula.capacidad %}
<tr>
<th scope="row">Capacidad</th>
<td class="text-center">{{ aula.capacidad }}</td>
</tr>
{% endif %}
<tr>
<th scope="row">Áreas a cargo</th>
<td class="text-center">
{% for area in aula.areas.all %}
{{ area }}
{% if not forloop.last %}
—
{% endif %}
{% endfor %}
</td>
</tr>
<tr>
<th scope="row">Ubicación</th>
<td class="text-center">{{ aula.nivel }}</td>
</tr>
{% if aula.archivo_ubicacion %}
<tr>
<th scope="row">Mapa</th>
<td class="text-center">
<a role="button"
class="btn btn-xs btn-success"
target="_blank"
href="{{ aula.archivo_ubicacion.url }}">
<span class="glyphicon glyphicon-map-marker"
aria-hidden="true">
</span>
Visualizar
</a>
</td>
</tr>
{% endif %}
</table>
</div>
</div>
<div id="calendar" class="calendar col-sm-12"></div>
{% endblock contenido %}
{% block fullcalendar_defaultView %}
defaultView: 'agendaWeek',
{% endblock fullcalendar_defaultView %}
{% block fullcalendar_eventSources %}
{
url: '{% url "recurso_eventos_json" aula.id %}',
{% if aula.calendar_color %}
color: '{{ aula.calendar_color }}',
{% endif %}
},
{% endblock fullcalendar_eventSources %}