X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fphone.tpl;h=9169e3b0426ef95edbb6308a589e63ae8c4f9942;hb=43c653a10a1c75be317696bf4c66db555606d39e;hp=db5d919683bf30da7377db6b36839f9b0f58d8ee;hpb=853ff307303faf861396c4e22dbaa56114366751;p=platal.git diff --git a/templates/profile/phone.tpl b/templates/profile/phone.tpl index db5d919..9169e3b 100644 --- a/templates/profile/phone.tpl +++ b/templates/profile/phone.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2010 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -22,23 +22,39 @@ {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} + {if t($mainField)} + {include file="include/flags.radio.tpl" name="`$telpref`[pub]" val=$tel.pub disabled=$hiddentel + mainField=$mainField mainId=$mainId subField=$subField subId=$telid} + {else} + {include file="include/flags.radio.tpl" name="`$telpref`[pub]" val=$tel.pub disabled=$hiddentel} + {/if}
Commentaire :