X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Ffield.promo.tpl;h=36219dc6d133aca461d0d905f28706987077bf58;hb=4f494e74bb1310de55ce335324a966e31b6c72cb;hp=0f9e4d0970ce9c2356e1bf53b14ecee49857fa7a;hpb=05cb05c0bceb85d3f5d6c078403e73e8c9995325;p=platal.git diff --git a/templates/include/field.promo.tpl b/templates/include/field.promo.tpl index 0f9e4d0..36219dc 100644 --- a/templates/include/field.promo.tpl +++ b/templates/include/field.promo.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2009 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -29,26 +29,26 @@ min = document.getElementById(prefix + 'promo_min').value; max = document.getElementById(prefix + 'promo_max').value; if (isNaN(min) || (min != 0 && (min < 1900 || min > 2020))) { - range.innerHTML = 'La promotion minimum n\'est pas valide'; + range.innerHTML = 'La promotion minimum n\'est pas valide.'; return false; } else if (isNaN(max) || (max != 0 && (max < 1900 || max > 2020))) { - range.innerHTML = 'La promotion maximum n\'est pas valide'; + range.innerHTML = 'La promotion maximum n\'est pas valide.'; return false; } else if (max != 0 && min != 0 && max < min) { - range.innerHTML = 'L\'intervalle de promotion est inversé'; + range.innerHTML = 'L\'intervalle de promotion est inversé.'; return false; } else if (max == 0 && min == 0) { - range.innerHTML = 'L\'annonce est destinée à toutes les promotions'; + range.innerHTML = 'L\'annonce est destinée à toutes les promotions.'; } else if (max == 0) { - range.innerHTML = 'L\'annonce est destinée aux promotions plus jeunes que ' + min + ' (incluse)'; + range.innerHTML = 'L\'annonce est destinée aux promotions plus jeunes que ' + min + ' (incluse).'; } else if (min == 0) { - range.innerHTML = "L\'annonce est destinée aux promotions plus anciennes que " + max + ' (incluse)'; + range.innerHTML = "L\'annonce est destinée aux promotions plus anciennes que " + max + ' (incluse).'; } else if (min == max - 1) { - range.innerHTML = "L\'annonce est destinée aux promotions " + min + " et " + max; + range.innerHTML = "L\'annonce est destinée aux promotions " + min + " et " + max + "."; } else if (min == max) { - range.innerHTML = "L\'annonce est destinée à la promotion " + min; + range.innerHTML = "L\'annonce est destinée à la promotion " + min + "."; } else { - range.innerHTML = "L\'annonce est destinée aux promotions de " + min + " à " + max + ' (incluses)'; + range.innerHTML = "L\'annonce est destinée aux promotions de " + min + " à " + max + ' (incluses).'; } return true; } @@ -64,7 +64,7 @@ incluse -  (ex : 1980) +  (ex : 1980) @@ -73,7 +73,7 @@ incluse -  (ex : 2000) +  (ex : 2000)