Revision 4d8ae610
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/part/_edit_translations.html | ||
---|---|---|
3 | 3 |
[% USE P %] |
4 | 4 |
[% USE LxERP %] |
5 | 5 |
|
6 |
<div id="translations_tab"> |
|
7 |
<table> |
|
8 |
<tr class="listheading"> |
|
9 |
<th>[% LxERP.t8("Language") %]</th> |
|
10 |
<th>[% LxERP.t8("Description") %]</th> |
|
11 |
<th>[% LxERP.t8("Long Description") %]</th> |
|
12 |
</tr> |
|
13 |
|
|
14 |
[%- FOREACH language = SELF.all_languages %] |
|
15 |
[% SET language_id = language.id |
|
16 |
translation = translations_map.$language_id %] |
|
17 |
<tr class="listrow" valign="top"> |
|
18 |
<td> |
|
19 |
[% L.hidden_tag('translations[+].language_id', language.id) %] |
|
20 |
[% HTML.escape(language.description) %] |
|
21 |
</td> |
|
22 |
<td>[% L.input_tag("translations[].translation", translation.translation) %]</td> |
|
23 |
<td>[% L.textarea_tag("translations[].longdescription", P.restricted_html(translation.longdescription), id="translations_longdescription_" _ language_id, class="texteditor", style="width: 500px; height: 100px") %]</td> |
|
24 |
</tr> |
|
25 |
[%- END %] |
|
26 |
</table> |
|
6 |
<div id="translations_tab" class="ui-tabs-panel"> |
|
7 |
<div class="wrapper"> |
|
8 |
<table class="tbl-horizontal"> |
|
9 |
<thead> |
|
10 |
<tr> |
|
11 |
<th>[% LxERP.t8("Language") %]</th> |
|
12 |
<th>[% LxERP.t8("Description") %]</th> |
|
13 |
<th>[% LxERP.t8("Long Description") %]</th> |
|
14 |
</tr> |
|
15 |
</thead> |
|
16 |
<tbody> |
|
17 |
[% FOREACH language = SELF.all_languages %] |
|
18 |
<tr> |
|
19 |
<td> |
|
20 |
[% SET language_id = language.id translation = translations_map.$language_id %] |
|
21 |
[% L.hidden_tag('translations[+].language_id', language.id) %] |
|
22 |
[% HTML.escape(language.description) %] |
|
23 |
</td> |
|
24 |
<td>[% L.input_tag("translations[].translation", translation.translation, size=10, class="wi-normal") %]</td> |
|
25 |
<td> |
|
26 |
[% L.textarea_tag( |
|
27 |
"translations[].longdescription", |
|
28 |
P.restricted_html(translation.longdescription), |
|
29 |
id="translations_longdescription_" _ language_id, |
|
30 |
class="texteditor wi-lightwide", |
|
31 |
cols=100, rows=4) |
|
32 |
%] |
|
33 |
</td> |
|
34 |
</tr> |
|
35 |
[% END %] |
|
36 |
</tbody> |
|
37 |
</table> |
|
38 |
</div> |
|
27 | 39 |
</div> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/part/_edit_translations.html
ACHTUNG: Hunk 'SET language_id = language.id translation' benoetigt noch ein Semikola