2016-09-03 09:22:47 +00:00
|
|
|
{% extends "symposion/schedule/base.html" %}
|
2015-10-16 17:53:02 +00:00
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block head_title %}Conference Schedule Edit{% endblock %}
|
|
|
|
|
|
|
|
{% block body_class %}full{% endblock %}
|
|
|
|
|
|
|
|
{% block right %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extra_head %}
|
|
|
|
<link rel="stylesheet" href="{{ STATIC_URL }}chosen/chosen.css" />
|
|
|
|
{% endblock %}
|
|
|
|
|
2016-09-03 09:22:47 +00:00
|
|
|
{% block content %}
|
|
|
|
<div class="l-content-page">
|
|
|
|
<div class="l-content-page--richtext">
|
|
|
|
<div class="rich-text">
|
|
|
|
|
2015-10-16 17:53:02 +00:00
|
|
|
<h1>Schedule Edit</h1>
|
|
|
|
|
|
|
|
{% for timetable in days %}
|
|
|
|
<h2>{{ timetable.day.date }}</h2>
|
|
|
|
{% include "symposion/schedule/_edit_grid.html" %}
|
|
|
|
{% endfor %}
|
2017-04-16 06:01:57 +00:00
|
|
|
<form class="form-horizontal" id="schedule-builder" action="." method="post" enctype="multipart/form-data">{% csrf_token %}
|
2015-10-16 17:53:02 +00:00
|
|
|
{{ form.as_p }}
|
|
|
|
<input type="submit" name="submit" value="Submit" />
|
|
|
|
<input type="submit" id="delete" name="delete" value="Delete Schedule" />
|
|
|
|
</form>
|
2016-11-03 12:46:03 +00:00
|
|
|
<div class="modal fade in" style="background-color:#fff;" id="slotEditModal"></div>
|
2016-09-03 09:22:47 +00:00
|
|
|
</div></div></div>
|
2015-10-16 17:53:02 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extra_script %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
$("a.edit-slot").click(function(e) {
|
|
|
|
$("#slotEditModal").load($(this).data("action"), function() {
|
|
|
|
$("#slotEditModal").modal("show");
|
|
|
|
});
|
|
|
|
e.preventDefault();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$(function() {
|
|
|
|
//submit event handler
|
|
|
|
$("form#schedule-builder :submit").click(function(e) {
|
|
|
|
var name = this.name;
|
|
|
|
if(name == 'delete') {
|
|
|
|
if (!confirm("Are you sure you want to delete the schedule?"))
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|