Revision f9073b45
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/shops/form.html | ||
---|---|---|
10 | 10 |
<h1>[% HTML.escape(title) %]</h1> |
11 | 11 |
<form id="form" action="controller.pl" method="post"> |
12 | 12 |
|
13 |
[%- INCLUDE 'common/flash.html' %]
|
|
13 |
[% INCLUDE 'common/flash.html' %] |
|
14 | 14 |
|
15 |
[%- L.hidden_tag("id", SELF.shop.id) %]
|
|
15 |
[% L.hidden_tag("id", SELF.shop.id) %] |
|
16 | 16 |
|
17 |
<table> |
|
18 |
<tr> |
|
19 |
<th align="right">[% 'Description' | $T8 %]</th> |
|
20 |
<td>[%- L.input_tag("shop.description", SELF.shop.description, size=size) %]</td> |
|
21 |
</tr> |
|
22 |
<tr> |
|
23 |
<th align="right">[% 'Shop type' | $T8 %]</th> |
|
24 |
<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 |
<tr> |
|
26 |
<tr> |
|
27 |
<th align="right">[% 'Price type' | $T8 %]</th> |
|
28 |
<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 |
</tr> |
|
30 |
<tr> |
|
31 |
<th align="right">[% 'Price Source' | $T8 %]</th> |
|
32 |
<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 |
</tr> |
|
34 |
<tr> |
|
35 |
<th align="right">[% 'Bookinggroup/Tax' | $T8 %]</th> |
|
36 |
<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 |
</tr> |
|
38 |
<tr> |
|
39 |
<th align="right">[% 'Protocol' | $T8 %]</th> |
|
40 |
<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 |
</tr> |
|
42 |
<tr> |
|
43 |
<th align="right">[% 'Server' | $T8 %]</th> |
|
44 |
<td>[%- L.input_tag("shop.server", SELF.shop.server, size=size) %]</td> |
|
45 |
</tr> |
|
46 |
<tr> |
|
47 |
<th align="right">[% 'Port' | $T8 %]</th> |
|
48 |
<td>[%- L.input_tag("shop.port", SELF.shop.port, size=5) %]</td> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th align="right">[% 'Path' | $T8 %]</th> |
|
52 |
<td>[%- L.input_tag("shop.path", SELF.shop.path, size=size) %]</td> |
|
53 |
</tr> |
|
54 |
<tr> |
|
55 |
<th align="right">[% 'Realm' | $T8 %]</th> |
|
56 |
<td>[%- L.input_tag("shop.realm", SELF.shop.realm, size=size) %]</td> |
|
57 |
</tr> |
|
58 |
<tr> |
|
59 |
<th align="right">[% 'User' | $T8 %]</th> |
|
60 |
<td>[%- L.input_tag("shop.login", SELF.shop.login, size=size) %]</td> |
|
61 |
</tr> |
|
62 |
<tr> |
|
63 |
<th align="right">[% 'Password' | $T8 %]</th> |
|
64 |
<td>[%- L.input_tag("shop.password", SELF.shop.password, size=size) %]</td> |
|
65 |
</tr> |
|
66 |
<tr> |
|
67 |
<th align="right">[% 'Last ordernumber' | $T8 %]</th> |
|
68 |
<td>[%- L.input_tag("shop.last_order_number", SELF.shop.last_order_number, size=12) %]</td> |
|
69 |
</tr> |
|
70 |
<tr> |
|
71 |
<th align="right">[% 'Orders to fetch' | $T8 %]</th> |
|
72 |
<td>[%- L.input_tag("shop.orders_to_fetch", SELF.shop.orders_to_fetch, size=12) %]</td> |
|
73 |
</tr> |
|
74 |
<tr> |
|
75 |
<th align="right">[% 'Transaction description' | $T8 %]</th> |
|
76 |
<td>[%- L.input_tag("shop.transaction_description", SELF.shop.transaction_description, size=size) %]</td> |
|
77 |
</tr> |
|
78 |
<tr> |
|
79 |
<th align="right">[% 'Obsolete' | $T8 %]</th> |
|
80 |
<td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td> |
|
81 |
</tr> |
|
17 |
<div class="wrapper"> |
|
18 |
<table class="tbl-horizontal"> |
|
19 |
<caption>[% 'Shop bearbeiten' | $T8 %]</caption> |
|
20 |
<tbody> |
|
21 |
<tr> |
|
22 |
<th>[% 'Description' | $T8 %]</th> |
|
23 |
<td>[% L.input_tag("shop.description", SELF.shop.description, class='wi-wide') %]</td> |
|
24 |
</tr> |
|
25 |
<tr> |
|
26 |
<th>[% 'Shop type' | $T8 %]</th> |
|
27 |
<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> |
|
28 |
<tr> |
|
29 |
<tr> |
|
30 |
<th>[% 'Price type' | $T8 %]</th> |
|
31 |
<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> |
|
32 |
</tr> |
|
33 |
<tr> |
|
34 |
<th>[% 'Price Source' | $T8 %]</th> |
|
35 |
<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> |
|
36 |
</tr> |
|
37 |
<tr> |
|
38 |
<th>[% 'Bookinggroup/Tax' | $T8 %]</th> |
|
39 |
<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> |
|
40 |
</tr> |
|
41 |
<tr> |
|
42 |
<th>[% 'Protocol' | $T8 %]</th> |
|
43 |
<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> |
|
44 |
</tr> |
|
45 |
<tr> |
|
46 |
<th>[% 'Server' | $T8 %]</th> |
|
47 |
<td>[% L.input_tag("shop.server", SELF.shop.server, class='wi-wide') %]</td> |
|
48 |
</tr> |
|
49 |
<tr> |
|
50 |
<th>[% 'Port' | $T8 %]</th> |
|
51 |
<td>[% L.input_tag("shop.port", SELF.shop.port, class='wi-small') %]</td> |
|
52 |
</tr> |
|
53 |
<tr> |
|
54 |
<th>[% 'Path' | $T8 %]</th> |
|
55 |
<td>[% L.input_tag("shop.path", SELF.shop.path, class='wi-wide') %]</td> |
|
56 |
</tr> |
|
57 |
<tr> |
|
58 |
<th>[% 'Realm' | $T8 %]</th> |
|
59 |
<td>[% L.input_tag("shop.realm", SELF.shop.realm, class='wi-wide') %]</td> |
|
60 |
</tr> |
|
61 |
<tr> |
|
62 |
<th>[% 'User' | $T8 %]</th> |
|
63 |
<td>[% L.input_tag("shop.login", SELF.shop.login, class='wi-wide') %]</td> |
|
64 |
</tr> |
|
65 |
<tr> |
|
66 |
<th>[% 'Password' | $T8 %]</th> |
|
67 |
<td>[% L.input_tag("shop.password", SELF.shop.password, class='wi-wide') %]</td> |
|
68 |
</tr> |
|
69 |
<tr> |
|
70 |
<th>[% 'Last ordernumber' | $T8 %]</th> |
|
71 |
<td>[% L.input_tag("shop.last_order_number", SELF.shop.last_order_number, class='wi-small') %]</td> |
|
72 |
</tr> |
|
73 |
<tr> |
|
74 |
<th>[% 'Orders to fetch' | $T8 %]</th> |
|
75 |
<td>[% L.input_tag("shop.orders_to_fetch", SELF.shop.orders_to_fetch, class='wi-small') %]</td> |
|
76 |
</tr> |
|
77 |
<tr> |
|
78 |
<th>[% 'Transaction description' | $T8 %]</th> |
|
79 |
<td>[% L.input_tag("shop.transaction_description", SELF.shop.transaction_description, class='wi-wide') %]</td> |
|
80 |
</tr> |
|
81 |
<tr> |
|
82 |
<th>[% 'Obsolete' | $T8 %]</th> |
|
83 |
<td>[% L.checkbox_tag('shop.obsolete', checked = SELF.shop.obsolete, for_submit=1) %]</td> |
|
84 |
</tr> |
|
85 |
</tbody> |
|
82 | 86 |
</table> |
87 |
</div> |
|
83 | 88 |
|
84 |
<hr> |
|
85 | 89 |
|
86 |
<script type="text/javascript"> |
|
87 |
<!-- |
|
88 |
function check_prerequisites() { |
|
89 |
if ($('#shop_description').val() === "") { |
|
90 |
alert(kivi.t8('The name is missing.')); |
|
91 |
return false; |
|
92 |
} |
|
93 |
if ($('#shop_url').val() === "") { |
|
94 |
alert(kivi.t8('The URL is missing.')); |
|
95 |
return false; |
|
96 |
} |
|
97 |
if ($('#shop_port').val() === "") { |
|
98 |
alert(kivi.t8('The port is missing.')); |
|
99 |
return false; |
|
100 |
} |
|
90 |
<script type="text/javascript"><!-- |
|
91 |
function check_prerequisites() { |
|
92 |
if ($('#shop_description').val() === "") { |
|
93 |
alert(kivi.t8('The name is missing.')); |
|
94 |
return false; |
|
95 |
} |
|
96 |
if ($('#shop_url').val() === "") { |
|
97 |
alert(kivi.t8('The URL is missing.')); |
|
98 |
return false; |
|
99 |
} |
|
100 |
if ($('#shop_port').val() === "") { |
|
101 |
alert(kivi.t8('The port is missing.')); |
|
102 |
return false; |
|
103 |
} |
|
101 | 104 |
|
102 |
return true; |
|
103 |
} |
|
104 |
--> |
|
105 |
</script> |
|
105 |
return true; |
|
106 |
} |
|
107 |
--></script> |
|
106 | 108 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/shops/form.html