Part-Controller: HTML-Template: kein hidden in Tabellen ausserhalb von Daten
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Tue, 11 Feb 2020 13:32:33 +0000 (14:32 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Tue, 11 Feb 2020 13:32:33 +0000 (14:32 +0100)
templates/webpages/part/_edit_translations.html

index 601bb10..bdc68ee 100644 (file)
   [%- FOREACH language = SELF.all_languages %]
    [% SET language_id = language.id
           translation = translations_map.$language_id %]
-   [% L.hidden_tag('translations[+].language_id', language.id) %]
    <tr class="listrow" valign="top">
-    <td>[% HTML.escape(language.description) %]</td>
+    <td>
+      [% L.hidden_tag('translations[+].language_id', language.id) %]
+      [% HTML.escape(language.description) %]
+    </td>
     <td>[% L.input_tag("translations[].translation", translation.translation) %]</td>
     <td>[% L.textarea_tag("translations[].longdescription", P.restricted_html(translation.longdescription), id="translations_longdescription_" _ language_id, class="texteditor", style="width: 500px; height: 100px") %]</td>
    </tr>