From 09e37980d3fb8075aaf29f7acb7a4052fedc542b Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sun, 30 Jul 2006 16:59:12 +0000 Subject: [PATCH] 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 --- templates/admin/evenements.tpl | 2 +- templates/include/form.evenement.tpl | 46 ++++++++++++++++++++---------------- templates/login.tpl | 7 +++++- 3 files changed, 32 insertions(+), 23 deletions(-) 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} -- 2.1.4