{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}
<div class="titre" style="float: left; width: 2.5em">N°{$telid+1}</div>
<div style="float: left;">
+ {if $hiddentel}
+ Numéro {if $tel.type eq 'fixed'}fixe{elseif $tel.type eq 'mobile'}de mobile{else}de fax{/if} (masqué)
+ <input type="hidden" name="{$telpref}[type]" value="{$tel.type}" />
+ <input type="hidden" name="{$telpref}[display]" value="{$tel.display}" />
+ {else}
<select name="{$telpref}[type]">
<option value="fixed"{if $tel.type eq 'fixed'} selected="selected"{/if}>Fixe</option>
<option value="mobile"{if $tel.type eq 'mobile'} selected="selected"{/if}>Mobile</option>
<option value="fax"{if $tel.type eq 'fax'} selected="selected"{/if}>Fax</option>
</select>
<input type="text" size="19" maxlength="28" name="{$telpref}[display]" {if $tel.error}class="error"{/if} value="{$tel.display}" />
- <a class="removeTel" href="javascript:removeTel('{$prefname}','{$prefid}','{$telid}')">
- {icon name=cross title="Supprimer ce numéro de téléphone"}
- </a>
<a id="{$id}_addComment" href="javascript:addPhoneComment('{$id}')" {if $tel.comment neq ''}style="display:none" {/if}>
{icon name=comments title="Ajouter un commentaire"}
</a>
+ {/if}
+ <a class="removeTel" href="javascript:removeTel('{$prefname}','{$prefid}','{$telid}')">
+ {icon name=cross title="Supprimer ce numéro de téléphone"}
+ </a>
</div>
<div style="float: right" class="flags">
- {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}
</div>
<div id="{$id}_comment" style="clear: both;{if $tel.comment eq ''} display:none{/if}">
Commentaire :