-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
127 lines (108 loc) · 3.98 KB
/
index.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html>
<head>
<title>Teacher Class Tool</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="//cdn.datatables.net/1.10.3/css/jquery.dataTables.min.css">
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="//cdn.datatables.net/1.10.7/js/jquery.dataTables.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/d3.v3.min.js"></script>
<script src="js/utf2ascii.js"></script>
<script src="js/ohmage.js"></script>
<script src="index.js"></script>
<style>
.btn {
min-width: 80px;
}
</style>
</head>
<body>
<!-- Begin page content -->
<div class="container">
<div class="row">
<div class="page-header">
<button id="new_class_button" data-toggle="modal" data-target="#myModal" class="pull-right btn btn-primary"><span class="glyphicon glyphicon-file"></span> Create New Class</button>
<h1>Class Manager <small id="subtitle"></small></h1>
</div>
<div>
<p><i>Select a class, or create a new one, to get started. Visit the <a target="_blank" href="https://wiki.mobilizingcs.org/app/web/teacher">wiki help page</a> for more detailed instructions.</i></p>
<div class="col-md-10 col-md-offset-1" id="errordiv"></div>
<div id="class-select">
<table class="table table-striped table-hover" id="classtable">
<thead>
<tr>
<th>Name</th>
<th>URN</th>
<th>Students</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td> - </td>
<td> - </td>
<td> - </td>
<td> - </td>
<td> - </td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Create New Class</h4>
</div>
<div class="modal-body">
<div id="class-create">
<form>
<div class="form-group">
<label class="control-label" for="inputQuarter">Semester</label>
<select class="form-control" id="inputQuarter"></select>
</div>
<div class="form-group">
<label class="control-label" for="inputPeriod">Period</label>
<select class="form-control" id="inputPeriod">
<option value="P1">P1</option>
<option value="P2">P2</option>
<option value="P3">P3</option>
<option value="P4">P4</option>
<option value="P5">P5</option>
<option value="P6">P6</option>
<option value="P7">P7</option>
<option value="P8">P8</option>
</select>
</div>
<div class="form-group" id="subjectfieldgroup">
<label class="control-label" for="inputSubject">Subject</label>
<select class="form-control" id="inputSubject">
<option value disabled selected> -- select a subject -- </option>
<option value="math">Math</option>
<option value="science">Science</option>
<option value="ecs">ECS</option>
<option value="ids">IDS</option>
</select>
<p class="help-block" id="subjectCampaignList"></p>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button id="createbutton" class="btn btn-success"><i class="glyphicon glyphicon-ok"></i> Create Class</button>
</div>
</div>
</div>
</div>
</body>
</html>