From: Stéphane Jacob Date: Tue, 16 Dec 2008 23:16:23 +0000 (+0100) Subject: Puts name management in its own box in the profile edition and puts the code for... X-Git-Tag: xorg/1.0.0~332^2~344^2~66 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=753742b92b2d46607c7815f62b427b5763a941ec;p=platal.git Puts name management in its own box in the profile edition and puts the code for it in a separate file. --- diff --git a/templates/profile/general.name.tpl b/templates/profile/general.name.tpl new file mode 100644 index 0000000..cce78c7 --- /dev/null +++ b/templates/profile/general.name.tpl @@ -0,0 +1,120 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2008 Polytechnique.org *} +{* http://opensource.polytechnique.org/ *} +{* *} +{* This program is free software; you can redistribute it and/or modify *} +{* it under the terms of the GNU General Public License as published by *} +{* the Free Software Foundation; either version 2 of the License, or *} +{* (at your option) any later version. *} +{* *} +{* This program is distributed in the hope that it will be useful, *} +{* but WITHOUT ANY WARRANTY; without even the implied warranty of *} +{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} +{* GNU General Public License for more details. *} +{* *} +{* You should have received a copy of the GNU General Public License *} +{* along with this program; if not, write to the Free Software *} +{* Foundation, Inc., *} +{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} +{* *} +{**************************************************************************} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Noms +
+ Nom
+
+ {$nom} + +
+ Prénom
+
+ {$prenom} + +
+ Affichage de ton nom + + {if $tooltip_name}{$display_name}{else}{$display_name}{/if} + + {icon name="page_edit" title="Plus de détail"} + +
+ +{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} diff --git a/templates/profile/general.tpl b/templates/profile/general.tpl index 2fb7661..9c2e580 100644 --- a/templates/profile/general.tpl +++ b/templates/profile/general.tpl @@ -20,6 +20,9 @@ {* *} {**************************************************************************} +{include file="profile/general.name.tpl display_name=$display_name tooltip_name=$tooltip_name prenom=$prenom + nom=$nom sort_name=$sort_name yourself=$yourself search_names=$search_names} + @@ -33,35 +36,6 @@ - - - - - - - - - - - -
- Nom
-
- {$nom} - -
- Prénom
-
- {$prenom} - -
- Affichage de ton nom - - {if $tooltip_name}{$display_name}{else}{$display_name}{/if} - - {icon name="page_edit" title="Plus de détail"} - -
Promotion @@ -151,74 +125,6 @@
- - - - - - - - - - - - - - - - - - - - - - - - {if !$no_private_key}