2012-08-30 07:14:46 +00:00
|
|
|
{% extends "site_base.html" %}
|
|
|
|
|
2012-08-31 04:57:25 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% load bootstrap_tags %}
|
|
|
|
|
2012-08-30 07:14:46 +00:00
|
|
|
{% block head_title %}Conference Schedule Edit{% endblock %}
|
|
|
|
|
|
|
|
{% block body_class %}full{% endblock %}
|
|
|
|
|
|
|
|
{% block right %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extra_head %}
|
|
|
|
<style>
|
|
|
|
td {
|
2012-08-30 16:26:41 +00:00
|
|
|
font-size: 9pt;
|
2012-08-30 07:14:46 +00:00
|
|
|
}
|
|
|
|
td.slot {
|
|
|
|
text-align: center;
|
2012-08-30 16:26:41 +00:00
|
|
|
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;
|
2012-08-30 07:14:46 +00:00
|
|
|
}
|
2012-08-30 16:26:41 +00:00
|
|
|
.schedule-controls a:hover {
|
|
|
|
color: #999;
|
|
|
|
}
|
2012-08-31 05:52:04 +00:00
|
|
|
td.slot .title {
|
2012-08-30 07:14:46 +00:00
|
|
|
font-weight: bold;
|
2012-08-31 05:52:04 +00:00
|
|
|
line-height: 10pt;
|
2012-08-30 07:14:46 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
2012-08-30 16:17:10 +00:00
|
|
|
{% block body_outer %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="span12">
|
|
|
|
<h1>Schedule Edit</h1>
|
2012-08-30 07:14:46 +00:00
|
|
|
|
2012-08-30 16:17:10 +00:00
|
|
|
{% for timetable in days %}
|
|
|
|
<h2>{{ timetable.day.date }}</h2>
|
|
|
|
|
|
|
|
{% include "schedule/_grid.html" %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2012-08-31 04:57:25 +00:00
|
|
|
|
2012-08-31 05:50:16 +00:00
|
|
|
<div class="modal fade hide in" id="slotEditModal">
|
2012-08-31 04:57:25 +00:00
|
|
|
<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">
|
2012-08-31 05:00:43 +00:00
|
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
2012-08-31 04:57:25 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2012-08-30 16:17:10 +00:00
|
|
|
</div>
|
2012-08-30 07:14:46 +00:00
|
|
|
{% endblock %}
|
2012-08-31 04:57:25 +00:00
|
|
|
|
|
|
|
{% 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 %}
|