$newline never

$# SPDX-FileCopyrightText: 2022 Sarah Vaupel <sarah.vaupel@ifi.lmu.de>,Steffen Jost <jost@tcs.ifi.lmu.de>
$#
$# SPDX-License-Identifier: AGPL-3.0-or-later

<dl .deflist>
  $maybe descr <- qualificationDescription quali
    <dt .deflist__dt>_{MsgQualificationDescription}
    <dd .deflist__dd>
      <div>
        #{descr}
  $maybe dvalid <- qualificationValidDuration quali
    <dt .deflist__dt>_{MsgQualificationValidDuration}
    <dd .deflist__dd>_{MsgMonths (fromIntegral dvalid)}

  $maybe daudit <- qualificationAuditDuration quali
    <dt .deflist__dt>_{MsgQualificationAuditDuration}
    <dd .deflist__dd>_{MsgMonths (fromIntegral daudit)}      

  $maybe drefresh <- qualificationRefreshWithin quali
    <dt .deflist__dt>_{MsgQualificationRefreshWithin} ^{iconTooltip (msg2widget MsgQualificationRefreshWithinTooltip) Nothing True}
    <dd .deflist__dd>
      $with drm <- cdMonths drefresh
        $with drd <- cdDays drefresh
          $if drm > 0
            _{MsgMonths (fromIntegral drm)}
            $if drd > 0
              , #
          $if drd > 0
            _{MsgDays   (fromIntegral drd)}

  <dt .deflist__dt>_{MsgQualificationElearningStart}
  <dd .deflist__dd>#{boolSymbol (qualificationElearningStart quali)}
    $if (qualificationElearningStart quali) && isNothing (qualificationRefreshWithin quali)
      <p>
        #{icon IconNotificationError}
        _{MsgLmsErrorNoRefreshElearning}
  
^{lmsTable}

