X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fphone.tpl;h=396bbc1cea26739f1eaa81645924eb0ef3172046;hb=07e4a9a091ac34c84129c230cde455de34e1ae91;hp=c3781026e0cfde0c392a012895602d0556d54182;hpb=12ddbc2037b16496dfb9d91c4f7091850146fcde;p=platal.git diff --git a/templates/profile/phone.tpl b/templates/profile/phone.tpl index c378102..396bbc1 100644 --- a/templates/profile/phone.tpl +++ b/templates/profile/phone.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2010 Polytechnique.org *} +{* Copyright (C) 2003-2014 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -22,7 +22,7 @@ {assign var=telpref value="`$prefname`[`$telid`]"} {assign var=id value="`$prefid`_`$telid`"} -{if !hasPerm('directory_private') && ($tel.pub eq 'private') && !empty($tel.display)} +{if !hasPerm('directory_private') && ($tel.pub eq 'private') && !empty($tel.display|smarty:nodefaults)} {assign var=hiddentel value=true} {else} {assign var=hiddentel value=false} @@ -49,8 +49,12 @@
- {include file="include/flags.radio.tpl" name="`$telpref`[pub]" - val=$tel.pub disabled=$hiddentel} + {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 :