feat(course-events): add HideColumns for course events

This commit is contained in:
Sarah Vaupel 2020-03-31 14:56:31 +02:00
parent c8904d10b6
commit 1138f9e327

View File

@ -203,20 +203,21 @@ $# $if NTop (Just 0) < NTop (courseCapacity course)
$if null events $if null events
\ #{iconInvisible} \ #{iconInvisible}
<dd .deflist__dd> <dd .deflist__dd>
<div uw-hide-columns="events">
<div .scrolltable .scrolltable--bordered> <div .scrolltable .scrolltable--bordered>
<table .table .table--striped .table--hover> <table .table .table--striped .table--hover>
<thead> <thead>
<tr .table__row .table__row--head> <tr .table__row .table__row--head>
<th .table__th> <th .table__th uw-hide-column-header="type">
_{MsgCourseEventType} _{MsgCourseEventType}
<th .table__th> <th .table__th uw-hide-column-header="time">
_{MsgCourseEventTime} _{MsgCourseEventTime}
<th .table__th> <th .table__th uw-hide-column-header="room">
_{MsgCourseEventRoom} _{MsgCourseEventRoom}
<th .table__th> <th .table__th uw-hide-column-header="note">
_{MsgCourseEventNote} _{MsgCourseEventNote}
$if mayCreateEvents $if mayCreateEvents
<th .table__th> <th .table__th uw-hide-column-header="actions">
_{MsgCourseEventActions} _{MsgCourseEventActions}
\ #{iconInvisible} \ #{iconInvisible}
<tbody> <tbody>
@ -247,6 +248,7 @@ $# $if NTop (Just 0) < NTop (courseCapacity course)
<td> <td>
<td> <td>
<td> <td>
<td>
<td .table__td> <td .table__td>
<div .table__td-content> <div .table__td-content>
^{modal (i18n MsgCourseEventsActionCreate) (Left (SomeRoute (CourseR tid ssh csh CEventsNewR)))} ^{modal (i18n MsgCourseEventsActionCreate) (Left (SomeRoute (CourseR tid ssh csh CEventsNewR)))}