Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a4420618

Von Tamino Steinert vor 3 Monaten hinzugefügt

  • ID a442061885d528d333a2b6d0a76346c2dbcae120
  • Vorgänger 6a5a4049
  • Nachfolger a1e016b4

Varianten: Bearbeiten von Varianten Eigenschaften und Ausprägungen

Unterschiede anzeigen:

templates/design40_webpages/variant_property/variant_property_value_list.html
3 3
[% USE L %]
4 4
[% USE LxERP %]
5 5

  
6

  
7 6
<div class="wrapper">
8

  
7
<form id="variant_property_value_list_form">
8
  [% L.hidden_tag("id", SELF.variant_property.id) %]
9 9
  <table class="tbl-list width-moderate" id="variant_property_values">
10
    <caption>[% 'Value' | $T8 %]</caption>
10
    <caption>[% 'Values' | $T8 %]</caption>
11 11
    <thead>
12 12
      <tr>
13 13
        <th><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]"></th>
......
16 16
      </tr>
17 17
    </thead>
18 18
    <tbody>
19
       [% FOREACH value = SELF.variant_property.property_values %]
20
        <tr id="variant_property_value_id_[% variant_property_value.id %]">
21
          <td class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
22
          <td><a href="#" onclick="kivi.VariantProperty.add_or_edit_variant_value('[% value.id %]');">[% value.value        | html %]</a></td>
23
          <td>[% value.abbreviation | html %]</td>
24
        </tr>
19
      [% FOREACH value = SELF.variant_property.property_values_sorted %]
20
      <tr id="variant_property_value_id_[% value.id %]">
21
        <td class="dragdrop"><img src="image/updown.png" alt="[ LxERP.t8('reorder item') %]"></td>
22
        <td><a href="#" onclick="kivi.VariantProperty.edit_variant_property_value('[% value.id %]');">[% value.value | html %]</a></td>
23
        <td>[% value.abbreviation | html %]</td>
24
       </tr>
25 25
      [% END %]
26 26
    </tbody>
27
    <tfoot>
28
      <tr>
29
        <td>
30
          [% L.button_tag(
31
                'kivi.VariantProperty.add_variant_property_value()',
32
                LxERP.t8("Add counted")
33
          ) %]
34
        </td>
35
        <td>
36
          [% L.input_tag(
37
              "new_variant_property_value.value",
38
              '',
39
              class="wi-small",
40
          ) %]
41
        </td>
42
        <td>
43
          [% L.input_tag(
44
              "new_variant_property_value.abbreviation",
45
              '',
46
              class="wi-small",
47
          ) %]
48
        </td>
49
      </tr>
50
    </tfoot>
27 51
  </table>
52
</form>
28 53
</div>
29 54

  
30 55
[% L.sortable_element('#variant_property_values tbody', url =>
31 56
SELF.url_for(action='reorder_variant_property_values'), with => 'variant_property_value_id') %]
57

  

Auch abrufbar als: Unified diff