Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4dc22cfc

Von Tamino Steinert vor 5 Tagen hinzugefügt

  • ID 4dc22cfc9086c0db0999c47d9109e98432f43cb4
  • Vorgänger 94dea1d5
  • Nachfolger 3a1c119f

Varianten: Varianten in Stammartikel anzeigen

Unterschiede anzeigen:

templates/design40_webpages/part/_parent_variant.html
4 4
[% USE L %]
5 5
[% USE P %]
6 6

  
7
<div class="wrapper input-panel">
8
  <h3> [% LxERP.t8("Create new Variants") %] </h3>
9
  <div class="wrapper">
10
  [% FOREACH variant_property = SELF.part.variant_properties %]
11
    <div class="col input-panel" style="min-width:fit-content;">
12
      <h4>[% variant_property.name_translated | html %]</h4>
13
      [% L.select_tag("variant_properties." _ variant_property.id _ ".selected_property_values[]",
14
        variant_property.property_values,
15
        title_key='value_translated', value_key='id',
16
        id="selected_property_values_" _ variant_property.id,
17
        multiple=1,
18
      ) %]
19
      [% L.multiselect2side(
20
        "selected_property_values_" _ variant_property.id,
21
        labelsx=LxERP.t8("All Property Values"),
22
        labeldx=LxERP.t8("Selected Property Values")
23
      ) %]
7
<div class="wrapper">
8
  <div class="wrapper input-panel">
9
    <h3> [% LxERP.t8("Create new Variants") %] </h3>
10
    <div class="wrapper">
11
    [% FOREACH variant_property = SELF.part.variant_properties %]
12
      <div class="col input-panel" style="min-width:fit-content;">
13
        <h4>[% variant_property.name_translated | html %]</h4>
14
        [% L.select_tag("variant_properties." _ variant_property.id _ ".selected_property_values[]",
15
          variant_property.property_values,
16
          title_key='value_translated', value_key='id',
17
          id="selected_property_values_" _ variant_property.id,
18
          multiple=1,
19
        ) %]
20
        [% L.multiselect2side(
21
          "selected_property_values_" _ variant_property.id,
22
          labelsx=LxERP.t8("All Property Values"),
23
          labeldx=LxERP.t8("Selected Property Values")
24
        ) %]
25
      </div>
26
    [% END %]
24 27
    </div>
25
  [% END %]
28
    [% L.button_tag('kivi.Part.create_variants();', LxERP.t8("Create Variants with selected Values")) %]
26 29
  </div>
27
  [% L.button_tag('kivi.Part.create_variants();', LxERP.t8("Create Variants with selected Values")) %]
28
</div>
29

  
30
<br>
31 30

  
32
variants:
33
[% FOREACH variant = SELF.part.variants %]
34
  [% variant.partnumber %]:[% variant.description %]
35
[% END %]
31
  <table class="tbl-list">
32
    <caption>
33
      [% LxERP.t8("Variants") %]
34
    </caption>
35
    <thead>
36
      <th>[% "Partnumber" | $T8 %]</th>
37
      <th>[% "Description" | $T8 %]</th>
38
      <th>[% "Property Values" | $T8 %]</th>
39
    </thead>
40
    <tbody class="row_entry listrow">
41
      [% FOREACH variant = SELF.part.variants %]
42
        <tr>
43
          <td>[% variant.presenter.part %]</td>
44
          <td>[% variant.description | html %]</td>
45
          <td>[% variant.variant_values | html %]</td>
46
        </tr>
47
      [% END %]
48
    </tbody>
49
  </table>
50
</div>
36 51

  
37 52

  

Auch abrufbar als: Unified diff