Revision f53ad827
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/delivery_term/list.html | ||
---|---|---|
6 | 6 |
|
7 | 7 |
[%- INCLUDE 'common/flash.html' %] |
8 | 8 |
|
9 |
<form method="post" action="controller.pl" id="form"> |
|
10 |
[% IF !DELIVERY_TERMS.size %] |
|
11 |
<p> |
|
12 |
[%- 'No delivery term has been created yet.' | $T8 %] |
|
13 |
</p> |
|
9 |
<form method="post" action="controller.pl" id="form"> |
|
10 |
<div class="wrapper"> |
|
14 | 11 |
|
15 |
[%- ELSE %] |
|
16 |
<table id="delivery_term_list"> |
|
12 |
[% IF !DELIVERY_TERMS.size %] |
|
13 |
<p> |
|
14 |
[%- 'No delivery term has been created yet.' | $T8 %] |
|
15 |
</p> |
|
16 |
[%- ELSE %] |
|
17 |
<table id="delivery_term_list" class="tbl-list wi-moderate"> |
|
17 | 18 |
<thead> |
18 |
<tr class="listheading">
|
|
19 |
<th align="center"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th>
|
|
20 |
<th>[%- 'Description' | $T8 %]</th>
|
|
21 |
<th>[%- 'Long Description' | $T8 %]</th>
|
|
22 |
</tr> |
|
19 |
<tr>
|
|
20 |
<th class="center"> <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"> </th>
|
|
21 |
<th> [%- 'Description' | $T8 %] </th>
|
|
22 |
<th> [%- 'Long Description' | $T8 %] </th>
|
|
23 |
</tr>
|
|
23 | 24 |
</thead> |
24 |
|
|
25 | 25 |
<tbody> |
26 |
[%- FOREACH delivery_term = DELIVERY_TERMS %] |
|
27 |
<tr class="listrow[% loop.count % 2 %]" id="delivery_term_id_[% delivery_term.id %]"> |
|
28 |
<td align="center" class="dragdrop"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></td> |
|
29 |
<td> |
|
30 |
<a href="[% SELF.url_for(action => 'edit', id => delivery_term.id) %]"> |
|
31 |
[%- HTML.escape(delivery_term.description) %] |
|
32 |
</a> |
|
33 |
</td> |
|
34 |
<td>[%- HTML.escape(delivery_term.description_long) %]</td> |
|
35 |
</tr> |
|
36 |
[%- END %] |
|
26 |
[%- FOREACH delivery_term = DELIVERY_TERMS %] |
|
27 |
<tr id="delivery_term_id_[% delivery_term.id %]"> |
|
28 |
<td class="center" class="dragdrop"> <img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"> </td> |
|
29 |
<td> <a href="[% SELF.url_for(action => 'edit', id => delivery_term.id) %]"> [%- HTML.escape(delivery_term.description) %] </a> </td> |
|
30 |
<td> [%- HTML.escape(delivery_term.description_long) %] </td> |
|
31 |
</tr> |
|
32 |
[%- END %] |
|
37 | 33 |
</tbody> |
38 |
</table> |
|
39 |
[%- END %] |
|
40 |
</form> |
|
34 |
</table> |
|
35 |
[%- END %] |
|
36 |
</div> |
|
37 |
</form> |
|
41 | 38 |
|
42 |
[% L.sortable_element('#delivery_term_list tbody', url => 'controller.pl?action=DeliveryTerm/reorder', with => 'delivery_term_id') %] |
|
39 |
[% L.sortable_element('#delivery_term_list tbody', url => 'controller.pl?action=DeliveryTerm/reorder', with => 'delivery_term_id') %] |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/delivery_term/list.html