b904a4d836a2fcb0020f318bb821d34585b7b7e9
[kivitendo-erp.git] / templates / webpages / shops / form.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%][%- USE T8 -%]
2 [%- USE Dumper -%]
3
4 [% SET style="width: 400px" %]
5 [% SET size=34 %]
6
7 <h1>[% HTML.escape(title) %]</h1>
8 [% #Dumper.dump_html(SELF.shop) %]
9 <form id="form" action="controller.pl" method="post">
10
11 [%- INCLUDE 'common/flash.html' %]
12
13 [%- L.hidden_tag("id", SELF.shop.id) %]
14
15 <table>
16   <tr>
17     <th align="right">[% 'Description' | $T8 %]</th>
18     <td>[%- L.input_tag("shop.description", SELF.shop.description, size=size) %]</td>
19   </tr>
20   <tr>
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>
23   <tr>
24   <tr>
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>
27   </tr>
28   <tr>
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>
31   </tr>
32   <tr>
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>
35   </tr>
36   <tr>
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>
39   </tr>
40   <tr>
41     <th align="right">[% 'Server' | $T8 %]</th>
42     <td>[%- L.input_tag("shop.server", SELF.shop.server, size=size) %]</td>
43   </tr>
44   <tr>
45     <th align="right">[% 'Port' | $T8 %]</th>
46     <td>[%- L.input_tag("shop.port", SELF.shop.port, size=5) %]</td>
47   </tr>
48   <tr>
49     <th align="right">[% 'Path' | $T8 %]</th>
50     <td>[%- L.input_tag("shop.path", SELF.shop.path, size=size) %]</td>
51   </tr>
52   <tr>
53     <th align="right">[% 'Realm' | $T8 %]</th>
54     <td>[%- L.input_tag("shop.realm", SELF.shop.realm, size=size) %]</td>
55   </tr>
56   <tr>
57     <th align="right">[% 'User' | $T8 %]</th>
58     <td>[%- L.input_tag("shop.login", SELF.shop.login, size=size) %]</td>
59   </tr>
60   <tr>
61     <th align="right">[% 'Password' | $T8 %]</th>
62     <td>[%- L.input_tag("shop.password", SELF.shop.password, size=size) %]</td>
63   </tr>
64   <tr>
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>
67   </tr>
68   <tr>
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>
71   </tr>
72   <tr>
73     <th align="right">[% 'Transaction description' | $T8 %]</th>
74     <td>[%- L.input_tag("shop.transaction_description", SELF.shop.transaction_description, size=size) %]</td>
75   </tr>
76   <tr>
77     <th align="right">[% 'Obsolete' | $T8 %]</th>
78     <td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td>
79   </tr>
80 </table>
81
82  <hr>
83
84 <script type="text/javascript">
85 <!--
86 function check_prerequisites() {
87   if ($('#shop_description').val() === "") {
88     alert(kivi.t8('The name is missing.'));
89     return false;
90   }
91   if ($('#shop_url').val() === "") {
92     alert(kivi.t8('The URL is missing.'));
93     return false;
94   }
95   if ($('#shop_port').val() === "") {
96     alert(kivi.t8('The port is missing.'));
97     return false;
98   }
99
100   return true;
101 }
102 -->
103 </script>
104 </form>