$newline never
#{fragment}
$case formLayout
  $of FormDBTablePagesize
    $forall view <- fieldViews
      <label .form-group__label.label-pagesize for=#{fvId view}>#{fvLabel view}
      ^{fvInput view}
  $of _
    $forall view <- fieldViews
      $# TODO: add class 'form-group--submit' if this is the submit-button view
      <div .form-group :fvRequired view:.form-group--required :not $ fvRequired view:.form-group--optional :isJust $ fvErrors view:.form-group--has-error>
        $if not (Blaze.null $ fvLabel view)
          <label .form-group__label for=#{fvId view}>
            #{fvLabel view}
            $maybe tooltip <- fvTooltip view
              <div .js-tooltip>
                <div .tooltip__handle>
                <div .tooltip__content>^{tooltip}
        <div .form-group__input>
          ^{fvInput view}
