From e94a32f80e77882847a5179a8d4aa42bb78f108c Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 7 Oct 2013 14:50:57 +0200 Subject: [PATCH] // Localization Countries edit bootstraped --- .../countries/helpers/form/form.tpl | 82 ++++++++----------- 1 file changed, 35 insertions(+), 47 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/countries/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/countries/helpers/form/form.tpl index 88f0278cf..8f6d6923c 100644 --- a/admin-dev/themes/default/template/controllers/countries/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/countries/helpers/form/form.tpl @@ -26,45 +26,56 @@ {block name="field"} {if $input.type == 'address_layout'} -
-
+ +
-
+
{l s='Required fields for the address (click for more details):'} {$input.display_valid_fields}
-
-
- - {l s='Use the last registered format'} - - {l s='Use the default format'} - - {l s='Use my current modified format'} - - {l s='Clear format'} -
-
+
+ {else} {$smarty.block.parent} {/if} {/block} -{block name="label"} +{block name="input_row"} {if $input.name == 'standardization'} - - {else} - {$smarty.block.parent} - {/if} -{/block} {block name=script} @@ -81,22 +92,6 @@ lastLayoutModified = $(this).val(); }); - $('#useLastDefaultLayout').mouseover(function() { - switchExplanationText("{l s='This will restore your last registered address format.'}"); - }); - - $('#useDefaultLayoutSystem').mouseover(function() { - switchExplanationText("{l s='This will restore the default address format for this country.'}"); - }); - - $('#useCurrentLastModifiedLayout').mouseover(function() { - switchExplanationText("{l s='This will restore your current address format.'}"); - }); - - $('#eraseCurrentLayout').mouseover(function() { - switchExplanationText("{l s='This will delete the current address format'}"); - }); - $('#need_zip_code_on, #need_zip_code_off').change(function() { disableZipFormat(); }); @@ -107,13 +102,6 @@ disableTAASC(); }); - function switchExplanationText(text) { - $("#explanationText").fadeOut("fast", function() { - $(this).html(text); - $(this).fadeIn("fast"); - }); - } - function addFieldsToCursorPosition(pattern) { $("#ordered_fields").replaceSelection(pattern + " "); }