This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/templates/widgets/i18n-form/layout.hamlet
2021-07-18 00:16:32 +02:00

26 lines
779 B
Plaintext

$newline never
<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}