X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fphone.tpl;h=767e3d1f870534470788076137000a134e887fb3;hb=574f3cc38f9e059b77972e71fbbd8cc6a6330c15;hp=e12cec4034908528c4d6447119ad0414b456d58c;hpb=8a43972f58f0a77015ae9e509f1c073d188874d2;p=platal.git diff --git a/templates/profile/phone.tpl b/templates/profile/phone.tpl index e12cec4..767e3d1 100644 --- a/templates/profile/phone.tpl +++ b/templates/profile/phone.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2009 Polytechnique.org *} +{* Copyright (C) 2003-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -22,29 +22,40 @@ {assign var=telpref value="`$prefname`[`$telid`]"} {assign var=id value="`$prefid`_`$telid`"} +{if !hasPerm('directory_private') && ($tel.pub eq 'private') && !empty($tel.display|smarty:nodefaults)} +{assign var=hiddentel value=true} +{else} +{assign var=hiddentel value=false} +{/if}
N°{$telid+1}
+ {if $hiddentel} + Numéro {if $tel.type eq 'fixed'}fixe{elseif $tel.type eq 'mobile'}de mobile{else}de fax{/if} (masqué) + + + {else} - - - - {icon name=cross title="Supprimer ce numéro de téléphone"} - + {icon name=comments title="Ajouter un commentaire"} + {/if} + + {icon name=cross title="Supprimer ce numéro de téléphone"} +
- {include file="include/flags.radio.tpl" name="`$telpref`[pub]" val=$tel.pub} + {include file="include/flags.radio.tpl" name="`$telpref`[pub]" + val=$tel.pub disabled=$hiddentel}
Commentaire : - + {icon name=cross title="Supprimer le commentaire"}