Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 44c64e5d

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

  • ID 44c64e5dc3abcb4e7506429d4e7395e5a73f8907
  • Vorgänger da2c1643
  • Nachfolger f9073b45

Neues Design 2019 Standard-Code templates/webpages/shop_part/edit.html

Unterschiede anzeigen:

templates/webpages/shop_part/edit.html
4 4
[% USE P %]
5 5
[% USE LxERP %]
6 6

  
7
<p>
8
[% LxERP.t8("Part") %]: [% HTML.escape(SELF.shop_part.part.displayable_name) %]<br>
9
[% LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %]
10
<p>
11 7
<form action="controller.pl" method="post">
12
  <div>
13
    [% IF SELF.shop_part.id %]
14
    [%- L.hidden_tag("shop_part.id", SELF.shop_part.id) %]
15
    [%- L.hidden_tag("shop_part.shop_id", SELF.shop_part.shop_id) %]
16
    [% ELSE %]
17
    [%- L.hidden_tag("shop_part.shop_id", FORM.shop_id) %]
18
    [%- L.hidden_tag("shop_part.part_id", FORM.part_id) %]
19
    [% END %]
20 8

  
21
    <table>
9
<div class="wrapper">
10

  
11
<p>
12
  [% LxERP.t8("Part") %]: [% HTML.escape(SELF.shop_part.part.displayable_name) %]<br>
13
  [% LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %]
14
</p>
15

  
16
[% IF SELF.shop_part.id %]
17
  [% L.hidden_tag("shop_part.id", SELF.shop_part.id) %]
18
  [% L.hidden_tag("shop_part.shop_id", SELF.shop_part.shop_id) %]
19
[% ELSE %]
20
  [% L.hidden_tag("shop_part.shop_id", FORM.shop_id) %]
21
  [% L.hidden_tag("shop_part.part_id", FORM.part_id) %]
22
[% END %]
23

  
24
<table class="tbl-horizontal">
25
  <tbody>
22 26
    <tr>
23
     <td>[% LxERP.t8("Description") %]</td>
