X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fevents%2Fform.tpl;h=6f7aa840ae95b1b3b5a61a753331d9668a401469;hb=5aa88bdec76ee12f85da2c8b7b90407c02538c87;hp=93c83a0219d6010868324f76d6c5e96755e2d6df;hpb=7f12e3b4113791f3372f11572a205925d7bb6b97;p=platal.git diff --git a/templates/events/form.tpl b/templates/events/form.tpl index 93c83a0..6f7aa84 100644 --- a/templates/events/form.tpl +++ b/templates/events/form.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 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} @@ -179,7 +174,8 @@ Importance - Marquer cette annonce comme très importante + {/if}