Merge branch 'xorg/maint'
[platal.git] / templates / profile / general.private_name.tpl
CommitLineData
0e1dfbad
SJ
1{**************************************************************************}
2{* *}
c441aabe 3{* Copyright (C) 2003-2014 Polytechnique.org *}
0e1dfbad
SJ
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{assign var=type value=$name.type}
fd58ac20 24<tr class="names_advanced_private" id="search_name_{$id}" {if !$errors.search_names && !t($new_name)}style="display: none"{/if}>
0e1dfbad
SJ
25 <td>
26 <span class="flags">{icon name="flag_red" title="site privé"}</span>{if !t($new_name)}&nbsp;{$other_names.$type}{else}
27 <select name="search_names[private_names][{$id}][type]">
28 {foreach from=$other_names item=description key=type}
29 <option value="{$type}">{$description}</option>
30 {/foreach}
31 </select>
32 {/if}
33 </td>
34 <td>
35 {if !t($new_name)}<input type="hidden" name="search_names[private_names][{$id}][type]" value="{$type}" />{/if}
36 <input type="text" name="search_names[private_names][{$id}][name]" value="{$name.name}"
37 size="25" onkeyup="updateNameDisplay({$isFemale});"/>
38 </td>
39 <td>
40 <a href="javascript:removeSearchName({$id}, {$isFemale})">{icon name=cross title="Supprimer ce nom"}</a>
41 </td>
42</tr>
43
448c8cdc 44{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}