Adds explanations for the different types of names.
[platal.git] / templates / profile / general.searchname.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2008 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}" style="{$style}"{/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]" onchange="changeNameFlag({$i});updateNameDisplay();">
34         {foreach from=$sn_type_list item=sn_type}
35           <option value="{$sn_type.id}">{$sn_type.name}</option>
36         {/foreach}
37     </select>
38     {foreach from=$sn_type_list item=sn_type}
39     <input type="hidden" name="sn_type_{$sn_type.id}_{$i}" value="{$sn_type.pub}"/>
40     {/foreach}
41     {else}
42     {$sn.type}
43     <input type="hidden" name="search_names[{$i}][pub]" value="{$sn.pub}"/>
44     <input type="hidden" name="search_names[{$i}][type]" value="{$sn.type}"/>
45     <input type="hidden" name="search_names[{$i}][typeid]" value="{$sn.typeid}"/>
46     {/if}
47   </td>
48   <td>
49     <input type="text" name="search_names[{$i}][name]" value="{$sn.name}"
50       {if $sn.has_particle}title="Coche la case en bout de ligne si ton nom commence par une particle."{/if}
51       {if $sn.error} class="error"{/if} size="25" onkeyup="updateNameDisplay();"/>
52   </td>
53   <td>
54     {if $sn.has_particle}<input name="search_names[{$i}][particle]" type="checkbox"
55       title="Coche cette case si ton nom commence par une particle."
56       {if $sn.particle neq ''} checked="checked"{/if} onchange="updateNameDisplay();"/>
57     {else}
58       <input type="hidden"  name="search_names[{$i}][particle]" value=""/>{/if}
59     {if !$sn.always_displayed}<a href="javascript:removeSearchName({$i})">
60       {icon name=cross title="Supprimer ce nom"}
61     </a>{/if}
62   </td>
63 </tr>
64
65 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}