X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fevents%2Fform.tpl;h=6f7aa840ae95b1b3b5a61a753331d9668a401469;hb=85ddf64feaef343f5eb818bff53fc3c718428c59;hp=67472ee3d91f6bdcfbf9d6a48fb683b7274e5c83;hpb=8230e9f8eff954fb1103c8bdcf0d22557d419ae7;p=platal.git diff --git a/templates/events/form.tpl b/templates/events/form.tpl index 67472ee..6f7aa84 100644 --- a/templates/events/form.tpl +++ b/templates/events/form.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -32,8 +32,8 @@ {if $smarty.request.promo_max} {assign var=promo_max value=$smarty.request.promo_max|smarty:nodefaults} {/if} -{if $smarty.request.peremption} -{assign var=peremption value=$smarty.request.peremption|smarty:nodefaults} +{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} @@ -57,12 +57,7 @@ document.getElementById('info').style.display = 'none'; } var page = 'events/preview?titre=' + encodeURIComponent(titre) + '&texte=' + encodeURIComponent(texte); - if (is_IE) { - {/literal} - page = "{$globals->baseurl}/" + page; - {literal} - } - Ajax.update_html('preview', page, null); + $('#preview').updateHtml(page); return false; } {/literal} @@ -121,14 +116,14 @@ {if $eid && $img}
Image actuelle
- Image actuelle
+ Image actuelle
{/if} {if $upload && $upload->exists()}
Nouvelle image
- Nouvelle Image
+ Nouvelle Image
{/if} @@ -170,7 +165,7 @@ Dernier jour d'affichage - {valid_date name="peremption" value=$peremption to=60} + {valid_date name="expiration" value=$expiration to=60} {if $admin_evts}