-
Notifications
You must be signed in to change notification settings - Fork 1
/
courseManagement.html
73 lines (67 loc) · 1.84 KB
/
courseManagement.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
<head>
<title>courseManagement</title>
</head>
<body>
<div class="container">
{{> loginButtons}}
{{#if currentUser}}
{{> courses}}
{{/if}}
</div>
</body>
<template name="courses">
<h1>Courses</h1>
<table class="table table-striped">
<thead>
<tr>
<th>Module number</th>
<th>Title</th>
<th>ECTS</th>
<th>Grade</th>
<th> </th>
</tr>
</thead>
<tbody>
{{#each courses}}
<tr>
<td>{{number}}</td>
<td>{{title}}</td>
<td>{{credits}}</td>
<td>{{grade}}</td>
<td><a href="#" title="delete"><span class="glyphicon glyphicon-trash delete"></span></a></td>
</tr>
{{/each}}
</tbody>
</table>
<form id="newCourse" class="form-inline">
<div class="form-group">
<label for="number" class="sr-only">Module number</label>
<input id="number" class="form-control" type="text" placeholder="module number...">
</div>
<div class="form-group">
<label for="title" class="sr-only">Title</label>
<input id="title" class="form-control" type="text" placeholder="title...">
</div>
<div class="form-group">
<label for="credits" class="sr-only">Credits</label>
<input id="credits" class="form-control" type="number" placeholder="credits...">
</div>
<div class="form-group">
<label for="grade" class="sr-only">Grade</label>
<select id="grade" class="form-control">
<option value="1.0">1.0</option>
<option value="1.3">1.3</option>
<option value="1.7">1.7</option>
<option value="2.0">2.0</option>
<option value="2.3">2.3</option>
<option value="2.7">2.7</option>
<option value="3.0">3.0</option>
<option value="3.3">3.3</option>
<option value="3.7">3.7</option>
<option value="4.0">4.0</option>
<option value="5.0">5.0</option>
</select>
</div>
<button class="btn btn-primary" type="submit">Save</button>
</form>
</template>