Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 505322c4

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID 505322c4b9b99beb3c0f1246edbfc54ff3a36790
  • Vorgänger edc52f01
  • Nachfolger 2d9a0b60

ic/parts_language_selection.html: Nicht mehr benötigte Vorlage entfernt

Wurde durch »Artikelstammdaten: Spracheinstellungen rein in eigenem
Tab bearbeiten« überflüssig.

Unterschiede anzeigen:

templates/webpages/ic/parts_language_selection.html
1
[%- USE T8 %]
2
[%- USE HTML %][%- USE L -%][%- USE P -%]
3
 <form name="Form">
4

  
5
  <input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
6

  
7
  <div class="listtop">[% title %]</div>
8

  
9
  <p>[% 'Please insert your language values below' | $T8 %]</p>
10

  
11
  <p>
12
   <table>
13
    <tr class="listheading">
14
     <th class="listheading">&nbsp;</th>
15
     [%- FOREACH col = HEADER %]
16
     <th nowrap class="listheading">[% col.column_title %]</th>
17
     [%- END %]
18
    </tr>
19

  
20
    [%- FOREACH row = LANGUAGES %]
21
    <tr class="listrow[% loop.count % 2 %]">
22
     <td>[% L.hidden_tag("id_" _ loop.count, row.id) %][% HTML.escape(row.description) %]</td>
23
     <td>
24
       [%- IF row.translation_area %]
25
         [% L.textarea_tag("translation_" _ loop.count, row.translation, rows=row.translation_rows, cols="40", wrap="soft") %]
26
       [%- ELSE %]
27
         [% L.input_tag("translation_" _ loop.count, row.translation) %]
28
       [%- END %]
29
     </td>
30
     <td>
31
      [% L.textarea_tag("longdescription_" _ loop.count, P.restricted_html(row.longdescription), class="texteditor", style="width: 500px; height: 100px") %]
32
     </td>
33
    </tr>
34

  
35
    [%- IF loop.last %]
36
    <input type="hidden" id="rowcount" name="rowcount" value="[% loop.count %]">
37
    [%- END %]
38
    [%- END %]
39
   </table>
40
  </p>
41

  
42
  <p>
43
   <button type="button" onclick="languages_updated()">[% 'Close' | $T8 %]</button>
44
  </p>
45

  
46
 </form>
47

  
48
 <script type="text/javascript">
49
  <!--
50
      function languages_updated() {
51
        var languages = "";
52
        for (var i = 1; i <= (document.getElementsByName("rowcount")[0].value); i++) {
53
          var id              = "id_" + i ;
54
          var translation     = "translation_" + i ;
55
          var longdescription = "longdescription_" + i;
56

  
57
          languages = languages +
58
            "---+++---" + $('#id_' + i).val() +
59
            "--++--" + $('#translation_' + i).val() +
60
            "--++--"  + $('#longdescription_' + i).val();
61
        }
62
        console.info(languages);
63

  
64
        window.opener.document.getElementsByName(document.Form.input_name.value)[0].value = languages;
65

  
66
        self.close();
67
      }
68
      //-->
69
 </script>

Auch abrufbar als: Unified diff