Revision f55e65a2
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/generic/select_delivery_customer.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
<h1>[% title %]</h1> |
|
4 |
|
|
5 |
<form name="Form"> |
|
6 |
|
|
7 |
<input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]"> |
|
8 |
<input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]"> |
|
9 |
|
|
10 |
<table width="100%"> |
|
11 |
<tr><td>[% 'Please select a customer from the list below.' | $T8 %]</td></tr> |
|
12 |
|
|
13 |
<tr> |
|
14 |
<td> |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
15 | 3 |
|
16 |
<table> |
|
17 |
<tr class="listheading"> |
|
18 |
<th class="listheading"> </th> |
|
19 |
[%- FOREACH col = HEADER %] |
|
20 |
<th nowrap class="listheading"><a href="[% HTML.escape(col.callback) %]">[% col.column_title %]</a></th> |
|
21 |
[%- END %] |
|
22 |
</tr> |
|
4 |
<h1>[% title %]</h1> |
|
23 | 5 |
|
24 |
[%- FOREACH row = DELIVERY %] |
|
25 |
<tr class="listrow[% loop.count % 2 %]"> |
|
26 |
<td><button type="button" onclick="customer_selected('[% loop.count %]')">Auswahl</button></td> |
|
6 |
<form name="Form"> |
|
7 |
|
|
8 |
<input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]"> |
|
9 |
<input type="hidden" name="input_id" value="[% HTML.escape(input_id) %]"> |
|
10 |
|
|
11 |
<p>[% 'Please select a customer from the list below.' | $T8 %]</p> |
|
12 |
|
|
13 |
|
|
14 |
<table class="tbl-list"> |
|
15 |
<thead> |
|
16 |
<tr> |
|
17 |
<th> </th> |
|
18 |
[% FOREACH col = HEADER %] |
|
19 |
<th><a href="[% HTML.escape(col.callback) %]">[% col.column_title %]</a></th> |
|
20 |
[% END %] |
|
21 |
</tr> |
|
22 |
</thead> |
|
23 |
<tbody> |
|
24 |
[% FOREACH row = DELIVERY %] |
|
25 |
<tr class="listrow[% loop.count % 2 %]"> |
|
26 |
<td><button type="button" onclick="customer_selected('[% loop.count %]')" class="neutral">Auswahl</button></td> |
|
27 |
<td> <input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]"> |
|
28 |
<input type="hidden" id="name_[% loop.count %]" name="name_[% loop.count %]" value="[% HTML.escape(row.name) %]"> |
|
29 |
[% HTML.escape(row.name) %] </td> |
|
30 |
<td>[% HTML.escape(row.customernumber) %]</td> |
|
31 |
<td>[% HTML.escape(row.address) %]</td> |
|
32 |
<!-- |
|
27 | 33 |
<td> |
28 |
<input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]"> |
|
29 |
<input type="hidden" id="name_[% loop.count %]" name="name_[% loop.count %]" value="[% HTML.escape(row.name) %]"> |
|
30 |
[% HTML.escape(row.name) %] |
|
34 |
<input type="hidden" id="description_[% loop.count %]" name="description_[% loop.count %]" value="[% HTML.escape(row.description) %]"> |
|
35 |
[% HTML.escape(row.description) %] |
|
31 | 36 |
</td> |
32 |
<td>[% HTML.escape(row.customernumber) %]</td> |
|
33 |
<td>[% HTML.escape(row.address) %]</td> |
|
34 |
<!-- <td> --> |
|
35 |
<!-- <input type="hidden" id="description_[% loop.count %]" name="description_[% loop.count %]" value="[% HTML.escape(row.description) %]"> --> |
|
36 |
<!-- [% HTML.escape(row.description) %] --> |
|
37 |
<!-- </td> --> |
|
38 |
</tr> |
|
39 |
[%- END %] |
|
40 |
</table> |
|
41 |
|
|
42 |
</td> |
|
43 |
</tr> |
|
44 |
</table> |
|
45 |
|
|
46 |
</form> |
|
47 |
|
|
48 |
<script type="text/javascript"> |
|
37 |
--> |
|
38 |
</tr> |
|
39 |
[% END %] |
|
40 |
</tbody> |
|
41 |
</table> |
|
42 |
|
|
43 |
</form> |
|
44 |
|
|
45 |
<script type="text/javascript"> |
|
49 | 46 |
<!-- |
50 | 47 |
function customer_selected(selected) { |
51 | 48 |
var name = document.getElementsByName("name_" + selected)[0].value |
... | ... | |
57 | 54 |
self.close(); |
58 | 55 |
} |
59 | 56 |
//--> |
60 |
</script> |
|
61 |
|
|
57 |
</script> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/generic*
Dateien in generic/* und generictranslations/*