diff --git a/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/form/form_ranges.tpl b/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/form/form_ranges.tpl index 8a3bf9428..18920cdcc 100644 --- a/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/form/form_ranges.tpl +++ b/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/form/form_ranges.tpl @@ -1,4 +1,4 @@ - +
diff --git a/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/view/view.tpl index aea0be3e4..aaf11bee4 100644 --- a/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/view/view.tpl @@ -35,6 +35,8 @@ var carrierlist_url = '{$carrierlist_url|addslashes}'; var nbr_steps = {$wizard_steps.steps|count}; var enableAllSteps = {if $enableAllSteps|intval == 1}true{else}false{/if}; + var need_to_validate = '{l s='Please validate the last range before create a new one.' js=1}'; + var delete_range_confirm = '{l s='Are you sure to delete this range ?' js=1}';
'); @@ -417,6 +426,21 @@ function add_new_range() return false; } +function checkFeesForEnableZone(index) +{ + is_ok = true; + $('tr.fees').each( function () { + $(this).find('td:eq('+index+') input').each( function () { + if (!$(this).attr('disabled')) + { + if ($(this).val() == '') + is_ok = false; + } + }); + }); + return is_ok; +} + function delete_new_range() { if ($('#new_range_form_placeholder').children('td').length = 1) @@ -427,19 +451,16 @@ function delete_new_range() function rebuildTabindex() { i = 1; - zones_nbr +=3; // corresponds to the third input text (max, min and all) $('#zones_table tr').each( function () - { + { + j = i; $(this).children('td').each( function () { - if ($(this).index() > 2) - j = i + zones_nbr; - else if ($(this).index() == 2) - j = i; - + j = zones_nbr + j; if ($(this).index() >= 2 && $(this).find('input')) - $(this).find('input').attr('tabindex', j); + $(this).find('input').attr('tabindex', j); + console.log(j); }); - i ++; + i++; }); } \ No newline at end of file
*