update course.hamlet to use custom th and td-classes

This commit is contained in:
Felix Hamann 2018-07-01 15:34:17 +02:00
parent 1ed4670f54
commit 50f088c9ca

View File

@ -3,37 +3,42 @@
<table .table.table--striped.table--hover.table--vertical> <table .table.table--striped.table--hover.table--vertical>
$maybe school <- schoolMB $maybe school <- schoolMB
<tr .table__row> <tr .table__row>
<th #school>Fakultät/Institut <th #school .table__th>Fakultät/Institut
<td> <td .table__td>
#{schoolName school} <div.table__td-content>
#{schoolName school}
$maybe descr <- courseDescription course $maybe descr <- courseDescription course
<tr .table__row> <tr .table__row>
<th #description>Beschreibung <th #description .table__th>Beschreibung
<td> <td .table__td>
#{descr} <div.table__td-content>
#{descr}
$maybe link <- courseLinkExternal course $maybe link <- courseLinkExternal course
<tr .table__row> <tr .table__row>
<th #website>Website <th #website .table__th>Website
<td> <td .table__td>
<a href=#{link} target="_blank" rel="noopener" title="Website des Kurses">#{link} <div.table__td-content>
<a href=#{link} target="_blank" rel="noopener" title="Website des Kurses">#{link}
<tr .table__row> <tr .table__row>
<th #participants>Teilnehmer <th #participants .table__th>Teilnehmer
<td> <td .table__td>
#{participants} <div.table__td-content>
$maybe capacity <- courseCapacity course #{participants}
\ von #{capacity} $maybe capacity <- courseCapacity course
\ von #{capacity}
$maybe regFrom <- courseRegisterFrom course $maybe regFrom <- courseRegisterFrom course
<tr .table__row> <tr .table__row>
<th #registration>Anmeldezeitraum <th #registration .table__th>Anmeldezeitraum
<td> <td .table__td>
Ab #{formatTimeGerWD regFrom} <div.table__td-content>
$maybe regTo <- courseRegisterTo course Ab #{formatTimeGerWD regFrom}
\ bis #{formatTimeGerWD regTo} $maybe regTo <- courseRegisterTo course
\ bis #{formatTimeGerWD regTo}
$if registrationOpen $if registrationOpen
<tr .table__row> <tr .table__row>
<th> <th .table__th>
<td> <td .table__td>
<div .course__registration.container> <div .table__td-content.course__registration.container>
<form method=post action=@{CourseR tid csh CRegisterR} enctype=#{regEnctype}> <form method=post action=@{CourseR tid csh CRegisterR} enctype=#{regEnctype}>
$# regWidget is defined through templates/widgets/registerForm $# regWidget is defined through templates/widgets/registerForm
^{regWidget} ^{regWidget}