fradrive/templates/widgets/i18n-form/layout.hamlet
2022-10-12 09:35:16 +02:00

31 lines
901 B
Plaintext

$newline never
$# SPDX-FileCopyrightText: 2022 Gregor Kleen <gregor.kleen@ifi.lmu.de>
$#
$# SPDX-License-Identifier: AGPL-3.0-or-later
<table .table .table--narrow .table--condensed>
<tbody>
$if null langs
<tr>
<td .table__td colspan="3">
<div .table__td-content .explanation>
_{MsgI18nFormNoTranslations}
$else
$forall coord@(I18nLang lang) <- langs
<tr .massinput__cell>
<td .table__td>
<div .table__td-content .form-group-label>
_{MsgLanguage lang}
^{cellWdgts ! coord}
<td .table__td .table__td--middle>
<div .table__td-content>
^{fvWidget (delButtons ! coord)}
$maybe addWdgt <- Map.lookup (0, boxOrigin) addWdgts
<tfoot>
<tr>
<td colspan="3">
<div .hr>
<tr .massinput__cell.massinput__cell--add>
^{addWdgt}