From: x2003bruneau Date: Sun, 30 Jul 2006 16:59:12 +0000 (+0000) Subject: Add a preview of the event message in edition form X-Git-Tag: xorg/0.9.11~184 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=09e37980d3fb8075aaf29f7acb7a4052fedc542b;p=platal.git Add a preview of the event message in edition form git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@730 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/templates/admin/evenements.tpl b/templates/admin/evenements.tpl index 84c3c72..b43b20b 100644 --- a/templates/admin/evenements.tpl +++ b/templates/admin/evenements.tpl @@ -82,7 +82,7 @@ {if $ev.preview} - {$ev.texte|hde|nl2br} + {$ev.texte|smarty:nodefaults|nl2br} {/if} diff --git a/templates/include/form.evenement.tpl b/templates/include/form.evenement.tpl index 80eff3a..0caa784 100644 --- a/templates/include/form.evenement.tpl +++ b/templates/include/form.evenement.tpl @@ -25,18 +25,25 @@ Contenu du message + {if strlen(trim($texte))} + + + {$texte|smarty:nodefaults|nl2br} + + + {/if} - Titre + Titre - Texte + Texte - + - Essaie de faire un texte court, une annonce ne doit pas excéder 800 caractères soit une douzaine de ligne. Tu en es déjà à caractères. + Essaie de faire un texte court, une annonce ne doit pas excéder 800 caractères soit une douzaine de ligne. Tu en es déjà à caractères. + - - - - - +
Informations complémentaires
- Promo min * (incluse) -
+ + + + - - + + - - + diff --git a/templates/login.tpl b/templates/login.tpl index 8558878..93d210d 100644 --- a/templates/login.tpl +++ b/templates/login.tpl @@ -83,7 +83,12 @@ Bienvenue {$smarty.session.prenom}
Promo min* - -  0 signifie pas de minimum + incluse +  (0 signifie pas de minimum)
- Promo max * (incluse) -
Promo max* - -  0 signifie pas de maximum + incluse +  (0 signifie pas de maximum)
+
* sert à limiter l'affichage de l'annonce aux camarades appartenant à certaines promos seulement.
- {icon name=cross title="Cacher cet article"} + {assign var="previd" value=$ev.id} {tidy}