aboutsummaryrefslogtreecommitdiffstats
path: root/templates/staff
diff options
context:
space:
mode:
Diffstat (limited to 'templates/staff')
-rw-r--r--templates/staff/jams/edit_ending.html3
-rw-r--r--templates/staff/jams/edit_info.html3
-rw-r--r--templates/staff/jams/forms/preamble_edit.html3
-rw-r--r--templates/staff/jams/forms/questions_edit.html3
-rw-r--r--templates/staff/jams/forms/questions_view.html5
-rw-r--r--templates/staff/jams/forms/view.html5
-rw-r--r--templates/staff/jams/index.html5
-rw-r--r--templates/staff/jams/infractions/view.html5
-rw-r--r--templates/staff/jams/participants.html5
-rw-r--r--templates/staff/tables/edit.html3
10 files changed, 5 insertions, 35 deletions
diff --git a/templates/staff/jams/edit_ending.html b/templates/staff/jams/edit_ending.html
index 82d46978..4e70776e 100644
--- a/templates/staff/jams/edit_ending.html
+++ b/templates/staff/jams/edit_ending.html
@@ -4,9 +4,6 @@
{% block og_description %}Edit the ending comments for a code jam{% endblock %}
{% block page_classes %}uses-rst{% endblock %}
-{% block extra_head %}
-<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.3.3/ace.js" type="application/javascript"></script>
-{% endblock %}
{% block content %}
<div class="uk-container uk-container-small uk-section">
diff --git a/templates/staff/jams/edit_info.html b/templates/staff/jams/edit_info.html
index e7abeb54..471f7aaf 100644
--- a/templates/staff/jams/edit_info.html
+++ b/templates/staff/jams/edit_info.html
@@ -4,9 +4,6 @@
{% block og_description %}Edit the basic info for a code jam{% endblock %}
{% block page_classes %}uses-rst{% endblock %}
-{% block extra_head %}
-<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.3.3/ace.js" type="application/javascript"></script>
-{% endblock %}
{% block content %}
<div class="uk-container uk-container-small uk-section">
diff --git a/templates/staff/jams/forms/preamble_edit.html b/templates/staff/jams/forms/preamble_edit.html
index 4108481b..c2245b35 100644
--- a/templates/staff/jams/forms/preamble_edit.html
+++ b/templates/staff/jams/forms/preamble_edit.html
@@ -3,9 +3,6 @@
{% block og_title %}Staff | Forms | Edit Preamble{% endblock %}
{% block page_classes %}uses-rst{% endblock %}
-{% block extra_head %}
-<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.3.3/ace.js" type="application/javascript"></script>
-{% endblock %}
{% block content %}
<div class="uk-container uk-container-small uk-section">
diff --git a/templates/staff/jams/forms/questions_edit.html b/templates/staff/jams/forms/questions_edit.html
index d029cc33..d6fe082c 100644
--- a/templates/staff/jams/forms/questions_edit.html
+++ b/templates/staff/jams/forms/questions_edit.html
@@ -2,9 +2,6 @@
{% block title %}Staff | Jams | Question Edit{% endblock %}
{% block og_title %}Staff | Jams | Question Edit{% endblock %}
{% block og_description %}Edit a question{% endblock %}
-{% block extra_head %}
- <script src="{{ static_file('js/jams.js') }}"></script>
-{% endblock %}
{% block content %}
<div class="uk-container uk-container-small uk-section">
<h1>Question Edit</h1>
diff --git a/templates/staff/jams/forms/questions_view.html b/templates/staff/jams/forms/questions_view.html
index bebdde40..f8eeea40 100644
--- a/templates/staff/jams/forms/questions_view.html
+++ b/templates/staff/jams/forms/questions_view.html
@@ -2,9 +2,6 @@
{% block title %}Staff | Jams | Questions{% endblock %}
{% block og_title %}Staff | Jams | Questions{% endblock %}
{% block og_description %}Manage all created questions{% endblock %}
-{% block extra_head %}
- <script src="{{ static_file('js/jams.js') }}"></script>
-{% endblock %}
{% block content %}
<div class="uk-container uk-container-small uk-section">
<h1>Questions List</h1>
@@ -215,7 +212,7 @@
<script type="application/javascript">
"use strict";
- const actions = new Actions("{{ url_for("staff.jams.action") }}", "{{ csrf_token() }}");
+ const actions = new JamActions("{{ url_for("staff.jams.action") }}", "{{ csrf_token() }}");
const table_body = document.getElementById("table-body");
const table = document.getElementById("table");
const no_questions_paragraph = document.getElementById("no-questions-paragraph");
diff --git a/templates/staff/jams/forms/view.html b/templates/staff/jams/forms/view.html
index 83ff1ae4..49ea672d 100644
--- a/templates/staff/jams/forms/view.html
+++ b/templates/staff/jams/forms/view.html
@@ -2,9 +2,6 @@
{% block title %}Staff | Jams | Form{% endblock %}
{% block og_title %}Staff | Jams | Form{% endblock %}
{% block og_description %}Manage the form for a code jam{% endblock %}
-{% block extra_head %}
- <script src="{{ static_file('js/jams.js') }}"></script>
-{% endblock %}
{% block content %}
<div class="uk-container uk-container-small uk-section">
<h1>Application Form {{ jam.number }}: {{ jam.title }}</h1>
@@ -243,7 +240,7 @@
<script type="application/javascript">
"use strict";
- const actions = new Actions("{{ url_for("staff.jams.action") }}", "{{ csrf_token() }}");
+ const actions = new JamActions("{{ url_for("staff.jams.action") }}", "{{ csrf_token() }}");
const form = parseInt("{{ jam.number }}");
const table_body = document.getElementById("table-body");
const table = document.getElementById("table");
diff --git a/templates/staff/jams/index.html b/templates/staff/jams/index.html
index 1d7beeb8..bb6a3c21 100644
--- a/templates/staff/jams/index.html
+++ b/templates/staff/jams/index.html
@@ -1,9 +1,6 @@
{% extends "main/base.html" %}
{% block title %}Staff | Code Jams{% endblock %}
{% block og_title %}Staff | Code Jams{% endblock %}
-{% block extra_head %}
- <script src="{{ static_file('js/jams.js') }}"></script>
-{% endblock %}
{% block content %}
<div class="uk-container uk-container-small uk-section">
<h1>Code Jams</h1>
@@ -159,7 +156,7 @@
<script type="application/javascript">
"use strict";
- const actions = new Actions("{{ url_for("staff.jams.action") }}", "{{ csrf_token() }}");
+ const actions = new JamActions("{{ url_for("staff.jams.action") }}", "{{ csrf_token() }}");
// State modal objects
const state_modal = UIkit.modal(document.getElementById("state-modal"));
diff --git a/templates/staff/jams/infractions/view.html b/templates/staff/jams/infractions/view.html
index 00374632..a4391c53 100644
--- a/templates/staff/jams/infractions/view.html
+++ b/templates/staff/jams/infractions/view.html
@@ -2,9 +2,6 @@
{% block title %}Staff | Jams | Infractions{% endblock %}
{% block og_title %}Staff | Jams | Infractions{% endblock %}
{% block og_description %}Manage infractions{% endblock %}
-{% block extra_head %}
- <script src="{{ static_file('js/jams.js') }}"></script>
-{% endblock %}
{% block content %}
<div class="uk-container uk-container-small uk-section">
<h1>Infractions</h1>
@@ -125,7 +122,7 @@
<script type="application/javascript">
"use strict";
- const actions = new Actions("{{ url_for("staff.jams.action") }}", "{{ csrf_token() }}");
+ const actions = new JamActions("{{ url_for("staff.jams.action") }}", "{{ csrf_token() }}");
const table_body = document.getElementById("table-body");
const table = document.getElementById("table");
diff --git a/templates/staff/jams/participants.html b/templates/staff/jams/participants.html
index 8dc9ce03..978088bb 100644
--- a/templates/staff/jams/participants.html
+++ b/templates/staff/jams/participants.html
@@ -2,9 +2,6 @@
{% block title %}Staff | Jams | Participants{% endblock %}
{% block og_title %}Staff | Jams | Participants{% endblock %}
{% block og_description %}Listing of participant applications and their status{% endblock %}
-{% block extra_head %}
- <script src="{{ static_file('js/jams.js') }}"></script>
-{% endblock %}
{% block content %}
{% macro card_header(app) %}
<div>
@@ -78,7 +75,7 @@
</div>
<script>
- const actions = new Actions("{{ url_for("staff.jams.action") }}", "{{ csrf_token() }}");
+ const actions = new JamActions("{{ url_for("staff.jams.action") }}", "{{ csrf_token() }}");
for (let elem of document.getElementsByClassName("expand-button")) {
elem.onclick = function(result, data) {
diff --git a/templates/staff/tables/edit.html b/templates/staff/tables/edit.html
index 0c6492e5..421f6c45 100644
--- a/templates/staff/tables/edit.html
+++ b/templates/staff/tables/edit.html
@@ -2,9 +2,6 @@
{% block title %}Staff | Home{% endblock %}
{% block og_title %}Staff | Home{% endblock %}
{% block og_description %}Landing page for the staff management area{% endblock %}
-{% block extra_head %}
-<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.3.3/ace.js" type="application/javascript"></script>
-{% endblock %}
{% block content %}
<div class="uk-container uk-section uk-container-small">
{% if message %}