Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b9bd39d3

Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt

  • ID b9bd39d32af54eada9175e0200e08fffe79eb121
  • Vorgänger 9bdee70d
  • Nachfolger de78c073

Shop - Template für Shopartikel bearbeiten vergessen

Unterschiede anzeigen:

templates/webpages/shop_part/edit.html
1
[%- USE HTML %][%- USE L -%][%- USE P -%][%- USE LxERP -%]
2

  
3
[% LxERP.t8("Part") %]: [% HTML.escape(SELF.shop_part.part.displayable_name) %]<br>
4
[% LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %]
5

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

  
8
[% IF SELF.shop_part.id %]
9
[%- L.hidden_tag("shop_part.id", SELF.shop_part.id) %]
10
[% ELSE %]
11
[%- L.hidden_tag("shop_part.shop_id", FORM.shop_id) %]
12
[%- L.hidden_tag("shop_part.part_id", FORM.part_id) %]
13
[% END %]
14

  
15
 <table>
16
  <tr>
17
   <td>[% LxERP.t8("Description") %]</td>
18
   <td>[% L.textarea_tag("shop_part.shop_description", SELF.shop_part.shop_description) %]</td>
19
  </tr>
20
  <tr>
21
   <td>[% LxERP.t8("Active") %]</td>
22
   <td>[% L.yes_no_tag("shop_part.active", SELF.shop_part.active) %]</td>
23
  </tr>
24
  <tr>
25
   <td>[% LxERP.t8("Sort order") %]</td>
26
   <td>[% L.input_tag("shop_part.sortorder", SELF.shop_part.sortorder, size=2) %]</td>
27
  </tr>
28
  <tr>
29
   <td>[% LxERP.t8("Date") %]</td>
30
   <td>[% L.date_tag("shop_part.show_date", SELF.shop_part.show_date) %]</td>
31
  </tr>
32
  <tr>
33
   <td>[% LxERP.t8("Front page") %]</td>
34
   <td>[% L.yes_no_tag('shop_part.front_page', SELF.shop_part.front_page) %]</td>
35
  </tr>
36
  <tr>
37
   <td>[% LxERP.t8("Meta Tags") %]</td>
38
   <td>[% L.input_tag("shop_part.meta_tags", SELF.shop_part.meta_tags, size=2) %]</td>
39
  </tr>
40
  <tr>
41
   <td>[% LxERP.t8("Shop Category") %]</td>
42
   <td>[% L.input_tag("shop_part.shop_category", SELF.shop_part.category, size=2) %]</td>
43
  </tr>
44
</table>
45
[% # L.dump(SELF.shop_part) %]
46

  
47
[% IF SELF.shop_part.id %]
48
[% L.button_tag("kivi.shop_part.save_shop_part(" _ SELF.shop_part.id _ ")", LxERP.t8("Save"))  %]</td>
49
[% ELSE %]
50
[% L.button_tag("kivi.shop_part.add_shop_part(" _ FORM.part_id _", " _ FORM.shop_id _")", LxERP.t8("Save"))  %]</td>
51
[% END %]
52
[% # L.button_tag("kivi.shop_part.update_partnumber()", LxERP.t8("Update Partnumber"))  %]</td>
53

  
54
[% # L.hidden_tag("action", "ShopPart/dispatch") %]
55
[% # L.submit_tag('action_update', LxERP.t8('Save')) %]
56

  
57
</div>
58
</form>
59
[%- IF SELF.shop_part.part.image && INSTANCE_CONF.get_parts_show_image %]
60
         <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>
61
[%- END %]
62

  
63
[% # SELF.shop_part.shop_description %]
64
[% # L.dump(SELF.shop_part) %]

Auch abrufbar als: Unified diff