Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4d8ae610

Von Hans P. Schlaepfer vor mehr als 4 Jahren hinzugefügt

  • ID 4d8ae61093ec20ff9cfee1af05ff46dd0c6a89b3
  • Vorgänger 6cd04b49
  • Nachfolger eb416187

Neues Design 2019 Standard-Code templates/webpages/part/_edit_translations.html

ACHTUNG: Hunk 'SET language_id = language.id translation' benoetigt noch ein Semikola

Unterschiede anzeigen:

templates/webpages/part/_edit_translations.html
[% USE P %]
[% USE LxERP %]
<div id="translations_tab">
<table>
<tr class="listheading">
<th>[% LxERP.t8("Language") %]</th>
<th>[% LxERP.t8("Description") %]</th>
<th>[% LxERP.t8("Long Description") %]</th>
</tr>
[%- FOREACH language = SELF.all_languages %]
[% SET language_id = language.id
translation = translations_map.$language_id %]
<tr class="listrow" valign="top">
<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>
[%- END %]
</table>
<div id="translations_tab" class="ui-tabs-panel">
<div class="wrapper">
<table class="tbl-horizontal">
<thead>
<tr>
<th>[% LxERP.t8("Language") %]</th>
<th>[% LxERP.t8("Description") %]</th>
<th>[% LxERP.t8("Long Description") %]</th>
</tr>
</thead>
<tbody>
[% FOREACH language = SELF.all_languages %]
<tr>
<td>
[% SET language_id = language.id translation = translations_map.$language_id %]
[% L.hidden_tag('translations[+].language_id', language.id) %]
[% HTML.escape(language.description) %]
</td>
<td>[% L.input_tag("translations[].translation", translation.translation, size=10, class="wi-normal") %]</td>
<td>
[% L.textarea_tag(
"translations[].longdescription",
P.restricted_html(translation.longdescription),
id="translations_longdescription_" _ language_id,
class="texteditor wi-lightwide",
cols=100, rows=4)
%]
</td>
</tr>
[% END %]
</tbody>
</table>
</div>
</div>

Auch abrufbar als: Unified diff