24
     <td colspan="3">[% L.textarea_tag('shop_part.shop_description', SELF.shop_part.shop_description, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]</td>
27
      <th>[% LxERP.t8("Description") %]</th>
28
      <td colspan="3">[% L.textarea_tag('shop_part.shop_description', SELF.shop_part.shop_description, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]</td>
25 29
    </tr>
26 30
    <tr>
27
     <td>[% LxERP.t8("Active") %]</td>
28
     <td>[% L.yes_no_tag("shop_part.active", SELF.shop_part.active, default = "yes") %]</td>
29
     <td>[% LxERP.t8("Date") %]</td>
30
     <td>[% L.date_tag("shop_part.show_date", SELF.shop_part.show_date) %]</td>
31
      <th>[% LxERP.t8("Active") %]</th>
32
      <td>[% L.yes_no_tag("shop_part.active", SELF.shop_part.active, default = "yes") %]</td>
33
      <th>[% LxERP.t8("Date") %]</th>
34
      <td>[% L.date_tag("shop_part.show_date", SELF.shop_part.show_date) %]</td>
31 35
    </tr>
32 36
    <tr>
33
      <td>[% 'Price Source' | $T8 %]</th>
34
      [% IF SELF.shop_part.active_price_source %]
35
        [% SET price_source = SELF.shop_part.active_price_source %]
36
      [% ELSE %]
37
        [% SET price_source = SELF.shop_part.shop.price_source %]
38
      [% END %]
39
      <td>[% L.select_tag('shop_part.active_price_source', SELF.price_sources, value_key = 'id', title_key = 'name', with_empty = 0, default = price_source, default_value_key='id' ) %]</td>
40
     <td>[% LxERP.t8("Front page") %]</td>
37
      <th>[% 'Price Source' | $T8 %]</th>
38
      <td>
39
        [% IF SELF.shop_part.active_price_source %]
40
          [% SET price_source = SELF.shop_part.active_price_source %]
41
        [% ELSE %]
42
          [% SET price_source = SELF.shop_part.shop.price_source %]
43
        [% END %]
44
        [% L.select_tag('shop_part.active_price_source', SELF.price_sources, value_key = 'id', title_key = 'name', with_empty = 0, default = price_source, default_value_key='id' ) %]
45
      </td>
46
     <th>[% LxERP.t8("Front page") %]</th>
41 47
     <td>[% L.yes_no_tag('shop_part.front_page', SELF.shop_part.front_page) %]</td>
42 48
    </tr>
43 49
    <tr>
44
     <td>[% LxERP.t8("Sort order") %]</td>
45
     <td>[% L.input_tag("shop_part.sortorder", SELF.shop_part.sortorder, size=2) %]</td>
46
     <td>[% LxERP.t8("Meta tag title") %]</td>
47
     <td>[% L.input_tag("shop_part.metatag_title", SELF.shop_part.metatag_title, size=12) %]</td>
50
      <th>[% LxERP.t8("Sort order") %]</th>
51
      <td>[% L.input_tag("shop_part.sortorder", SELF.shop_part.sortorder, size=2) %]</td>
52
      <th>[% LxERP.t8("Meta tag title") %]</th>
53
      <td>[% L.input_tag("shop_part.metatag_title", SELF.shop_part.metatag_title, size=12) %]</td>
48 54
    </tr>
49 55
    <tr>
50
     <td>[% LxERP.t8("Meta tag keywords") %]</td>
51
     <td>[% L.input_tag("shop_part.metatag_keywords", SELF.shop_part.metatag_keywords, size=22) %]</td>
52
     <td>[% LxERP.t8("Meta tag description") %]</td>
53
     <td>[% L.textarea_tag("shop_part.metatag_description", SELF.shop_part.metatag_description, rows=4) %]</td>
56
      <th>[% LxERP.t8("Meta tag keywords") %]</th>
57
      <td>[% L.input_tag("shop_part.metatag_keywords", SELF.shop_part.metatag_keywords, size=22) %]</td>
58
      <th>[% LxERP.t8("Meta tag description") %]</th>
59
      <td>[% L.textarea_tag("shop_part.metatag_description", SELF.shop_part.metatag_description, rows=4) %]</td>
54 60
    </tr>
55
    </table>
61
  </tbody>
62
</table>
56 63

  
57
    [% IF SELF.shop_part.id %]
58
    [% L.button_tag("kivi.ShopPart.save_shop_part(" _ SELF.shop_part.id _ ")", LxERP.t8("Save"))  %]</td>
59
    [% ELSE %]
60
    [% L.button_tag("kivi.ShopPart.add_shop_part(" _ FORM.part_id _", " _ FORM.shop_id _")", LxERP.t8("Save"))  %]</td>
61
    [% END %]
62
    [% # L.button_tag("kivi.ShopPart.update_partnumber()", LxERP.t8("Update Partnumber"))  %]</td>
64
<div class="buttons">
65
  [% IF SELF.shop_part.id %]
66
    [% L.button_tag("kivi.ShopPart.save_shop_part(" _ SELF.shop_part.id _ ")", LxERP.t8("Save"))  %]
67
  [% ELSE %]
68
    [% L.button_tag("kivi.ShopPart.add_shop_part(" _ FORM.part_id _", " _ FORM.shop_id _")", LxERP.t8("Save"))  %]
69
  [% END %]
70
  [% # L.button_tag("kivi.ShopPart.update_partnumber()", LxERP.t8("Update Partnumber"))  %]
63 71

  
64
    [% # L.hidden_tag("action", "ShopPart/dispatch") %]
65
    [% # L.submit_tag('action_update', LxERP.t8('Save')) %]
72
  [% # L.hidden_tag("action", "ShopPart/dispatch") %]
73
  [% # L.submit_tag('action_update', LxERP.t8('Save')) %]
74
</div>
66 75

  
76
[% IF SELF.shop_part.part.image && INSTANCE_CONF.get_parts_show_image %]
77
  <a href="[% SELF.shop_part.part.image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% SELF.shop_part.part.image | html %]"/></a>
78
[% END %]
67 79

  
68
  </div>
69
</form>
80
</div><!-- /.wrapper -->
70 81

  
71
[%- IF SELF.shop_part.part.image && INSTANCE_CONF.get_parts_show_image %]
72
         <a href="[% SELF.shop_part.part.image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% SELF.shop_part.part.image | html %]"/></a>
73
[%- END %]
82
</form>

Auch abrufbar als: Unified diff