]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/shops/form.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / shops / form.html
1 [% USE HTML %]
2 [% USE LxERP %]
3 [% USE L %]
4 [% USE P %]
5 [% USE T8 %]
6
7 [% SET style="width: 400px" %]
8 [% SET size=34 %]
9
10 <h1>[% HTML.escape(title) %]</h1>
11 <form id="form" action="controller.pl" method="post">
12
13 [% INCLUDE 'common/flash.html' %]
14
15 [% L.hidden_tag("id", SELF.shop.id) %]
16
17 <div class="wrapper">
18 <table class="tbl-horizontal">
19   <caption>[% 'Shopconfiguration' %]</caption>
20   <colgroup><col class="wi-wide"></colgroup>
21   <tbody>
22     <tr>
23       <th>[% 'Description' | $T8 %]</th>
24       <td>[% L.input_tag("shop.description", SELF.shop.description, class='wi-wide') %]</td>
25     </tr>
26     <tr>
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>
29       <tr>
30         <tr>
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>
33         </tr>
34         <tr>
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>
37         </tr>
38         <tr>
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>
41         </tr>
42         <tr>
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>
45         </tr>
46         <tr>
47           <th>[% 'Server' | $T8 %]</th>
48           <td>[% L.input_tag("shop.server", SELF.shop.server, class='wi-wide') %]</td>
49         </tr>
50         <tr>
51           <th>[% 'Port' | $T8 %]</th>
52           <td>[% L.input_tag("shop.port", SELF.shop.port, class='wi-small') %]</td>
53         </tr>
54         <tr>
55           <th>[% 'Proxy' | $T8 %]</th>
56           <td>[% L.input_tag("shop.proxy", SELF.shop.proxy, class='wi-wide') %]</td>
57         </tr>
58         <tr>
59         <tr>
60           <th>[% 'Path' | $T8 %]</th>
61           <td>[% L.input_tag("shop.path", SELF.shop.path, class='wi-wide') %]</td>
62         </tr>
63         <tr>
64           <th>[% 'Realm' | $T8 %]</th>
65           <td>[% L.input_tag("shop.realm", SELF.shop.realm, class='wi-wide') %]</td>
66         </tr>
67         <tr>
68           <th>[% 'User' | $T8 %]</th>
69           <td>[% L.input_tag("shop.login", SELF.shop.login, class='wi-wide') %]</td>
70         </tr>
71         <tr>
72           <th>[% 'Password' | $T8 %]</th>
73           <td>[% L.input_tag("shop.password", SELF.shop.password, class='wi-wide') %]</td>
74         </tr>
75         <tr>
76           <th>[% 'Last ordernumber' | $T8 %]</th>
77           <td>[% L.input_tag("shop.last_order_number", SELF.shop.last_order_number, class='wi-small') %]</td>
78         </tr>
79         <tr>
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>
82         </tr>
83         <tr>
84           <th>[% 'Transaction description' | $T8 %]</th>
85           <td>[% L.input_tag("shop.transaction_description", SELF.shop.transaction_description, class='wi-wide') %]</td>
86         </tr>
87         <tr>
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>
91         </tr>
92         <tr>
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>
96         </tr>
97
98         <tr>
99           <th>[% 'Obsolete' | $T8 %]</th>
100           <td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td>
101         </tr>
102   </tbody>
103 </table>
104 </div>
105
106
107 <script type="text/javascript"><!--
108   function check_prerequisites() {
109     if ($('#shop_description').val() === "") {
110       alert(kivi.t8('The name is missing.'));
111       return false;
112     }
113     if ($('#shop_url').val() === "") {
114       alert(kivi.t8('The URL is missing.'));
115       return false;
116     }
117     if ($('#shop_port').val() === "") {
118       alert(kivi.t8('The port is missing.'));
119       return false;
120     }
121
122     return true;
123   }
124 --></script>
125 </form>