fradrive/templates/course.hamlet
2018-06-24 22:17:49 +02:00

55 lines
1.6 KiB
Plaintext

<div .container>
<table>
$maybe school <- schoolMB
<tr>
<th #school>Fakultät/Institut
<td>
#{schoolName school}
$maybe descr <- courseDescription course
<tr>
<th #description>Beschreibung
<td>
#{descr}
$maybe link <- courseLinkExternal course
<tr>
<th #website>Website
<td>
<a href=#{link} target="_blank" rel="noopener" title="Website des Kurses">#{link}
<tr>
<th #participants>Teilnehmer
<td>
#{participants}
$maybe capacity <- courseCapacity course
\ von #{capacity}
<tr>
<th #registration>Anmeldezeitraum
<td>
$maybe regFrom <- courseRegisterFrom course
#{formatTimeGerWD regFrom}
$maybe regTo <- courseRegisterTo course
\ bis #{formatTimeGerWD regTo}
<tr>
<th>
<td>
$# if allowed to register
<div .course__registration.container>
<button class="btn btn-primary">
<a href="#">TODO: Kurs-Anmeldung
$# <form method=post action=@{CourseR tid csh CShow} enctype=#{regEnctype}>
$# ^{regWidget}
<div .container>
<div .tab-group>
<div .tab data-tab-name="Übungsblätter">
^{modal "#modal-toggler__new-sheet" Nothing}
<h3 .tab-title>Übungsblätter
<h1>TODO: Sortierbare Tabelle der bisherigen Übungsblätter
<div .tab data-tab-name="Übungsgruppen">
<h3 .tab-title>Übungsgruppen
<h1>TODO: Sortierbare Tabelle der Übungsgruppen
<div .tab data-tab-name="Klausuren">
<h3 .tab-title>Klausuren
<div>...