fradrive/templates/widgets/user-rights-form/user-rights-form.hamlet
Gregor Kleen 76f8da52e0 feat(users): generalise UserLecturer and UserAdmin to UserFunction
Closes #320
BREAKING CHANGE: Remove UserLecturer and UserAdmin
2019-08-28 09:46:03 +02:00

20 lines
585 B
Plaintext

$newline never
#{csrf}
<div .scrolltable>
<table .table .table--striped .table--hover>
<tr .table__row .table__row--head>
<th>
$# empty cell
$forall function <- allFunctions
<th .table__th>
_{function}
$forall school <- schools
$with Entity sid School{schoolName} <- school
<tr .table__row>
<th .table__th>
#{schoolName}
$forall function <- allFunctions
<td .table__td>
$maybe (_, boxView) <- Map.lookup (function, sid) boxRights
^{fvInput boxView}