1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%][%- USE T8 -%]
3 [% SET style="width: 400px" %]
6 <h1>[% HTML.escape(title) %]</h1>
7 <form id="form" action="controller.pl" method="post">
9 [%- INCLUDE 'common/flash.html' %]
11 [%- L.hidden_tag("id", SELF.shop.id) %]
15 <th align="right">[% 'Description' | $T8 %]</th>
16 <td>[%- L.input_tag("shop.description", SELF.shop.description, size=size) %]</td>
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>
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>
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>
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>
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>
39 <th align="right">[% 'Server' | $T8 %]</th>
40 <td>[%- L.input_tag("shop.server", SELF.shop.server, size=size) %]</td>
43 <th align="right">[% 'Port' | $T8 %]</th>
44 <td>[%- L.input_tag("shop.port", SELF.shop.port, size=5) %]</td>
47 <th align="right">[% 'Path' | $T8 %]</th>
48 <td>[%- L.input_tag("shop.path", SELF.shop.path, size=size) %]</td>
51 <th align="right">[% 'Realm' | $T8 %]</th>
52 <td>[%- L.input_tag("shop.realm", SELF.shop.realm, size=size) %]</td>
55 <th align="right">[% 'User' | $T8 %]</th>
56 <td>[%- L.input_tag("shop.login", SELF.shop.login, size=size) %]</td>
59 <th align="right">[% 'Password' | $T8 %]</th>
60 <td>[%- L.input_tag("shop.password", SELF.shop.password, size=size) %]</td>
63 <th align="right">[% 'Last ordernumber' | $T8 %]</th>
64 <td>[%- L.input_tag("shop.last_order_number", SELF.shop.last_order_number, size=12) %]</td>
67 <th align="right">[% 'Orders to fetch' | $T8 %]</th>
68 <td>[%- L.input_tag("shop.orders_to_fetch", SELF.shop.orders_to_fetch, size=12) %]</td>
71 <th align="right">[% 'Transaction description' | $T8 %]</th>
72 <td>[%- L.input_tag("shop.transaction_description", SELF.shop.transaction_description, size=size) %]</td>
75 <th align="right">[% 'Default part for shipping costs' | $T8 %]</th>
76 <td>[%- P.part.picker('shop.shipping_costs_parts_id', SELF.shop.shipping_costs_parts_id, style="width: 300px") %]</td>
79 <th align="right">[% 'Obsolete' | $T8 %]</th>
80 <td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td>
86 <script type="text/javascript">
88 function check_prerequisites() {
89 if ($('#shop_description').val() === "") {
90 alert(kivi.t8('The name is missing.'));
93 if ($('#shop_url').val() === "") {
94 alert(kivi.t8('The URL is missing.'));
97 if ($('#shop_port').val() === "") {
98 alert(kivi.t8('The port is missing.'));