File diff d9e8a72d140c → b56ca32259c8
pinaxcon/templates/symposion/schedule/schedule_edit.html
Show inline comments
 
{% extends "site_base.html" %}
 
{% extends "symposion/schedule/base.html" %}
 

	
 
{% load i18n %}
 

	
...
 
@@ -24,6 +24,7 @@
 
      <h2 class="my-4">
 
        {{ timetable.day.date|date:"l" }}, {{ timetable.day.date }}
 
      </h2>
 
      <p class="timezone-info small">Conference times are in {{ settings.LCA_START|date:'T' }} (UTC{{ settings.LCA_START|date:'O' }}).</p>
 
      <div class="table-responsive d-none d-md-block">
 
        {% include "symposion/schedule/_grid.html" with edit_schedule=True %}
 
      </div>
...
 
@@ -37,28 +38,3 @@
 
  <div class="modal fade" id="slotEditModal"></div>
 
{% 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 %}