-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
173 lines (162 loc) · 7.46 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="./style.css" rel="stylesheet" type="text/css" />
<title>Курсов проект</title>
</head>
<body>
<nav class="navbar">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="./login.html">Вход в системата</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="./index.html">Курсове</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./display.html">Визуализация на програма</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./dependency.html">Визуализация на зависимости</a>
</li>
</ul>
</nav>
<section id="courses-body">
</section>
<section class="row">
<button id="export-timetable" class="button export-button">Експорт към JSON</button>
<input id="file-input" type="file" name="name" class="button import-button" placeholder="Импорт от JSON"></input>
</section>
<section class="row" id="create-course-title" type="button">
Покажи форма за създаване на курс
</section>
<section class="flex-box centered">
<form id="course-form" class="form-style">
<table>
<tr>
<td class="label">
<label for="titleInput">Предмет</label>
</td>
<td class="inputBox">
<input type="text" id="titleInput" pattern="^[А-Яа-я 0-9]+$" required>
</td>
</tr>
<tr>
<td class="label">
<label for="">Преподавател</label>
</td>
<td class="inputBox">
<input type="text" id="teacher" pattern="^[А-Яа-яA-Za-z 0-9]+$" required>
</td>
</tr>
<tr>
<td class="label">
<label for="">Локация</label>
</td>
<td class="inputBox">
<input type="text" id="location" required>
</td>
</tr>
<tr>
<td></td>
<td>
<section id="startTimeHelp" class="help">Може да се въведе например име на зала на провеждане или линк.</section>
</td>
</tr>
<tr>
<td class="label">
<label for="descriptionInput">Описание</label>
</td>
<td class="inputBox">
<textarea id="descriptionInput" rows="3" class="field-textarea" required></textarea>
</td>
</tr>
<tr>
<td class="label">
<label for="day">Ден на провеждане</label>
</td>
<td class="inputBox">
<select id="day" name="dayId" class="field-select">
<option value="Понеделник">Понеделник</option>
<option value="Вторник">Вторник</option>
<option value="Сряда">Сряда</option>
<option value="Четвъртък">Четвъртък</option>
<option value="Петък">Петък</option>
</select>
</td>
</tr>
<tr>
<td class="label">
<label for="startTimeInput">Час на стартиране</label>
</td>
<td class="inputBox">
<input type="text" id="startTimeInput" aria-describedby="startTimeHelp" pattern="^\w\w:00$" required>
</td>
</tr>
<tr>
<td></td>
<td>
<section id="startTimeHelp" class="help">Напишете час на стартиране във формат HH:mm. Часът може да бъде само кръгъл час. Пример: 08:00.</section>
</td>
</tr>
<tr>
<td class="label">
<label for="endTimeInput">Час на приключване</label>
</td>
<td class="inputBox">
<input type="text" id="endTimeInput" aria-describedby="endTimeHelp" pattern="^\w\w:00$" required>
</td>
</tr>
<tr>
<td></td>
<td>
<section id="endTimeHelp" class="help">Напишете час на приключване във формат HH:mm. Часът може да бъде само кръгъл час. Пример: 15:00.</section>
</td>
</tr>
<tr>
<td class="label">
<label for="dependenciesInput">Предпоставки</label>
</td>
<td class="inputBox">
<input type="text" id="dependenciesInput" aria-describedby="dependenciesHelp" pattern="^[А-Яа-я 0-9;:]+$">
</td>
</tr>
<tr>
<td></td>
<td>
<section id="dependenciesHelp" class="help">
Напиши курсовете, които са предпоставки за този курс във формат: "<име на Курс 1>:<сила на зависимост>;<име на Курс 2>:<сила на зависимост>;..."
<br>
Силата може да е S - за силна зависимост и W - за слаба.
</section>
</td>
</tr>
<tr>
<td class="label">
<label for="specialtyInput">Специалност</label>
</td>
<td class="inputBox">
<input type="text" id="specialtyInput" aria-describedby="dependenciesHelp" pattern="^[A-Za-z 0-9;]+$">
</td>
</tr>
<tr>
<td></td>
<td>
<section id="specialtyHelp" class="help">Напиши специалността на курса във формат: SI, KN...</section>
</td>
</tr>
<tr>
<td class="label">
</td>
<td class="inputBox">
<button id="submitBtn" type="submit">Добави</button>
</td>
</tr>
</table>
</form>
</section>
<script src="./index.js"></script>
</body>
</html>