Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision dcaf8c10

Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID dcaf8c10f426f07476eb10aa882d105e0fc25873
  • Vorgänger 3b758364
  • Nachfolger 39d74f82

Neues Design 2019 Standard-Code templates/webpages/part/form.html

Unterschiede anzeigen:

templates/webpages/part/form.html
8 8

  
9 9
[% INCLUDE 'common/flash.html' %]
10 10

  
11
 <form method="post" id="ic" name="ic" action="controller.pl">
11
<form method="post" id="ic" name="ic" action="controller.pl">
12 12

  
13
  [% L.hidden_tag('part.part_type'   , SELF.part.part_type) %]
14
  [% L.hidden_tag('part.id'          , SELF.part.id) %]
15
  [% L.hidden_tag('last_modification', SELF.part.last_modification) %]
16
  [% L.hidden_tag('callback'         , FORM.callback) %]
13
[% L.hidden_tag('part.part_type'   , SELF.part.part_type) %]
14
[% L.hidden_tag('part.id'          , SELF.part.id) %]
15
[% L.hidden_tag('last_modification', SELF.part.last_modification) %]
16
[% L.hidden_tag('callback'         , FORM.callback) %]
17 17

  
18
  <div id="ic_tabs" class="tabwidget">
19
   <ul>
18
<div id="ic_tabs" class="tabwidget">
19

  
20
  <ul class="ui-tabs">
20 21
    <li><a href="#basic_data">[% 'Basic Data' | $T8 %]</a></li>
21
    [%- IF SELF.part.is_assortment %]
22
    <li><a href="#assortment_tab">[% 'Assortment items' | $T8 %]</a></li>
23
    [%- END %]
24
    [%- IF SELF.part.is_assembly %]
25
    <li><a href="#assembly_tab">[% 'Assembly items' | $T8 %]</a></li>
26
    [%- END %]
27
    [%- IF SELF.part.id %]
28
    [%- IF INSTANCE_CONF.get_doc_storage %]
29
    <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=part&object_id=[% SELF.part.id %]">[% 'Attachments' | $T8 %]</a></li>
30
    <li><a href="controller.pl?action=File/list&file_type=image&object_type=part&object_id=[% SELF.part.id %]">[% 'Images' | $T8 %]</a></li>
31
    [%- END %]
32
    [%- END %]
22
    [% IF SELF.part.is_assortment %]
23
      <li><a href="#assortment_tab">[% 'Assortment items' | $T8 %]</a></li>
24
    [% END %]
25
    [% IF SELF.part.is_assembly %]
26
      <li><a href="#assembly_tab">[% 'Assembly items' | $T8 %]</a></li>
27
    [% END %]
28
    [% IF SELF.part.id %]
29
      [% IF INSTANCE_CONF.get_doc_storage %]
30
        <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=part&object_id=[% SELF.part.id %]">[% 'Attachments' | $T8 %]</a></li>
31
        <li><a href="controller.pl?action=File/list&file_type=image&object_type=part&object_id=[% SELF.part.id %]">[% 'Images' | $T8 %]</a></li>
32
      [% END %]
33
    [% END %]
33 34
    [% IF SELF.all_languages.size %]
34
    <li><a href="#translations_tab">[% 'Translations' | $T8 %]</a></li>
35
      <li><a href="#translations_tab">[% 'Translations' | $T8 %]</a></li>
35 36
    [% END %]
36
    [%- IF SELF.part.id %]
37
    <li><a href="#sales_price_information">[% 'Price information' | $T8 %]</a></li>
38
    [%- END %]
39
    [%- IF SELF.part.id  %]
40
    <li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li>
37
    [% IF SELF.part.id %]
38
      <li><a href="#sales_price_information">[% 'Price information' | $T8 %]</a></li>
39
    [% END %]
40
    [% IF SELF.part.id  %]
41
      <li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li>
42
    [% END %]
43
    [% IF CUSTOM_VARIABLES.size %]
44
      <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
41 45
    [% END %]
42 46
    [%- IF (AUTH.assert('warehouse_contents', 1) AND SELF.part.id AND NOT SELF.part.is_service) %]
43
    <li><a href="#inventory">[% 'Inventories' | $T8 %]</a></li>
44
    [%- END %]
45
    [%- IF CUSTOM_VARIABLES.size %]
46
    <li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
47
      <li><a href="#inventory">[% 'Inventories' | $T8 %]</a></li>
47 48
    [%- END %]
48 49
    [% IF AUTH.assert('shop_part_edit', 1) && SELF.part.id && SELF.part.shop %]
