This repository has been archived by the owner on Dec 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclasses.html
57 lines (57 loc) · 2.95 KB
/
classes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href = "assets/css/bootstrap.min.css">
<link rel="stylesheet" href = "assets/css/font-awesome.min.css">
<link rel = "stylesheet" href = "css/global.css">
<script src = "assets/js/jquery.js" onload = "window.$ = window.jQuery = module.exports;"></script>
<script src = "assets/js/bootstrap.js"></script>
<script src = "assets/js/vue.js"></script>
<script src = "js/globals.js"></script>
<style type = "text/css">
textarea {
height: 25vh !important;
}
</style>
<title>Editor</title>
</head>
<body>
<div id = "main">
<navbar preview-page = "academics"></navbar>
<div class = "container-fluid">
<json-form page = "academics">
<template scope = "parent">
<h3>Select Department</h3>
<select v-model = "selectedDepartment">
<option v-for = "department, index in parent.rootJson.departments.departments" :value = "index" :selected = "index == selectedDepartment">{{department.name}}</option>
</select>
<br />
<br />
<json-repeat name = "Classes" :path = "`['departments']['departments'][${selectedDepartment}]['courses']`">
<template scope = "parent">
<json-string name = "Name" :path = "`['departments']['departments'][${selectedDepartment}]['courses'][${parent.index}]['name']`"></json-string>
<json-string name = "Teacher" :path = "`['departments']['departments'][${selectedDepartment}]['courses'][${parent.index}]['teacher']`"></json-string>
<json-string name = "Teacher Email" :path = "`['departments']['departments'][${selectedDepartment}]['courses'][${parent.index}]['email']`"></json-string>
<json-string name = "Description" :path = "`['departments']['departments'][${selectedDepartment}]['courses'][${parent.index}]['description']`" big = true></json-string>
<json-string name = "Syllabus Link" :path = "`['departments']['departments'][${selectedDepartment}]['courses'][${parent.index}]['syllabus']`"></json-string>
<json-string name = "Assignments Link" :path = "`['departments']['departments'][${selectedDepartment}]['courses'][${parent.index}]['assignments']`"></json-string>
<json-string name = "Teacher Website Link" :path = "`['departments']['departments'][${selectedDepartment}]['courses'][${parent.index}]['teacherWebsite']`"></json-string>
<json-string name = "More Information Link" :path = "`['departments']['departments'][${selectedDepartment}]['courses'][${parent.index}]['moreInformation']`"></json-string>
<json-checkbox name = "AP" :path = "`['departments']['departments'][${selectedDepartment}]['courses'][${parent.index}]['isAP']`"></json-checkbox>
<json-checkbox name = "ECE" :path = "`['departments']['departments'][${selectedDepartment}]['courses'][${parent.index}]['isECE']`"></json-checkbox>
</template>
</json-repeat>
</template>
</json-form>
</div>
</div>
<script defer>
new Vue({
el: "#main",
data: {
"selectedDepartment": 0
}
});
</script>
</body>
</html>