fradrive/templates/table/colonnade.hamlet
2020-06-10 09:42:39 +02:00

24 lines
661 B
Plaintext

$newline never
<div table-utils>
<div .scrolltable .scrolltable--bordered>
<table *{dbsAttrs'}>
$maybe wdgt <- wHeaders
<thead>
^{wdgt}
$nothing
<tbody>
$if null wRows && (dbsEmptyStyle == DBESHeading)
<tr .table__row>
<td .table__td colspan=#{show columnCount}>
_{dbsEmptyMessage}
$else
$forall (n, row) <- wRows
<tr .table__row>
$if numberColumn
<td .table__td .table__td--number>
<div .table__td-content>
$if dbstmShowNumber n
#{n}
$forall widget <- row
^{widget}