From 92412b28cbc789932e041615d45f5bb8dd8c7874 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Fri, 31 Aug 2007 23:33:51 +0200 Subject: [PATCH] Start working on the "polytechnique" page Signed-off-by: Florent Bruneau --- modules/profile/groups.inc.php | 46 +++++++ modules/profile/page.inc.php | 1 + templates/profile/adresses.address.tpl | 4 +- templates/profile/poly.tpl | 224 +++++++++++---------------------- 4 files changed, 121 insertions(+), 154 deletions(-) create mode 100644 modules/profile/groups.inc.php diff --git a/modules/profile/groups.inc.php b/modules/profile/groups.inc.php new file mode 100644 index 0000000..40b8b61 --- /dev/null +++ b/modules/profile/groups.inc.php @@ -0,0 +1,46 @@ +settings['section'] = $this->settings['binets'] + = $this->settings['groupesx'] + = null; + } + + protected function fetchData() + { + parent::fetchData(); + } + + public function prepare(PlatalPage &$page) + { + parent::prepare($page); + } +} + +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +?> diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index 0d8b29c..4566a10 100644 --- a/modules/profile/page.inc.php +++ b/modules/profile/page.inc.php @@ -225,6 +225,7 @@ abstract class ProfilePage implements PlWizardPage require_once dirname(__FILE__) . '/general.inc.php'; require_once dirname(__FILE__) . '/addresses.inc.php'; +require_once dirname(__FILE__) . '/groups.inc.php'; // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?> diff --git a/templates/profile/adresses.address.tpl b/templates/profile/adresses.address.tpl index 09d13b0..2f58968 100644 --- a/templates/profile/adresses.address.tpl +++ b/templates/profile/adresses.address.tpl @@ -53,7 +53,9 @@ -
{include file="include/flags.radio.tpl" name="`$adpref`[pub]" notable=true val=$adr.pub}
+
+ {include file="include/flags.radio.tpl" name="`$adpref`[pub]" notable=true val=$adr.pub} +
{include file="geoloc/form.address.tpl" name=$adpref id=$adid adr=$adr}
diff --git a/templates/profile/poly.tpl b/templates/profile/poly.tpl index c914139..866d6a0 100644 --- a/templates/profile/poly.tpl +++ b/templates/profile/poly.tpl @@ -23,167 +23,85 @@ {literal} {/literal} -
- - - - - - - - - - - - - - - - - - - - {foreach from=$binets item=b} - - - - - - {/foreach} - - - - - - - {foreach from=$groupesx item=g} - - - - - - {/foreach} - - - -
- Informations polytechniciennes -
- - - - - -
- - - privé -
-
- (ex-)Section - - - -   -
- (ex-)Binet(s) - - {$b.text} - - - retirer - -
-   - - - - - ajouter - -
- Groupe(s) X - - {$g.text} - - - retirer - -
-   - - - - - ajouter - -
-
+ + + + + + + + + + + + + + + + + + + + + + +
+ Informations polytechniciennes +
+ + privé +
+ + + +
+ + + + {icon name="add" title="Ajouter ce binet"} +
Groupe(s) X + + {icon name="add" title="Ajouter ce groupe X"} +
+ + {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} -- 2.1.4