]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/shop_part/edit.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / shop_part / edit.html
1 [% USE HTML %]
2 [% USE T8 %]
3 [% USE L %]
4 [% USE P %]
5 [% USE LxERP %]
6
7 <form action="controller.pl" method="post">
8
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>
26     <tr>
27       <th>[% LxERP.t8("Description") %]</th>
28      <td colspan="3">
29        [% IF SELF.shop_part.shop.use_part_longdescription %]
30          [% L.textarea_tag('notes', SELF.shop_part.part.notes, readonly="readonly", style="width: 350px; height: 150px", class="texteditor") %]
31        [% ELSE %]
32          [% L.textarea_tag('shop_part.shop_description', SELF.shop_part.shop_description, style="width: 350px; height: 150px", class="texteditor") %]
33        [% END %]
34      </td>
35     </tr>
36     <tr>
37       <th>[% LxERP.t8("Active") %]</th>
38       <td>[% L.yes_no_tag("shop_part.active", SELF.shop_part.active, default = "yes") %]</td>
39       <th>[% LxERP.t8("Date") %]</th>
40       <td>[% L.date_tag("shop_part.show_date", SELF.shop_part.show_date) %]</td>
41     </tr>
42     <tr>
43       <th>[% 'Price Source' | $T8 %]</th>
44       <td>
45         [% IF SELF.shop_part.active_price_source %]
46           [% SET price_source = SELF.shop_part.active_price_source %]
47         [% ELSE %]
48           [% SET price_source = SELF.shop_part.shop.price_source %]
49         [% END %]
50         [% 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' ) %]
51       </td>
52      <th>[% LxERP.t8("Front page") %]</th>
53      <td>[% L.yes_no_tag('shop_part.front_page', SELF.shop_part.front_page) %]</td>
54     </tr>
55     <tr>
56       <th>[% LxERP.t8("Sort order") %]</th>
57       <td>[% L.input_tag("shop_part.sortorder", SELF.shop_part.sortorder, size=2) %]</td>
58       <th>[% LxERP.t8("Meta tag title") %]</th>
59       <td>[% L.input_tag("shop_part.metatag_title", SELF.shop_part.metatag_title, size=12) %]</td>
60     </tr>
61     <tr>
62       <th>[% LxERP.t8("Meta tag keywords") %]</th>
63       <td>[% L.input_tag("shop_part.metatag_keywords", SELF.shop_part.metatag_keywords, size=22) %]</td>
64       <th>[% LxERP.t8("Meta tag description") %]</th>
65       <td>[% L.textarea_tag("shop_part.metatag_description", SELF.shop_part.metatag_description, rows=4) %]</td>
66     </tr>
67   </tbody>
68 </table>
69
70 <div class="buttons">
71   [% IF SELF.shop_part.id %]
72     [% L.button_tag("kivi.ShopPart.save_shop_part(" _ SELF.shop_part.id _ ")", LxERP.t8("Save"))  %]
73   [% ELSE %]
74     [% L.button_tag("kivi.ShopPart.add_shop_part()", LxERP.t8("Save"))  %]
75   [% END %]
76 </div>
77
78 [% IF SELF.shop_part.part.image && INSTANCE_CONF.get_parts_show_image %]
79   <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>
80 [% END %]
81
82 </div><!-- /.wrapper -->
83
84 </form>