Fixes some XHTML strict errors or warnings
[platal.git] / templates / profile / general.searchname.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2010 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22
23 <tr id="search_name_{$i}"{if $class} class="{$class}" {if !$error_name}style="{$style}"{/if}{/if}>
24   <td>
25     <input type="hidden" name="search_names[{$i}][always_displayed]" value="{$sn.always_displayed}"/>
26     <input type="hidden" name="search_names[{$i}][has_particle]" value="{$sn.has_particle}"/>
27     <span class="flags">
28       <input id="flag_cb_{$i}" type="checkbox" checked="checked" disabled="disabled"/>
29       <span id="flag_{$i}">{if $sn.pub}{icon name="flag_green" title="site public"}
30       {else}{icon name="flag_red" title="site privĂ©"}{/if}</span>
31     </span>&nbsp;
32     {if $sn_type_list}
33     <select id="search_name_select_{$i}" name="search_names[{$i}][typeid]"
34       onchange="changeNameFlag({$i});updateNameDisplay({$isFemale});">
35         {foreach from=$sn_type_list item=sn_type}
36           <option value="{$sn_type.id}">{$sn_type.name}</option>
37         {/foreach}
38     </select>
39     {foreach from=$sn_type_list item=sn_type}
40     <input type="hidden" name="sn_type_{$sn_type.id}_{$i}" value="{$sn_type.pub}"/>
41     {/foreach}
42     {else}
43     {$sn.type_name}
44     <input type="hidden" name="search_names[{$i}][pub]" value="{$sn.pub}"/>
45     <input type="hidden" name="search_names[{$i}][type]" value="{$sn.type}"/>
46     <input type="hidden" name="search_names[{$i}][type_name]" value="{$sn.type_name}"/>
47     <input type="hidden" name="search_names[{$i}][typeid]" value="{$sn.typeid}"/>
48     {/if}
49   </td>
50   <td>
51     <input type="text" name="search_names[{$i}][name]" value="{$sn.name}"
52       {if $sn.has_particle}title="Coche la case en bout de ligne si ton nom commence par une particle."{/if}
53       {if $sn.error} class="error"{/if} size="25" onkeyup="updateNameDisplay({$isFemale});"/>
54   </td>
55   <td>
56     {if $sn.has_particle}<input type="checkbox"{if $sn.particle neq ''} checked="checked"{/if}
57       title="Coche cette case si ton nom commence par une particle." onchange="toggleParticle({$i});"/>
58     {/if}
59     <input type="hidden"  name="search_names[{$i}][particle]" value="{$sn.particle}"/>
60     {if !$sn.always_displayed}<a href="javascript:removeSearchName({$i},{$isFemale})">
61       {icon name=cross title="Supprimer ce nom"}
62     </a>{/if}
63   </td>
64 </tr>
65
66 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}