|
10 | 10 |
|
11 | 11 | {block name='page_content'} |
12 | 12 | {if $cart_rules} |
13 | | - <table class="table table-striped table-bordered d-none d-sm-block d-md-block"> |
14 | | - <thead class="thead-default"> |
15 | | - <tr> |
16 | | - <th>{l s='Code' d='Shop.Theme.Checkout'}</th> |
17 | | - <th>{l s='Description' d='Shop.Theme.Checkout'}</th> |
18 | | - <th>{l s='Quantity' d='Shop.Theme.Checkout'}</th> |
19 | | - <th>{l s='Value' d='Shop.Theme.Checkout'}</th> |
20 | | - <th>{l s='Minimum' d='Shop.Theme.Checkout'}</th> |
21 | | - <th>{l s='Cumulative' d='Shop.Theme.Checkout'}</th> |
22 | | - <th>{l s='Expiration date' d='Shop.Theme.Checkout'}</th> |
23 | | - </tr> |
24 | | - </thead> |
25 | | - <tbody> |
26 | | - {foreach from=$cart_rules item=cart_rule} |
| 13 | + <div class="table-wrapper"> |
| 14 | + <table class="table table-striped d-none d-xl-table"> |
| 15 | + <thead class="thead-default"> |
27 | 16 | <tr> |
28 | | - <th scope="row">{$cart_rule.code}</th> |
29 | | - <td>{$cart_rule.name}</td> |
30 | | - <td class="text-xs-end">{$cart_rule.quantity_for_user}</td> |
31 | | - <td>{$cart_rule.value}</td> |
32 | | - <td>{$cart_rule.voucher_minimal}</td> |
33 | | - <td>{$cart_rule.voucher_cumulable}</td> |
34 | | - <td>{$cart_rule.voucher_date}</td> |
| 17 | + <th>{l s='Code' d='Shop.Theme.Checkout'}</th> |
| 18 | + <th>{l s='Description' d='Shop.Theme.Checkout'}</th> |
| 19 | + <th>{l s='Quantity' d='Shop.Theme.Checkout'}</th> |
| 20 | + <th>{l s='Value' d='Shop.Theme.Checkout'}</th> |
| 21 | + <th>{l s='Minimum' d='Shop.Theme.Checkout'}</th> |
| 22 | + <th>{l s='Cumulative' d='Shop.Theme.Checkout'}</th> |
| 23 | + <th>{l s='Expiration date' d='Shop.Theme.Checkout'}</th> |
35 | 24 | </tr> |
36 | | - {/foreach} |
37 | | - </tbody> |
38 | | - </table> |
39 | | - <div class="cart-rules d-none d-sm-block d-md-none"> |
| 25 | + </thead> |
| 26 | + <tbody> |
| 27 | + {foreach from=$cart_rules item=cart_rule} |
| 28 | + <tr> |
| 29 | + <th scope="row">{$cart_rule.code}</th> |
| 30 | + <td>{$cart_rule.name}</td> |
| 31 | + <td class="text-xs-end">{$cart_rule.quantity_for_user}</td> |
| 32 | + <td>{$cart_rule.value}</td> |
| 33 | + <td>{$cart_rule.voucher_minimal}</td> |
| 34 | + <td>{$cart_rule.voucher_cumulable}</td> |
| 35 | + <td>{$cart_rule.voucher_date}</td> |
| 36 | + </tr> |
| 37 | + {/foreach} |
| 38 | + </tbody> |
| 39 | + </table> |
| 40 | + </div> |
| 41 | + <div class="cart-rules row d-flex d-xl-none"> |
40 | 42 | {foreach from=$cart_rules item=cart_rule} |
41 | | - <div class="cart-rule"> |
| 43 | + <div class="cart-rule table-wrapper col-lg-6"> |
42 | 44 | <ul> |
43 | | - <li> |
| 45 | + <li class="d-flex align-items-center justify-content-between border-bottom py-3"> |
44 | 46 | <strong>{l s='Code' d='Shop.Theme.Checkout'}</strong> |
45 | 47 | {$cart_rule.code} |
46 | 48 | </li> |
47 | | - <li> |
| 49 | + <li class="d-flex align-items-center justify-content-between border-bottom py-3"> |
48 | 50 | <strong>{l s='Description' d='Shop.Theme.Checkout'}</strong> |
49 | 51 | {$cart_rule.name} |
50 | 52 | </li> |
51 | | - <li> |
| 53 | + <li class="d-flex align-items-center justify-content-between border-bottom py-3"> |
52 | 54 | <strong>{l s='Quantity' d='Shop.Theme.Checkout'}</strong> |
53 | 55 | {$cart_rule.quantity_for_user} |
54 | 56 | </li> |
55 | | - <li> |
| 57 | + <li class="d-flex align-items-center justify-content-between border-bottom py-3"> |
56 | 58 | <strong>{l s='Value' d='Shop.Theme.Checkout'}</strong> |
57 | 59 | {$cart_rule.value} |
58 | 60 | </li> |
59 | | - <li> |
| 61 | + <li class="d-flex align-items-center justify-content-between border-bottom py-3"> |
60 | 62 | <strong>{l s='Minimum' d='Shop.Theme.Checkout'}</strong> |
61 | 63 | {$cart_rule.voucher_minimal} |
62 | 64 | </li> |
63 | | - <li> |
| 65 | + <li class="d-flex align-items-center justify-content-between border-bottom py-3"> |
64 | 66 | <strong>{l s='Cumulative' d='Shop.Theme.Checkout'}</strong> |
65 | 67 | {$cart_rule.voucher_cumulable} |
66 | 68 | </li> |
67 | | - <li> |
| 69 | + <li class="d-flex align-items-center justify-content-between py-3"> |
68 | 70 | <strong>{l s='Expiration date' d='Shop.Theme.Checkout'}</strong> |
69 | 71 | {$cart_rule.voucher_date} |
70 | 72 | </li> |
71 | 73 | </ul> |
72 | 74 | </div> |
73 | 75 | {/foreach} |
74 | 76 | </div> |
75 | | - {else} |
76 | | - <div class="alert alert-info" role="alert" data-alert="info">{l s='You do not have any vouchers.' d='Shop.Notifications.Warning'}</div> |
77 | | - {/if} |
| 77 | + {else} |
| 78 | + <div class="alert alert-info" role="alert" data-alert="info">{l s='You do not have any vouchers.' d='Shop.Notifications.Warning'}</div> |
| 79 | + {/if} |
78 | 80 | {/block} |
0 commit comments