7 [% SET style="width: 400px" %]
10 <h1>[% HTML.escape(title) %]</h1>
11 <form id="form" action="controller.pl" method="post">
13 [% INCLUDE 'common/flash.html' %]
15 [% L.hidden_tag("id", SELF.shop.id) %]
18 <table class="tbl-horizontal">
19 <caption>[% 'Shopconfiguration' %]</caption>
20 <colgroup><col class="wi-wide"></colgroup>
23 <th>[% 'Description' | $T8 %]</th>
24 <td>[% L.input_tag("shop.description", SELF.shop.description, class='wi-wide') %]</td>
27 <th>[% 'Shop type' | $T8 %]</th>
28 <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', class='wi-wide' ) %]</td>
31 <th>[% 'Price type' | $T8 %]</th>
32 <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', class='wi-small' ) %]</td>
35 <th>[% 'Price Source' | $T8 %]</th>
36 <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', class='wi-wide' ) %]</td>
39 <th>[% 'Bookinggroup/Tax' | $T8 %]</th>
40 <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', class='wi-wide' ) %]</td>
43 <th>[% 'Protocol' | $T8 %]</th>
44 <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', class='wi-small' ) %]</td>
47 <th>[% 'Server' | $T8 %]</th>
48 <td>[% L.input_tag("shop.server", SELF.shop.server, class='wi-wide') %]</td>
51 <th>[% 'Port' | $T8 %]</th>
52 <td>[% L.input_tag("shop.port", SELF.shop.port, class='wi-small') %]</td>
55 <th>[% 'Proxy' | $T8 %]</th>
56 <td>[% L.input_tag("shop.proxy", SELF.shop.proxy, class='wi-wide') %]</td>
60 <th>[% 'Path' | $T8 %]</th>
61 <td>[% L.input_tag("shop.path", SELF.shop.path, class='wi-wide') %]</td>
64 <th>[% 'Realm' | $T8 %]</th>
65 <td>[% L.input_tag("shop.realm", SELF.shop.realm, class='wi-wide') %]</td>
68 <th>[% 'User' | $T8 %]</th>
69 <td>[% L.input_tag("shop.login", SELF.shop.login, class='wi-wide') %]</td>
72 <th>[% 'Password' | $T8 %]</th>
73 <td>[% L.input_tag("shop.password", SELF.shop.password, class='wi-wide') %]</td>
76 <th>[% 'Last ordernumber' | $T8 %]</th>
77 <td>[% L.input_tag("shop.last_order_number", SELF.shop.last_order_number, class='wi-small') %]</td>
80 <th>[% 'Orders to fetch' | $T8 %]</th>
81 <td>[% L.input_tag("shop.orders_to_fetch", SELF.shop.orders_to_fetch, class='wi-small') %]</td>
84 <th>[% 'Transaction description' | $T8 %]</th>
85 <td>[% L.input_tag("shop.transaction_description", SELF.shop.transaction_description, class='wi-wide') %]</td>
88 <th>[% 'Default part for shipping costs' | $T8 %]</th>
89 <td>[%- P.part.picker('shop.shipping_costs_parts_id', SELF.shop.shipping_costs_parts_id,
90 class='wi-wide') %]</td>
93 <th>[% 'Use Long Description from Parts for Shop Long Description' | $T8 %]</th>
94 <td>[% L.yes_no_tag('shop.use_part_longdescription', SELF.shop.use_part_longdescription,
95 class='wi-small') %]</td>
99 <th>[% 'Obsolete' | $T8 %]</th>
100 <td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td>
107 <script type="text/javascript"><!--
108 function check_prerequisites() {
109 if ($('#shop_description').val() === "") {
110 alert(kivi.t8('The name is missing.'));
113 if ($('#shop_url').val() === "") {
114 alert(kivi.t8('The URL is missing.'));
117 if ($('#shop_port').val() === "") {
118 alert(kivi.t8('The port is missing.'));