1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%][%- USE T8 -%]
4 [% SET style="width: 400px" %]
7 <h1>[% HTML.escape(title) %]</h1>
8 [% #Dumper.dump_html(SELF.shop) %]
9 <form id="form" action="controller.pl" method="post">
11 [%- INCLUDE 'common/flash.html' %]
13 [%- L.hidden_tag("id", SELF.shop.id) %]
17 <th align="right">[% 'Description' | $T8 %]</th>
18 <td>[%- L.input_tag("shop.description", SELF.shop.description, size=size) %]</td>
21 <th align="right">[% 'Shop type' | $T8 %]</th>
22 <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>
25 <th align="right">[% 'Price type' | $T8 %]</th>
26 <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>
29 <th align="right">[% 'Price Source' | $T8 %]</th>
30 <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>
33 <th align="right">[% 'Bookinggroup/Tax' | $T8 %]</th>
34 <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>
37 <th align="right">[% 'Protocol' | $T8 %]</th>
38 <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>
41 <th align="right">[% 'Server' | $T8 %]</th>
42 <td>[%- L.input_tag("shop.server", SELF.shop.server, size=size) %]</td>
45 <th align="right">[% 'Port' | $T8 %]</th>
46 <td>[%- L.input_tag("shop.port", SELF.shop.port, size=5) %]</td>
49 <th align="right">[% 'Path' | $T8 %]</th>
50 <td>[%- L.input_tag("shop.path", SELF.shop.path, size=size) %]</td>
53 <th align="right">[% 'Realm' | $T8 %]</th>
54 <td>[%- L.input_tag("shop.realm", SELF.shop.realm, size=size) %]</td>
57 <th align="right">[% 'User' | $T8 %]</th>
58 <td>[%- L.input_tag("shop.login", SELF.shop.login, size=size) %]</td>
61 <th align="right">[% 'Password' | $T8 %]</th>
62 <td>[%- L.input_tag("shop.password", SELF.shop.password, size=size) %]</td>
65 <th align="right">[% 'Last ordernumber' | $T8 %]</th>
66 <td>[%- L.input_tag("shop.last_order_number", SELF.shop.last_order_number, size=12) %]</td>
69 <th align="right">[% 'Orders to fetch' | $T8 %]</th>
70 <td>[%- L.input_tag("shop.orders_to_fetch", SELF.shop.orders_to_fetch, size=12) %]</td>
73 <th align="right">[% 'Transaction description' | $T8 %]</th>
74 <td>[%- L.input_tag("shop.transaction_description", SELF.shop.transaction_description, size=size) %]</td>
77 <th align="right">[% 'Obsolete' | $T8 %]</th>
78 <td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td>
84 <script type="text/javascript">
86 function check_prerequisites() {
87 if ($('#shop_description').val() === "") {
88 alert(kivi.t8('The name is missing.'));
91 if ($('#shop_url').val() === "") {
92 alert(kivi.t8('The URL is missing.'));
95 if ($('#shop_port').val() === "") {
96 alert(kivi.t8('The port is missing.'));