Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a479bdcc

Von Werner Hahn vor 12 Monaten hinzugefügt

  • ID a479bdcc7a1f0eb9577059b06e7a09d46133e595
  • Vorgänger 911159a8
  • Nachfolger 50a8e9b5

Variantenkonfiguration Templatedatein

Unterschiede anzeigen:

templates/design40_webpages/shop_part/edit.html
3 3
[% USE L %]
4 4
[% USE P %]
5 5
[% USE LxERP %]
6
[% USE Dumper %]
6 7

  
7 8
<form action="controller.pl" method="post">
8 9

  
10
[% Dumper.dump_html(SELF) %]
9 11
<div class="wrapper">
10 12

  
11 13
<p>
templates/design40_webpages/variant_property/variant_property_form.html
1 1
[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %][%- USE P -%]
2
[% USE Dumper %]
2 3
<h1>[% FORM.title %]</h1>
3 4

  
4
 
5
[% #Dumper.dump_html(SELF.variant_property.property_values) %] 
6
<div class="wrapper">
5 7
<form method="post" action="controller.pl" id="form">
6 8
  [%- INCLUDE 'common/flash.html' %] 
7
<div class="wrapper">
8 9

  
9 10
<table class="tbl-horizontal">
10 11
  <caption> [% LxERP.t8("Variant Property") %] </caption>
......
62 63
</table>
63 64
[% P.hidden_tag("id", SELF.variant_property.id) %] 
64 65
    
65
</div>
66 66

  
67 67
</form>
68

  
69
  [% IF !SELF.variant_property.property_values.size %] 
70
  <p>
71
    [%- 'No Variantpropertyvalues has been created yet.' | $T8 %] 
72
  </p>
73
  [%- ELSE %] 
74
    [% PROCESS "variant_property/variant_property_value_list.html" %]
75
  [% END %]
76

  
77
  [% L.button_tag('kivi.VariantProperty.add_or_edit_variant_value(' _ SELF.variant_property.id _ ')', LxERP.t8("Add"))  %]
78
</div>
templates/design40_webpages/variant_property/variant_property_value_form.html
1 1
[% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %][%- USE P -%]
2
[% USE Dumper %]
2 3
<h1>[% FORM.title %]</h1>
4
[%- INCLUDE 'common/flash.html' %] 
3 5

  
4
 
5
<form method="post" action="controller.pl" id="form">
6
  [%- INCLUDE 'common/flash.html' %] 
7
<div class="wrapper">
6
<form id="variant_property_value_form">
7
    [% P.hidden_tag("variant_property_id", SELF.variant_property.id) %] 
8
    [% P.input_tag("h_variant_property_id", SELF.variant_property.id) %] 
9
    Name:[% SELF.variant_property.name %]
10
  <div class="wrapper">
11
    <table class="tbl-horizontal">
12
      <caption> [% LxERP.t8("Value") %] </caption>
13
      <colgroup><col class="wi-mediumsmall"><col></colgroup>
14
      <tbody>
15
        <tr>
16
          <td> [%- 'Value' | $T8 %] </td>
17
          <td> [% P.input_tag("variant_property_value.value", SELF.variant_property_value.value, "data-validate"="required", "data-title"=LxERP.t8("Value")) %] </td>
18
        </tr>
19
          <tr>
20
          <td> [%- 'Abbreviation' | $T8 %] </td>
21
          <td> [% P.input_tag("variant_property_value.abbreviation", SELF.variant_property_value.abbreviation, "data-validate"="required", "data-title"=LxERP.t8("Abbreviation")) %] </td>
22
        </tr>
23
      </tbody>
24
    </table>
25
  </div>
8 26

  
9
<table class="tbl-horizontal">
10
  <caption> [% LxERP.t8("Value") %] </caption>
11
  <colgroup><col class="wi-mediumsmall"><col></colgroup>
12
  <tbody>
13
    <tr>
14
      <td> [%- 'Value' | $T8 %] </td>
15
      <td> [% P.input_tag("variant_property_value.value", SELF.variant_property_value.value, "data-validate"="required", "data-title"=LxERP.t8("Value")) %] </td>
16
    </tr>
17
      <tr>
18
      <td> [%- 'Abbreviation' | $T8 %] </td>
19
      <td> [% P.input_tag("variant_property_value.abbreviation", SELF.variant_property_value.abbreviation, "data-validate"="required", "data-title"=LxERP.t8("Abbreviation")) %] </td>
20
    </tr>
21
    [% IF SELF.variant_property_value.id %] 
22
    [% END %] 
23
  </tbody>
24
</table>
27
  <div class="wrapper">
28
    <table class="tbl-horizontal">
29
      <caption> [%- 'Translation' | $T8 %] </caption>
30
      <tbody>
31
        [%- FOREACH language = SELF.languages %] 
32
        <tr><th class="caption" colspan="2">[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</th></tr>
33
        <tr>
34
          <td> [%- 'Value' | $T8 %] </td>
35
          <input type="text" name="translation_[% language.id %]" value="[%- HTML.escape(SELF.variant_property_value.translated_attribute('description_long', language, 1)) %]" size="60">
36
          <td> [% P.input_tag("variant_property_value.value", SELF.variant_property_value.value, "data-validate"="required", "data-title"=LxERP.t8("value")) %] </td>
37
        </tr>
38
          <tr>
39
          <td> [%- 'Abbreviation' | $T8 %] </td>
40
          <input type="text" name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.variant_property_value.translated_attribute('description_long_invoice', language, 1)) %]" size="60">
