|
3 | 3 | #{$plid}-delivery-table tr.{$plid}-disabled td { text-decoration: line-through; color: #aaa; }
|
4 | 4 | .{$plid}-disable-region-link i.delete { opacity: 0; }
|
5 | 5 | .{$plid}-disable-region-link:hover i.delete { opacity: 1; }
|
| 6 | + |
| 7 | + .is-wa2 .s-payment-shipping-logo { margin-top: 0; } |
| 8 | + .is-wa2 [name="shipping[settings][service_name]"] { width: 20rem; } |
| 9 | + .is-wa2 .{$plid}-add-column-link * { font-style: normal; font-weight: normal; } |
| 10 | + .is-wa2 #{$plid}-deliverty-settings .hint { color: var(--text-color-hint); } |
| 11 | + .is-wa2 #{$plid}-deliverty-settings { --font-size-small: 87.5%; --font-size-smaller: 75%; } |
| 12 | + .is-wa2 #{$plid}-deliverty-settings .field .value:not(:first-child) { display: block; } |
| 13 | + .is-wa2 #{$plid}-delivery-table { font-size: var(--font-size-small); } |
| 14 | + .is-wa2 #{$plid}-delivery-table input.numerical.short { width: 7rem; } |
| 15 | + @media screen and (max-width: 1300px) { |
| 16 | + .is-wa2 #{$plid}-delivery-table { font-size: var(--font-size-smaller); } |
| 17 | + } |
6 | 18 | </style>
|
7 |
| -<div class="field-group" id="{$plid}-deliverty-settings"> |
| 19 | +<div class="--field-group" id="{$plid}-deliverty-settings"> |
8 | 20 | {if $services_by_type}
|
9 | 21 | <div class="field">
|
10 | 22 | <div class="name">{$p->_w('Shipping service name')}</div>
|
|
61 | 73 | </div>
|
62 | 74 | </div>
|
63 | 75 |
|
64 |
| - <div class="field"> |
| 76 | + <div class="field vertical custom-mt-20"> |
65 | 77 | <div class="name">
|
66 | 78 | {$p->_w('Delivery rates')}
|
67 | 79 | </div>
|
68 |
| - <div class="value no-shift"> |
| 80 | + <div class="value no-shift table-scrollable-x"> |
69 | 81 |
|
70 |
| - <table id="{$plid}-delivery-table" class="zebra"> |
| 82 | + <table id="{$plid}-delivery-table" class="zebra bigdata"> |
71 | 83 | <thead id="{$plid}-delivery-table-head">
|
72 | 84 | <tr class="white">
|
73 |
| - <th colspan="2" class="nowrap {$plid}-country-column">{$p->_w('Destination')} <i class="icon10 uarr"></i></th> |
| 85 | + <th colspan="2" class="nowrap {$plid}-country-column">{$p->_w('Destination')} <i class="icon10 uarr fas fa-sort-up"></i></th> |
74 | 86 | <th id="{$plid}-calculation-type-th">
|
75 | 87 | <select id="{$plid}-calculation-type">
|
76 | 88 | <option value="all">{$p->_w('Same rate for any package weight')}</option>
|
|
91 | 103 | </td>
|
92 | 104 | </tr>
|
93 | 105 |
|
94 |
| - <tr class="white"> |
| 106 | + <tr class="white transparent"> |
95 | 107 | <td colspan="5"></td>
|
96 | 108 | </tr>
|
97 | 109 |
|
98 |
| - <tr class="white"> |
| 110 | + <tr class="white transparent"> |
99 | 111 | <td colspan="5">
|
100 | 112 | <select id="{$plid}-add-new-country">
|
101 | 113 | <option selected value="">{$p->_w('Add country')}</option>
|
|
200 | 212 | var renderDeliveryTableHead = function(weights) {
|
201 | 213 | var weight_unit = $('#{$plid}-weight-unit-input').val();
|
202 | 214 | var th = '';
|
203 |
| - th += '<th colspan="2" class="nowrap {$plid}-country-column">{$p->_w('Destination')} <i class="icon10 uarr"></i></th>'; |
| 215 | + th += '<th colspan="2" class="nowrap {$plid}-country-column">{$p->_w('Destination')} <i class="icon10 uarr fas fa-sort-up"></i></th>'; |
204 | 216 | if (!$.isArray(weights)||weights.length==0) {
|
205 | 217 | th += '<th>' + renderCalculationTypeSelector() + '</th>';
|
206 | 218 | } else {
|
207 | 219 | for (var i = 0; i < weights.length; i += 1) {
|
208 |
| - th += '<th class="{$plid}-weight-td" data-index="' + i + '"><span style="margin-left: -0.85em;">≥</span> <input type="text" class="short bold numerical {$plid}-weight-input" placeholder="0" value="' + weights[i] + '"> <span class="{$plid}-weight-unit">'+weight_unit+'</span> '; |
209 |
| - th += '<a href="javascript:void(0);" class="inline"><i class="icon10 delete {$plid}-delete-weight-link" style="margin-top: 6px;"></i></a></th>'; |
| 220 | + th += '<th class="{$plid}-weight-td nowrap" data-index="' + i + '"><span style="margin-left: -0.85em;">≥</span> <input type="text" class="short bold numerical {$plid}-weight-input" placeholder="0" value="' + weights[i] + '"> <span class="{$plid}-weight-unit">'+weight_unit+'</span> '; |
| 221 | + th += '<a href="javascript:void(0);" class="{$plid}-delete-weight-link inline"><i class="icon10 delete fas fa-times-circle text-red small" style="margin-top: 6px;"></i></a></th>'; |
210 | 222 | }
|
211 |
| - th += '<th><a href="javascript:void(0)" class="inline {$plid}-add-column-link inline-link small"><i class="icon10 add"></i><b><i>{$p->_w('Add weight')}</i></b></a></th>'; |
| 223 | + th += '<th><a href="javascript:void(0)" class="inline {$plid}-add-column-link inline-link nowrap"><i class="icon10 add fas fa-plus-circle text-green small"></i><b><i> {$p->_w('Add weight')}</i></b></a></th>'; |
212 | 224 | }
|
213 | 225 | th += '<th>{$p->_w("Transit time")}</th>';
|
214 | 226 | th += '<th></th>';
|
|
232 | 244 | }
|
233 | 245 | var icon = '';
|
234 | 246 | if (country && country.slice(0, 1) !== '%' && !region) {
|
235 |
| - icon = '<i class="icon16 country" style="background:url({$wa_url}wa-content/img/country/' + country + '.gif) no-repeat"></i>'; |
| 247 | + icon = '<i class="icon16 country icon middle" style="background:url({$wa_url}wa-content/img/country/' + country + '.gif) no-repeat"></i>'; |
236 | 248 | }
|
237 | 249 |
|
238 | 250 | var name_html = '';
|
|
259 | 271 | td.push('<td>' + renderTranslitTimeSelector(item.transit_time) + '</td>');
|
260 | 272 |
|
261 | 273 | if (!region) {
|
262 |
| - td.push('<td><a href="javascript:void(0);" class="{$plid}-delete-country-link"><i class="icon16 delete"></i></a></td>'); |
| 274 | + td.push('<td><a href="javascript:void(0);" class="{$plid}-delete-country-link"><i class="icon16 delete fas fa-trash-alt text-red"></i></a></td>'); |
263 | 275 | } else {
|
264 |
| - td.push('<td><a href="javascript:void(0);" class="{$plid}-disable-region-toggle"><i class="icon10 ' + (!item.disabled ? 'no' : 'no-bw') + '"></i></a></td>'); } |
| 276 | + td.push('<td><a href="javascript:void(0);" class="{$plid}-disable-region-toggle"><i class="icon10 fas ' + (!item.disabled ? 'no fa-trash-alt text-red' : 'no-bw fa-trash-alt text-gray') + '"></i></a></td>'); } |
265 | 277 |
|
266 | 278 | var cls = '';
|
267 | 279 | var title='';
|
|
368 | 380 |
|
369 | 381 | var loadRegions = function(after) {
|
370 | 382 | if (regions[val] === undefined) {
|
371 |
| - var loading = $('<i class="icon16 loading"></i>').insertAfter(select); |
| 383 | + var loading = $('<span><i class="icon16 loading fas fa-spinner fa-spin custom-ml-4"></i></span>').insertAfter(select); |
372 | 384 | $.post('{$xhr_url}', { country: val }, function(r) {
|
373 | 385 | loading.remove();
|
374 | 386 | regions[val] = r.data;
|
|
489 | 501 | })
|
490 | 502 | .on('click', '.{$plid}-disable-region-toggle', function() {
|
491 | 503 | var link = $(this);
|
492 |
| - var icon = link.find('i'); |
| 504 | + var icon = link.find('i,svg'); |
493 | 505 | var tr = link.closest('tr');
|
494 | 506 | var country = tr.data('country');
|
495 | 507 | var region = tr.data('region');
|
|
498 | 510 |
|
499 | 511 | var delete_link = icon.hasClass('no');
|
500 | 512 | if (delete_link) {
|
501 |
| - icon.removeClass('no').addClass('no-bw'); |
| 513 | + icon.removeClass('no text-red').addClass('no-bw text-gray'); |
502 | 514 | tr.addClass('{$plid}-disabled');
|
503 | 515 | tr.attr('title','{$p->_w("Shipping to this region will not be offered.")|escape:"js"}')
|
504 | 516 | //tr.find(':input').attr('disabled',true);
|
505 | 517 | item.disabled = true;
|
506 | 518 | } else {
|
507 |
| - icon.removeClass('no-bw').addClass('no'); |
| 519 | + icon.removeClass('no-bw text-gray').addClass('no text-red'); |
508 | 520 | tr.removeClass('{$plid}-disabled');
|
509 | 521 | //tr.find(':input').attr('disabled',null);
|
510 | 522 | tr.attr('title','');
|
|
528 | 540 | });
|
529 | 541 |
|
530 | 542 | })();</script>
|
531 |
| - |
|
0 commit comments