X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fevents%2Fform.tpl;h=a1e1dc5876f129124fa34fde3833aa2cba25949e;hb=4fad11800bb571cc996ca8291adb617d5da42098;hp=543b296032879125ee4230e77bc401e69f7ce636;hpb=1b602af5faa3a20d03b7ec28ffcba3e7f36a8514;p=platal.git diff --git a/templates/events/form.tpl b/templates/events/form.tpl index 543b296..a1e1dc5 100644 --- a/templates/events/form.tpl +++ b/templates/events/form.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,12 +20,24 @@ {* *} {**************************************************************************} -{assign var=texte value=$smarty.request.texte|default:$texte} -{assign var=titre value=$smarty.request.titre|default:$titre} -{assign var=promo_min value=$smarty.request.promo_min|default:$promo_min} -{assign var=promo_max value=$smarty.request.promo_max|default:$promo_max} -{assign var=peremption value=$smarty.request.peremption|default:$peremption} -{assign var=important value=$smarty.request.important|default:$important} +{if $smarty.request.texte} +{assign var=texte value=$smarty.request.texte|smarty:nodefaults} +{/if} +{if $smarty.request.titre} +{assign var=titre value=$smarty.request.titre|smarty:nodefaults} +{/if} +{if $smarty.request.promo_min} +{assign var=promo_min value=$smarty.request.promo_min|smarty:nodefaults} +{/if} +{if $smarty.request.promo_max} +{assign var=promo_max value=$smarty.request.promo_max|smarty:nodefaults} +{/if} +{if $smarty.request.expiration} +{assign var=expiration value=$smarty.request.expiration|smarty:nodefaults} +{/if} +{if $smarty.request.important} +{assign var=important value=$smarty.request.important|smarty:nodefaults} +{/if}