49
    <li><a href="#shop_variables">[% 'Shop variables' | $T8 %]</a></li>
50
      <li><a href="#shop_variables">[% 'Shop variables' | $T8 %]</a></li>
50 51
    [% END %]
51
   </ul>
52
  </ul>
52 53

  
53
   <div id="basic_data">
54
   [%- PROCESS 'part/_basic_data.html' %]
55
   </div>
54
  <div id="basic_data" class="ui-tabs-panel">
55
    [% PROCESS 'part/_basic_data.html' %]
56
  </div>
56 57

  
57
   [%- IF SELF.part.is_assortment %]
58
   <div id="assortment_tab">
59
    [% PROCESS 'part/_assortment.html' id=part.id assortment_id=SELF.part.id %]
60
   </div>
61
   [%- END %]
58
  [% IF SELF.part.is_assortment %]
59
    <div id="assortment_tab" class="ui-tabs-panel">
60
      [% PROCESS 'part/_assortment.html' id=part.id assortment_id=SELF.part.id %]
61
    </div>
62
  [% END %]
62 63

  
63
   [%- IF SELF.part.is_assembly %]
64
   <div id="assembly_tab">
65
    [% PROCESS 'part/_assembly.html' id=part.id assembly_id=SELF.part.id %]
66
   </div>
67
   [%- END %]
64
  [% IF SELF.part.is_assembly %]
65
    <div id="assembly_tab" class="ui-tabs-panel">
66
      [% PROCESS 'part/_assembly.html' id=part.id assembly_id=SELF.part.id %]
67
    </div>
68
  [% END %]
68 69

  
69
   [%- IF SELF.all_languages.size %]
70
  [% IF SELF.all_languages.size %]
70 71
    [% PROCESS 'part/_edit_translations.html' %]
71
   [%- END %]
72

  
73
   [%- IF SELF.part.id %]
74
   <div id="sales_price_information">
75
     [% PROCESS part/_sales_price_information.html id=SELF.part.id %]
76
   </div>
77
   [% IF AUTH.assert('shop_part_edit', 1) && SELF.part.id %]
78
   <div id="shop_variables">
79
     [% PROCESS 'part/_shop.html' %]
80
   </div>
81
   [%- END %]
82

  
83
   [%- IF AUTH.assert('warehouse_contents', 1) AND SELF.part.id AND NOT SELF.part.is_service %]
84
   <div id="inventory">
85
    [% PROCESS 'part/_inventory.html' %]
86
   </div>
87
   [%- END %]
88

  
89
   [%- END %]
90

  
91
   [%- IF CUSTOM_VARIABLES.size %]
92
   <div id="custom_variables">
93
      [%- PROCESS 'part/_cvars.html' %]
94
   </div>
95
   [%- END %]
96

  
97
   [%- IF SELF.part.id %]
98
   <div id='price_rules'>
99
     <div id='price_rules_customer_report'></div>
100
     <div id='price_rules_vendor_report'></div>
101
   </div>
102
   [%- END %]
103

  
104
</div>
72
  [% END %]
73

  
74
  [% IF SELF.part.id %]
75
    <div id="sales_price_information" class="ui-tabs-panel">
76
      [% PROCESS part/_sales_price_information.html id=SELF.part.id %]
77
    </div>
78
  [% END %]
79

  
80
  [% IF AUTH.assert('shop_part_edit', 1) && SELF.part.id && SELF.part.shop %]
81
    <div id="shop_variables" class="ui-tabs-panel">
82
      [% PROCESS 'part/_shop.html' %]
83
    </div>
84
  [% END %]
85

  
86
  [% IF AUTH.assert('warehouse_contents', 1) AND SELF.part.id AND NOT SELF.part.is_service %]
87
    <div id="inventory">
88
      [% PROCESS 'part/_inventory.html' %]
89
    </div>
90
  [% END %]
91

  
92
  [% IF CUSTOM_VARIABLES.size %]
93
    <div id="custom_variables" class="ui-tabs-panel">
94
      [% PROCESS 'part/_cvars.html' %]
95
    </div>
96
  [% END %]
97

  
98
  [% IF SELF.part.id %]
99
    <div id="price_rules" class="ui-tabs-panel">
100
      <div class="wrapper">
101
        <div id="price_rules_customer_report"></div>
102
        <div id="price_rules_vendor_report"></div>
103
      </div><!-- /.wrapper -->
104
    </div>
105
  [% END %]
106

  
107
</div><!-- /.tabwidget -->
105 108
</form>

Auch abrufbar als: Unified diff