X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fminifiche.tpl;h=b1ff3561bc9c4a76502cc25ad513fac3138e7a50;hb=f4f8db6b5d4bd44062868f631c6aa959d22c3022;hp=a670f59af8b8bd03131ea6dce23eda4f5d51974f;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index a670f59..b1ff356 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2004 Polytechnique.org *} +{* Copyright (C) 2003-2007 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -22,71 +22,73 @@ {if !$c.inscrit || $c.dcd}
{/if} -
+
{if $c.iso3166} - {$c.nat}  + {$c.nat}  {/if} (X {$c.promo}{if $c.app0text}, {applis_fmt type=$c.app0type text=$c.app0text url=$c.app0url} {/if}{if $c.app1text}, {applis_fmt type=$c.app1type text=$c.app1text url=$c.app1url}{/if}) {if $c.dcd}décédé{if $c.sexe}e{/if} le {$c.deces|date_format}{/if} - {min_auth level="cookie"} + {if $smarty.session.auth ge AUTH_COOKIE} {if !$c.dcd && !$c.wasinscrit} - clique ici si tu connais son adresse email ! + clique ici si tu connais son adresse email ! + {/if} {/if} - {/min_auth}
+
- {min_auth level="cookie"} - {if !$c.wasinscrit} + {if $smarty.session.auth ge AUTH_COOKIE} + {if !$c.wasinscrit && !$c.dcd} + {if $show_action eq ajouter} + {* + *}{icon name=add title="Ajouter à la liste de mes surveillances"} + {else} + {* + *}{icon name=cross title="Retirer de la liste de mes surveillances"} + {/if} + {elseif $c.wasinscrit} + {* + *}{icon name=user_suit title="Afficher la fiche"} + {if !$c.dcd} + {* + *}{icon name=vcard title="Afficher la carte de visite"} {if $show_action eq ajouter} - {* - *}Ajouter à la liste de mes surveillances + {* + *}{icon name=add title="Ajouter à mes contacts"} {else} - {* - *}Retirer de la liste de mes surveillances + {* + *}{icon name=cross title="Retirer de mes contacts"} + {/if} {/if} - {elseif !$c.dcd} - {* - *}Afficher la fiche - {* - *}Afficher la carte de visite - {* - *}{if $show_action eq {/if} - {/min_auth} + {/if} - {perms level='admin'} - {if !$c.wasinscrit} - {* - *}admin - {elseif !$c.dcd} - {* - *}admin + {if $smarty.session.perms eq admin} + [{if !$c.wasinscrit && !$c.dcd} + {* + *}{icon name=email title="marketter user"} {/if} - {* - *}AX - {/perms} + {* + *}{icon name=wrench title="administrer user"} + {* + *}{icon name=user_gray title="fiche AX"}] + {/if} +
{if $c.wasinscrit} - {if $c.web || $c.mobile || $c.countrytxt || $c.city || $c.region || $c.entreprise || $c.freetext} + {if $c.web || $c.mobile || $c.countrytxt || $c.city || $c.region || $c.entreprise || $c.freetext || (!$c.dcd && !$c.actif )} {if $c.web} @@ -100,7 +102,7 @@ {/if} - {if $c.mobile} + {if $c.mobile && !$c.dcd} @@ -121,6 +123,16 @@ {/if} + {if !$c.dcd && !$c.actif && $c.wasinscrit && $smarty.session.auth ge AUTH_COOKIE} + + + + {/if}
{$c.city}{if $c.city && $c.countrytxt}, {/if}{$c.countrytxt}
Mobile: {$c.mobile}{$c.freetext|nl2br}
+ Ce camarade n'a plus d'adresse redirection valide. + + Si tu en connais une, n'hésite pas à nous la transmettre + +
{/if} {/if}