{**************************************************************************}
{* *}
-{* 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 *}
{* *}
{**************************************************************************}
-<tr id="search_name_{$i}"{if $class} class="{$class}" {if !$error_name}style="{$style}"{/if}{/if}>
+<tr id="search_name_{$i}"{if t($class)} class="{$class}" {if !t($error_name)}style="{$style}"{/if}{/if}>
<td>
<input type="hidden" name="search_names[{$i}][always_displayed]" value="{$sn.always_displayed}"/>
<input type="hidden" name="search_names[{$i}][has_particle]" value="{$sn.has_particle}"/>
<span class="flags">
- <input id="flag_cb_{$i}" type="checkbox" checked="checked" disabled="disabled"/>
<span id="flag_{$i}">{if $sn.pub}{icon name="flag_green" title="site public"}
{else}{icon name="flag_red" title="site privé"}{/if}</span>
</span>
- {if $sn_type_list}
- <select id="search_name_select_{$i}" name="search_names[{$i}][typeid]" onchange="changeNameFlag({$i});updateNameDisplay();">
+ {if t($sn_type_list)}
+ <select id="search_name_select_{$i}" name="search_names[{$i}][typeid]"
+ onchange="changeNameFlag({$i});updateNameDisplay({$isFemale});">
{foreach from=$sn_type_list item=sn_type}
<option value="{$sn_type.id}">{$sn_type.name}</option>
{/foreach}
<td>
<input type="text" name="search_names[{$i}][name]" value="{$sn.name}"
{if $sn.has_particle}title="Coche la case en bout de ligne si ton nom commence par une particle."{/if}
- {if $sn.error} class="error"{/if} size="25" onkeyup="updateNameDisplay();"/>
+ {if t($sn.error)} class="error"{/if} size="25" onkeyup="updateNameDisplay({$isFemale});"/>
</td>
<td>
{if $sn.has_particle}<input type="checkbox"{if $sn.particle neq ''} checked="checked"{/if}
title="Coche cette case si ton nom commence par une particle." onchange="toggleParticle({$i});"/>
{/if}
<input type="hidden" name="search_names[{$i}][particle]" value="{$sn.particle}"/>
- {if !$sn.always_displayed}<a href="javascript:removeSearchName({$i})">
+ {if !$sn.always_displayed}<a href="javascript:removeSearchName({$i},{$isFemale})">
{icon name=cross title="Supprimer ce nom"}
</a>{/if}
</td>