{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2008 Polytechnique.org *}
+{* Copyright (C) 2003-2011 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* *}
{**************************************************************************}
+{if !hasPerm('directory_private') && ($medals_pub eq 'private') && ($medals|@count neq 0)}
+{assign var=hidden_medal value=true}
+{else}
+{assign var=hidden_medal value=false}
+{/if}
<table class="bicol">
<tr>
<th>
- Médailles, Décorations, Prix, ...
+ <div class="flags" style="float: left">
+ <label><input type="checkbox" name="medals_pub"{if $medals_pub eq 'public'} checked="checked"{/if}{if $hidden_medal} disabled="disabled"{/if} />
+ {icon name="flag_green" title="site public"}</label>
+ </div>
+ Médailles, Décorations, Prix…{if $hidden_medal} (masqué){/if}
</th>
</tr>
+{if !$hidden_medal}
<tr>
<td>
- <div class="flags">
- <label><input type="checkbox" name="medals_pub"{if $medals_pub eq 'public'} checked="checked"{/if} />
- {icon name="flag_green" title="site public"}</label>
- <span class="texte">
- bien que publiques (JO, ...), tu peux choisir de ne pas associer ces informations à ta fiche publique
- </span>
- </div>
<div style="clear: both; margin-top: 0.2em" id="medals">
<select name="medal_sel" onchange="updateMedal()">
- <option value=''></option>
+ <option value=''> </option>
{foreach from=$medal_list key=type item=list}
- <optgroup label="{$trad[$type]}...">
+ <optgroup label="{$fullType[$type]}…">
{foreach from=$list item=m}
<option value="{$m.id}">{$m.text}</option>
{/foreach}
{foreach from=$medals item=medal key=id}
{include file="profile/deco.medal.tpl" medal=$medal id=$id}
{/foreach}
- <div class="center"><small>Si ta décoration ou ta médaille ne figure pas dans la liste,
- <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small></div>
+ <p class="center" style="clear: both">
+ <small>
+ Si {if $isMe}ta{else}la{/if} décoration
+ ou {if $isMe}ta{else}la{/if} médaille ne figure pas dans la liste,
+ <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.
+ </small>
+ </p>
</td>
</tr>
+{/if}
</table>
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}