This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
forked from ASKnetCommunity/Training
-
Notifications
You must be signed in to change notification settings - Fork 0
/
training.html
377 lines (350 loc) · 21.3 KB
/
training.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
---
layout: trainingsplan
title: '#ASKtraining'
permalink: /training/
---
<div id="MultipleContainers">
<div id="sidebar">
<div class="header">
<a href="#" id="close-sidebar-mobile"><i class="fas fa-times-circle"></i></a>
</div>
<div class="tags">
<h3><i class="fas fa-filter"></i> Filter modules by tags</h3>
<ul id="wordcloud">
<li id="show-all-modules" class="selected">all</li>
<li>Web&Software</li>
<li>Hardware&Repair</li>
<li>Community&Moderation</li>
<li>Organizational_Development</li>
<li>Media&Art</li>
<li>Data_Security&Research</li>
<li>Open_Source&Knowledge</li>
<li>Sustainability</li>
</ul>
<div class="clearer"></div>
</div>
<div class="clearer"></div>
<ul id="module-list-side-bar" class="module-draggable-list">
{% for module in site.modules %}
{% case module.module.difficulty %}
{% when 1 %}
{% assign module_diff_text = 'easy' %}
{% when 2 %}
{% assign module_diff_text = 'medium' %}
{% when 3 %}
{% assign module_diff_text = 'advanced' %}
{% else %}
{% assign module_diff_text = module.module.difficulty %}
{% endcase %}
{% assign module_cost = 0 %}
{% for actual_res in module.module.res %}
{% for res in site.resources %}
{% if res.resource.id == actual_res %}
{% assign module_cost = module_cost | plus: res.resource.cost %}
{% endif %}
{% endfor %}
{% endfor %}
<li id="{{ module.module.id }}" class="module {{ module.module.tag }}" data-duration="{{ module.module.duration }}" data-participants="{{ module.module.max-participants }}" data-trainer="{{ module.module.min-trainers }}" data-difficulty="{{ module.module.difficulty }}">
<div class="time">
<div style="display:inline;" data-tooltip="move module" data-tooltip-location="right"><i
class="fas fa-hand-pointer"></i>
</div>
</div>
<!--
<div class="time">
<div style="display:inline;" data-tooltip="edit duration" data-tooltip-location="right"><i class="far fa-clock"></i>
</div> <span class='clock-time'>03:00pm - 03:45pm</span>
<div class="edit-time">
<form>
<label>Duration:</label>
<input type="number" class="duration" placeholder="10" min="0" max="59">
<span>minutes</span>
<input class="submit button" type="button" value="Save">
<input class="close" type="button" value="X">
</form>
</div>
</div>
-->
<div class="content">
<div class="options">
<a class="button add-module" src="#">Add Module</a>
<a class="info" href="#" data-tooltip="this feature is coming" data-tooltip-location="left"><i class="fas fa-info-circle"></i></a> <a class="trash" href="#"><i class="fas fa-trash-alt"></i></a>
{% if module.module.url %}<a href="{{ module.module.url }}" class="button" target="_blank">Source <i class="fas fa-external-link-alt"></i></a>{% endif %}
</div>
<h2>{{ module.module.name }}</h2>
<p class="intro">Learning Objective:</p>
{% if module.module.description %}<p class="intro"> {{ module.module.description | markdownify }}</p>{% endif %}
{% if module.module.license %}<p class="intro">License: {{ module.module.license | markdownify }}</p>{% endif %}
<div class="thumbnail"><img src="/assets/img/modules/{{ module.module.pic-url }}" class="thumbnail"></div>
<div class="module-meta">
<div class="module-meta">
<p class="module-duration"><i class="fas fa-hourglass-half"></i>{{ module.module.duration | divided_by:60 }} Hours {{ module.module.duration | modulo:60 }} Minutes</p>
<p class="difficulty-level"><i class="fas fa-graduation-cap"></i>{{ module_diff_text }}</p>
<p class="material-costs"><i class="fas fa-dollar-sign"></i>{{ module_cost }} $ material costs</p>
</div>
</div>
<div class="resources">
<p class="sidebar">Resources included:
{% assign first = true %}
{% assign all_res_output = '' %}
{% for actual_res in module.module.res %}
{% for res in site.resources %}
{% if res.resource.id == actual_res %}
{% if first == false %}
{{ '|' }}
{% endif %}
{% assign first = false %}
<a href="{{ res.resource.url }}" target="_blank">{{ res.resource.name }}</a>
{% endif %}
{% endfor %}
{% endfor %}
</p>
<ul class="resource-list">
{% for actual_res in module.module.res %}
{% for res in site.resources %}
{% if res.resource.id == actual_res %}
{% case res.resource.difficulty %}
{% when 1 %}
{% assign diff_text = 'easy' %}
{% when 2 %}
{% assign diff_text = 'medium' %}
{% when 3 %}
{% assign diff_text = 'advanced' %}
{% else %}
{% assign diff_text = res.resource.difficulty %}
{% endcase %}
<li class="resource" data-duration="{{ res.resource.duration }}" data-name="{{ res.resource.name }}" data-cost="{{ res.resource.cost }}" data-space="" data-internet="" data-power="">
<div class="time">
<div style="display:inline;" data-tooltip="edit duration" data-tooltip-location="right"><i class="far fa-edit"></i></div> <span class='clock-time'>03:45pm - 05:15pm</span>
<div class="edit-time">
<form>
<label>Duration:</label>
<input type="number" class="duration" placeholder="{{ res.resource.duration }}" min="0" max="240">
<span>minutes</span>
<input class="submit button" type="button" value="Save">
<input class="close" type="button" value="X">
</form>
</div>
</div>
<div class="content">
{% if res.resource.url %}<a href="{{ res.resource.url }}" class="button" target="_blank">Source <i class="fas fa-external-link-alt"></i></a>{% endif %}
<div><strong>{{ res.resource.name }}</strong> | {{ diff_text }} | {{ res.resource.duration }} minutes | {{ res.resource.cost }} $</div>
{% if res.resource.description %}
{{ res.resource.description | markdownify }}
{% endif %}
{% if res.resource.license %}
{{ res.resource.license | prepend: "License: " | markdownify }}
{% endif %}
</div>
<div class="clearer"></div>
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
<div class="overlay">
<i class="fas fa-arrows-alt"></i>
</div>
</div>
<div class="clearer"></div>
</li>
{% endfor %}
</ul>
<ul id="break-list-side-bar" class="breaks">
<li class="timebreak" data-duration="15">
<div class="time">
<div style="display:inline;" data-tooltip="edit duration" data-tooltip-location="right"><i class="fas fa-edit"></i></div> <span class='clock-time'>10:20am - 12:30am</span></a>
<div class="edit-time">
<form>
<input type="text" class="title" placeholder="Time Break">
<label>Duration:</label>
<input type="number" class="duration" placeholder="15" min="0" max="59">
<span>minutes</span>
<input class="submit button" type="button" value="Save">
<input class="close" type="button" value="X">
</form>
</div>
</div>
<div class="content">
<div class="options">
<a class="trash" href="#"><i class="fas fa-trash-alt"></i></a>
</div>
<p class="break-title">Time Break</p>
</div>
<div class="clearer"></div>
</li>
<li class="daybreak" data-duration="15" data-start="09:00">
<div class="time">
<div style="display:inline;" data-tooltip="edit duration" data-tooltip-location="right"><i class="fas fa-edit"></i></div> <span class='clock-time'>10:00am - 10:20pm</span></a>
<div class="edit-time">
<form>
<label>Start-Time:</label>
<input type="number" class="hours" placeholder="09" min="1" max="12">
<span>:</span>
<input type="number" class="minutes" placeholder="00" min="0" max="59">
<select class="am-or-pm">
<option value="am">am</option>
<option value="pm">pm</option>
</select>
<label>Duration:</label>
<input type="number" class="duration" placeholder="10" min="0" max="59">
<span>minutes</span>
<input type="text" class="title" placeholder="Introduction into the training">
<input class="submit button" type="button" value="Save">
<input class="close" type="button" value="X">
</form>
</div>
</div>
<div class="content">
<div class="options">
<a class="trash" href="#"><i class="fas fa-trash-alt"></i></a>
</div>
<p class="break-title">Day Break</p>
</div>
<div class="clearer"></div>
</li>
</ul>
<div class="footer">
<a href="#" class="help">?</a>
<p>CC-BY-SA 4.0 #ASKtraining<br /><a href="https://github.com/ASKnetCommunity/Training">view on Github</a> | <a href="http://www.asknet.community">#ASKnet Website</a></p>
</div>
</div>
<div id="content">
<div id="training-plan">
<div class="training-plan-icon"><i class="fas fa-clipboard-list"></i></div>
<div id="edit-title-and-description">
<div class="edit-title-and-description-body">
<div class="edit-title-and-description-header">
<p>Edit training plan details</p>
<a class="close" href="#"><i class="fas fa-times-circle"></i></a>
</div>
<div class="edit-title-and-description-content">
<form>
<input type="text" class="title" placeholder="Title of the training">
<textarea class="description"></textarea>
<input id="submit-title" type="button" value="Save changes">
</form>
</div>
</div>
</div>
<h1 id="training-title">{{ page.title }} - Title of the Training <a id="edit-icon" class="edit" href="#edit-title-and-description">Edit title and description</a></h1>
<p id="training-description">Short description about the training.</p>
<ul id="module-list-training" class="training-list">
<div id="trainingstart" class="trainingstart" data-duration="15" data-start="09:00">
<div class="time">
<div style="display:inline;" data-tooltip="edit start time & title" data-tooltip-location="right"><i class="fas fa-edit"></i></div> <span class='clock-time'>10:00am - 10:20pm</span></a>
<div class="edit-time">
<form>
<input style="margin-bottom:20px;" type="text" class="title" placeholder="Introduction into the training">
<label>Start-Time:</label>
<input type="number" class="hours" placeholder="09" min="1" max="12">
<span>:</span>
<input type="number" class="minutes" placeholder="00" min="0" max="59">
<select class="am-or-pm">
<option value="am">am</option>
<option value="pm">pm</option>
</select>
<div style="clear:both; padding:15px 0; display: block;">
<label>Duration:</label>
<input type="number" class="duration" placeholder="15" min="0" max="240">
<span>minutes</span>
</div>
<input class="submit button" type="button" value="Save">
<input class="close" type="button" value="X">
</form>
</div>
</div>
<div class="content">
<p class="break-title">Introduction into the training</p>
</div>
<div class="clearer"></div>
</div>
<div class="clearer page-break"></div>
</ul>
<div class="clearer page-break"></div>
<div class="add-modules-breaks">
<p style="font-size:45px;"><i class="fas fa-arrow-up"></i></p>
<p>Drag and drop more modules to add</p>
<a href="#" id="add-module-mobile" class="button">+ Module</a>
<a href="#" id="add-timebreak-mobile" class="button">+ Time Break</a>
<a href="#" id="add-daybreak-mobile" class="button">+ Day Brake</a>
</div>
</div>
<div class="summary">
<h2>Summary</h2>
<ul class="duration">
<li class="days"><i class="fas fa-calendar-day"></i><span id="summary-days"></span><span class="label">day(s)</span></li>
<li class="time-icon"><i class="fas fa-edit"></i></li>
<li class="hours"><span class="label">hours</span><span id="summary-hours"></span><span class="label">total time of your training</span></li>
<li class="minutes"><span class="label">minutes</span><span id="summary-minutes"></span></li>
<div class="clearer"></div>
</ul>
<div class="separator"></div>
<ul class="informations">
<li><i class="fas fa-cubes"></i><span id="number-of-modules"></span><span class="label">Number of modules</span></li>
<li><i class="fas fa-users"></i><span id="max-participants"></span><span class="label">Max. participants</span></li>
<li><i class="fas fa-chalkboard-teacher"></i><span id="min-trainers"></span><span class="label">Min. trainers</span></li>
<li><i class="fas fa-graduation-cap"></i><span id="difficulty"></span><span class="label">Difficulty level</span></li>
<div class="separator"></div>
<li><i class="fas fa-cube"></i><span id="number-of-resources"></span><span class="label">Number of resources</span></li>
<li><i class="fas fa-ruler-combined"></i><span id="training-space"></span><span class="label">Minimum training space</span></li>
<li><i class="fas fa-globe-europe"></i><span id="internet-needed"></span><span class="label">Internet needed</span></li>
<li><i class="fas fa-plug"></i><span id="power-needed"></span><span class="label">Power supply needed</span></li>
<div class="clearer"></div>
</ul>
</div>
<div class="resource-overview">
<h2>Resources</h2>
<table id="resource-table">
<tr>
<th class="quantity">Quantity</th>
<th class="resource-name">Name of the resource</th>
<th class="material-costs">Estimated Material Costs</th>
</tr>
<tr>
<td class="quantity"><input></input></td>
<td class="resource-name">LED Lamp</td>
<td class="material-costs">20 $</td>
</tr>
<tr>
<td class="quantity"><input></input></td>
<td class="resource-name">Open Training Guide</td>
<td class="material-costs">5 $</td>
</tr>
<tr>
<td class="quantity"><input></input></td>
<td class="resource-name">Solar Charger</td>
<td class="material-costs">40 $</td>
</tr>
<tr class="result">
<td colspan="2" class="label">Result:</td>
<td class="total-price">65 $</td>
</tr>
</table>
</div>
<div class="attachments">
<h3>Attachments</h3>
<div class="attachment">
<input type="checkbox" id="timetable" name="timetable" value="Timetable" disabled>
<label for="timetable"> Timetable <a href="#"><i class="fas fa-info-circle"></i></a></label>
</div>
<div class="attachment">
<input type="checkbox" id="materialchecklist" name="materialchecklist" value="materialchecklist" disabled>
<label for="materialchecklist"> Material checklist <a href="#"><i class="fas fa-info-circle"></i></a></label>
</div>
<div class="attachment">
<input type="checkbox" id="name-badges" name="name-badges" value="name-badges" disabled>
<label for="name-badges"> Name badges <a href="#"><i class="fas fa-info-circle"></i></a></label>
</div>
<div class="overlay">
<p>This feature is coming</p>
</div>
</div>
<div class="actions">
<button class="button print noPrint" onclick="window.print();"><i class="fas fa-print"></i> Print</button>
<span class="btn-inactive button" data-tooltip="this feature is coming" data-tooltip-location="top"><i class="fas fa-save"></i> Save</span>
<span class="btn-inactive button" data-tooltip="this feature is coming" data-tooltip-location="top"><i class="fas fa-file-download"></i> Download</span>
</div>
</div>
</div>