Merge branch 'test' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / shops / form.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%][%- USE T8 -%]
2
3 [% SET style="width: 400px" %]
4 [% SET size=34 %]
5
6 <h1>[% HTML.escape(title) %]</h1>
7 <form id="form" action="controller.pl" method="post">
8
9 [%- INCLUDE 'common/flash.html' %]
10
11 [%- L.hidden_tag("id", SELF.shop.id) %]
12
13 <table>
14   <tr>
15     <th align="right">[% 'Description' | $T8 %]</th>
16     <td>[%- L.input_tag("shop.description", SELF.shop.description, size=size) %]</td>
17   </tr>
18   <tr>
19     <th align="right">[% 'Shop type' | $T8 %]</th>
20     <td>[% L.select_tag('shop.connector', SELF.connectors, value_key = 'id', title_key = 'description', with_empty = 0, default = SELF.shop.connector, default_value_key='id' ) %]</td>
21   <tr>
22   <tr>
23     <th align="right">[% 'Price type' | $T8 %]</th>
24     <td>[% L.select_tag('shop.pricetype', SELF.price_types, value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.pricetype, default_value_key='id' ) %]</td>
25   </tr>
26   <tr>
27     <th align="right">[% 'Price Source' | $T8 %]</th>
28     <td>[% L.select_tag('shop.price_source', SELF.price_sources, value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.price_source, default_value_key='id' ) %]</td>
29   </tr>
30   <tr>
31     <th align="right">[% 'Bookinggroup/Tax' | $T8 %]</th>
32     <td>[% L.select_tag('shop.taxzone_id', SELF.taxzone_id, value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.taxzone_id, default_value_key='id' ) %]</td>
33   </tr>
34   <tr>
35     <th align="right">[% 'Protocol' | $T8 %]</th>
36     <td>[% L.select_tag('shop.protocol', SELF.protocols value_key = 'id', title_key = 'name', with_empty = 0, default = SELF.shop.protocol, default_value_key='id' ) %]</td>
37   </tr>
38   <tr>
39     <th align="right">[% 'Server' | $T8 %]</th>
40     <td>[%- L.input_tag("shop.server", SELF.shop.server, size=size) %]</td>
41   </tr>
42   <tr>
43     <th align="right">[% 'Port' | $T8 %]</th>
44     <td>[%- L.input_tag("shop.port", SELF.shop.port, size=5) %]</td>
45   </tr>
46   <tr>
47     <th align="right">[% 'Proxy' | $T8 %]</th>
48     <td>[%- L.input_tag("shop.proxy", SELF.shop.proxy, size=size) %]</td>
49   </tr>
50   <tr>
51     <th align="right">[% 'Path' | $T8 %]</th>
52     <td>[%- L.input_tag("shop.path", SELF.shop.path, size=size) %]</td>
53   </tr>
54   <tr>
55     <th align="right">[% 'Realm' | $T8 %]</th>
56     <td>[%- L.input_tag("shop.realm", SELF.shop.realm, size=size) %]</td>
57   </tr>
58   <tr>
59     <th align="right">[% 'User' | $T8 %]</th>
60     <td>[%- L.input_tag("shop.login", SELF.shop.login, size=size) %]</td>
61   </tr>
62   <tr>
63     <th align="right">[% 'Password' | $T8 %]</th>
64     <td>[%- L.input_tag("shop.password", SELF.shop.password, size=size) %]</td>
65   </tr>
66   <tr>
67     <th align="right">[% 'Last ordernumber' | $T8 %]</th>
68     <td>[%- L.input_tag("shop.last_order_number", SELF.shop.last_order_number, size=12) %]</td>
69   </tr>
70   <tr>
71     <th align="right">[% 'Orders to fetch' | $T8 %]</th>
72     <td>[%- L.input_tag("shop.orders_to_fetch", SELF.shop.orders_to_fetch, size=12) %]</td>
73   </tr>
74   <tr>
75     <th align="right">[% 'Transaction description' | $T8 %]</th>
76     <td>[%- L.input_tag("shop.transaction_description", SELF.shop.transaction_description, size=size) %]</td>
77   </tr>
78   <tr>
79     <th align="right">[% 'Default part for shipping costs' | $T8 %]</th>
80     <td>[%- P.part.picker('shop.shipping_costs_parts_id', SELF.shop.shipping_costs_parts_id, style="width: 300px") %]</td>
81   </tr>
82   <tr>
83     <th align="right">[% 'Obsolete' | $T8 %]</th>
84     <td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td>
85   </tr>
86   <tr>
87     <th align="right">[% 'Use Long Description from Parts for Shop Long Description' | $T8 %]</th>
88     <td>[% L.yes_no_tag('shop.use_part_longdescription', SELF.shop.use_part_longdescription) %]</td>
89   </tr>
90 </table>
91
92  <hr>
93
94 <script type="text/javascript">
95 <!--
96 function check_prerequisites() {
97   if ($('#shop_description').val() === "") {
98     alert(kivi.t8('The name is missing.'));
99     return false;
100   }
101   if ($('#shop_url').val() === "") {
102     alert(kivi.t8('The URL is missing.'));
103     return false;
104   }
105   if ($('#shop_port').val() === "") {
106     alert(kivi.t8('The port is missing.'));
107     return false;
108   }
109
110   return true;
111 }
112 -->
113 </script>
114 </form>