111 lines
2.8 KiB
HTML
111 lines
2.8 KiB
HTML
{% extends "site_base.html" %}
|
|
|
|
{% load i18n %}
|
|
{% load bootstrap_tags %}
|
|
|
|
{% block head_title %}Conference Schedule Edit{% endblock %}
|
|
|
|
{% block body_class %}full{% endblock %}
|
|
|
|
{% block right %}
|
|
{% endblock %}
|
|
|
|
{% block extra_head %}
|
|
<link rel="stylesheet" href="{{ STATIC_URL }}css/facebox.css" />
|
|
<style>
|
|
td {
|
|
font-size: 9pt;
|
|
}
|
|
td.slot {
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
}
|
|
td.time {
|
|
vertical-align: top;
|
|
width: 50px;
|
|
font-size: 8pt;
|
|
padding-top: 0;
|
|
}
|
|
td.slot:hover .schedule-controls {
|
|
display: block;
|
|
}
|
|
.schedule-controls {
|
|
display: none;
|
|
font-size: 8pt;
|
|
}
|
|
.schedule-controls a {
|
|
text-decoration: none;
|
|
color: #000;
|
|
}
|
|
.schedule-controls a:hover {
|
|
color: #999;
|
|
}
|
|
/*
|
|
td.slot.recess,
|
|
td.slot.recess.colspan-1.rowspan-1,
|
|
td.slot.recess.colspan-1.rowspan-2 {
|
|
background: #ECFFFF;
|
|
}
|
|
td.slot.plenary {
|
|
background: #DCDCFF;
|
|
}
|
|
td.slot div.title {
|
|
font-weight: bold;
|
|
}
|
|
td.slot div.speaker {
|
|
font-style: italic;
|
|
font-size: 8pt;
|
|
}
|
|
td.colspan-1.rowspan-1 {
|
|
background: #FFFCC9;
|
|
}
|
|
td.colspan-1.rowspan-2 {
|
|
background: #FDA;
|
|
}
|
|
#facebox h3 {
|
|
margin-top: 0;
|
|
}
|
|
*/
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block body_outer %}
|
|
<div class="row">
|
|
<div class="span12">
|
|
<h1>Schedule Edit</h1>
|
|
|
|
{% for timetable in days %}
|
|
<h2>{{ timetable.day.date }}</h2>
|
|
|
|
{% include "schedule/_grid.html" %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="modal fade hide" id="slotEditModal">
|
|
<form id="slotEditForm" class="modal-form" method="POST">
|
|
<div class="modal-header">
|
|
<a class="close" data-dismiss="modal">×</a>
|
|
<h3>{% trans "Edit Slot" %}</h3>
|
|
</div>
|
|
<div class="modal-body">
|
|
{% csrf_token %}
|
|
{{ form|as_bootstrap }}
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="submit">Save</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block extra_script %}
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$("a.edit-slot").click(function() {
|
|
$("#slotEditForm").get(0).setAttribute("action", $(this).data("action"));
|
|
$("#slotEditModal").modal("show");
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|