41
          <td> [% P.input_tag("variant_property_value.description", SELF.variant_property_value.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %] </td>
42
        </tr>
43
        [%- END %] 
44
      </tbody>
45
    </table>
46
    [% P.hidden_tag("variant_property_value_id", SELF.variant_property_value.id) %] 
47
  </div>
48
</form>
25 49

  
26
   
27
<table class="tbl-horizontal">
28
  <caption> [%- 'Translation' | $T8 %] </caption>
29
  <tbody>
30
    [%- FOREACH language = SELF.languages %] 
31
    <tr><th class="caption" colspan="2">[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</th></tr>
32
    <tr>
33
      <td> [%- 'Value' | $T8 %] </td>
34
      <td> [% P.input_tag("variant_property_value.value", SELF.variant_property_value.value, "data-validate"="required", "data-title"=LxERP.t8("value")) %] </td>
35
    </tr>
36
      <tr>
37
      <td> [%- 'Abbreviation' | $T8 %] </td>
38
      <td> [% P.input_tag("variant_property_value.description", SELF.variant_property_value.description, "data-validate"="required", "data-title"=LxERP.t8("Description")) %] </td>
39
    </tr>
40
    <tr>
41
      <th> [% LxERP.t8("Texts for quotations & orders") %] </th>
42
      <td> 
43
      <input type="text" name="translation_[% language.id %]" value="[%- HTML.escape(SELF.variant_property_value.translated_attribute('description_long', language, 1)) %]" size="60">
44
      </td>
45
      </tr>
46
      <tr>
47
      <th> [% LxERP.t8("Texts for invoices") %] </th>
48
      <td> 
49
      <input type="text" name="translation_invoice_[% language.id %]" value="[%- HTML.escape(SELF.variant_property_value.translated_attribute('description_long_invoice', language, 1)) %]" size="60">
50
      </td>
51
    </tr>
52
    [%- END %] 
53
  </tbody>
54
</table>
55
[% P.hidden_tag("id", SELF.variant_property_value.id) %] 
56
    
50
<div class="buttons">
51
    [% L.button_tag("kivi.VariantProperty.save_variant_value()", LxERP.t8("Save"))  %]
57 52
</div>
58 53

  
59
</form>
templates/design40_webpages/variant_property/variant_property_value_list.html
2 2
[% USE HTML %]
3 3
[% USE L %]
4 4
[% USE LxERP %]
5
[% USE date %]
6 5

  
7
<div id="variant_property_value">
8 6

  
9 7
<div class="wrapper">
10 8

  
11
<table class="tbl-list width-moderate">
12
  <caption>[% 'Value' | $T8 %]</caption>
13
  <thead>
14
    <tr>
15
      <th>[% 'Value'        | $T8 %]</th>
16
      <th>[% 'Abbreviation' | $T8 %]</th>
17
    </tr>
18
  </thead>
19
  <tbody>
20
     [% FOREACH row = SELF.VARIANTPROPERTYVALUES %]
9
  <table class="tbl-list width-moderate" id="variant_property_values">
10
    <caption>[% 'Value' | $T8 %]</caption>
11
    <thead>
21 12
      <tr>
22
        <td>[% row.value        | html %]</td>
23
        <td>[% row.abbreviation | html %]</td>
13
        <th><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]"></th>
14
        <th>[% 'Value'        | $T8 %]</th>
15
        <th>[% 'Abbreviation' | $T8 %]</th>
24 16
      </tr>
25
    [% END %]
26
  </tbody>
27
</table>
17
    </thead>
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>
25
      [% END %]
26
    </tbody>
27
  </table>
28
</div>
29

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

Auch abrufbar als: Unified diff