Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1e8197de

Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID 1e8197de812010c16684a3397f0ad99c2f434b1d
  • Vorgänger aa65fc9f
  • Nachfolger a6d7f28a

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
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
   [% L.hidden_tag('translations[+].language_id', language.id) %]
18
   <tr class="listrow" valign="top">
19
    <td>[% HTML.escape(language.description) %]</td>
20
    <td>[% L.input_tag("translations[].translation", translation.translation) %]</td>
21
    <td>[% L.textarea_tag("translations[].longdescription", P.restricted_html(translation.longdescription), id="translations_longdescription_" _ language_id, class="texteditor", style="width: 500px; height: 100px") %]</td>
22
   </tr>
23
  [%- END %]
24
 </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>
25 39
</div>
40

  
41

  

Auch abrufbar als: Unified diff