From 753742b92b2d46607c7815f62b427b5763a941ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Wed, 17 Dec 2008 00:16:23 +0100 Subject: [PATCH] Puts name management in its own box in the profile edition and puts the code for it in a separate file. --- templates/profile/general.name.tpl | 120 +++++++++++++++++++++++++++++++++++++ templates/profile/general.tpl | 100 +------------------------------ 2 files changed, 123 insertions(+), 97 deletions(-) create mode 100644 templates/profile/general.name.tpl 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} -- 2.1.4